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": { "first-name": "Dan", " last-name": "Gebhardt", "twitter": "dgeb" }, "links": { "self": "http://example.com/people/9" } }, { "type": "comments", "id": "5", " attributes": { "body": "First!" } } ] ``` I can define the first object (people) OK, but I don't know how to define the "comments" object. I have tried defining them separately and then listing them but it errors out when I add more than one definition to `items` i.e. ```yaml included: type: array items: $ref: '#/definitions/people' $ref: '#/definitions/comments' ``` If I just have the "people" definition, it's fine. So, how should I represent an array of different objects? Thanks, Duggie -- 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.