Hi,
I am trying to parse a swagger.json 2.0 response in my RPC to retrieve all properties of a specific entity. Unfortunately, the result is empty. What
"response": {
"output": {
"label": "{{item}}",
"value": "{{item}}"
},
"iterate": "{{ keys( get(get(get(body.definitions, 'Account'),'allOf')[2],'properties') ) }}"
}
This is an excerpt from the swagger definition:
{
"definitions" : {
"Account": {
"allOf": [
{
"$ref": "#/definitions/Entity"
},
{
"type": "object",
"properties": {
"AccountGroupID": {
"$ref": "#/definitions/StringValue"
},
"Active": {
"$ref": "#/definitions/BooleanValue"
},
"Attributes": {
"type": "array",
"items": {
"$ref": "#/definitions/AttributeValue"
}
},
"DefaultAccountID": {
"$ref": "#/definitions/StringValue"
},
"Description": {
"$ref": "#/definitions/StringValue"
},
"Expense": {
"$ref": "#/definitions/BooleanValue"
},
"SortOrder": {
"$ref": "#/definitions/ShortValue"
},
"Type": {
"$ref": "#/definitions/StringValue"
}
}
}
]
}
}
}
Who can help?
Jörg