I have a function "Create static type" that takes a string and returns a type.
I created the following implementation:
{
"Z1K1": "Z2",
"Z2K1": "Z10122",
"Z2K2": {
"Z1K1": "Z14",
"Z14K1": "Z10121",
"Z14K2": {
"Z1K1": "Z4",
"Z4K1": {
"Z1K1": "Z7",
"Z7K1": "Z10121",
"Z10121K1": ""
},
"Z4K2": [
{
"Z1K1": "Z3",
"Z3K1": "Z6",
"Z3K2": "K1",
"Z3K3": {
"Z1K1": "Z12",
"Z12K1": []
}
}
],
"Z4K3": "Z101"
}
},
"Z2K3": {
"Z1K1": "Z12",
"Z12K1": [
{
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "Create static type composition"
}
]
},
"Z2K4": {
"Z1K1": "Z32",
"Z32K1": [
{
"Z1K1": "Z31",
"Z31K1": "Z1002",
"Z31K2": []
}
]
}
}But evaluating that results in a wrong content type on the implementation, and a guzzler error on the function definition.
Implementation:
Definition:

