We got an existing webservice that we attempt to document using Swagger. It often seems to return objects using:
schema: type: array items: $ref: '#/definitions/Tweets' In this model the id of the tweet is in the Tweets definition. My returned output is formatted like this:
{ "127":{ "name":"Foo" }, "110":{ "name":"Bar" } } Where the id is the key of the object. How do i do this is in Swagger?