Re: [swagger2.0] How to represent an array of objects

2016-09-08 Thread Duggie
> You mean the “included” JSON you are showing is a payload sent back to the caller? Yes. I can work with a common model. Thanks for this help. Duggie -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop

Re: [swagger2.0] How to represent an array of objects

2016-09-08 Thread tony tam
You mean the “included” JSON you are showing is a payload sent back to the caller? JSON References are stand-alone—they cannot have siblings. So you’ll have to do something a bit different. * Define a model as the intersection of the two objects, People and Comments. The shared components

[swagger2.0] How to represent an array of objects

2016-09-08 Thread Duggie
Hi there, I want to represent an openapi-spec API in the Swagger editor. I'm struggling to represent the "included" array in a compound document. So, let's say I want to define the following JSON snippet in YAML: ```json "included": [ { "type": "people", "id": "9", "attributes": {