Hi,
I have the following RuleWithId and Rule definitions, and response:
* responses: 200: description: Successful response. An
array of rules including ruleId's. It is an empty array if there are no
rules defined. schema: type: array title:
rules items: $ref: '#/definitions/RuleWithId'*
*definitions:*
* RuleWithId: type: object properties: ruleId: type:
string rule: #NOT POSSIBLE TO UNPACK THIS OBJECT?? $ref:
'#/definitions/Rule'*
* Rule: type: object description: For setting the action to be taken
when the specific event is received (and condition is true).
properties: event: $ref: '#/definitions/EventKey'*
How can I "unpack" the Rule object so we get the response as follows?
* {*
* "rules" : [*
* { "ruleId" : "0", "event" : "deviceStatus" }*
* ]*
* }*
thanks,
Rene Ummels
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.