jtfidjeNew Member5 years agoSwagger responses - Multiple response codes with the same schema? Hi! Is it possible to have multiple codes use the same schema without duplicating the schema-reference? I.e.: responses: '202': description: OK '401': '403': '404': ...Show More
HKosovaAlumni5 years agoCopy LinkIn OpenAPI 3.0 you can use ranges such as "2XX", "3XX", "4XX" instead of individual status codes: responses: '202': description: OK '4XX': # <------- $ref: "#/components/responses/HTTPError" 'default': $ref: "#/components/responses/ApplicationError"
Recent DiscussionsWeird css issueGetting a `file` response in OpenAPI v3 / pythonJSON to HTML Conversion error
Related ContentParse a JSON Response Using GroovySwagger Response In Array$ref in response example relative to response example