Libor
5 years agoNew Contributor
publish/unpublish through registry api
Hello, We have automated way how to create and upload new api documentation to swaggerhub during releasing of new version of our application to production servers. But we still need to log into swag...
- 4 years ago
If you mean array examples with multiple items, that's supported in OpenAPI 2.0 too. The "example" keyword needs to be alongside "type: array", like so:
responses: '200': description: A list of users schema: type: array items: $ref: '#/definitions/User' example: # <--- on the same level as "type: array" - id: 1 code: 2y1 - id: 2 code: 2y1
If you mean multiple different examples for the same response or parameter, that's only supported in OpenAPI 3.0.