Custom HTTP codes are not supported by the specification itself. They weren’t supported before either, even if the tools didn’t complain about it.
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#responsesObject. From: <[email protected]> on behalf of "[email protected]" <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, November 1, 2017 at 03:16 To: Swagger <[email protected]> Subject: OAS 3 | custom response code Hello, in our project we introduced custom response code (HTTP status codes) like 901. In OAS 3 it seems like only the status groups 1xx, 2xx, 3xx, 4xx and 5xx are supported. When I try to document the response code in Swagger Editor I get the following error message: Schema error at paths['/path'].get.responses should NOT have additional properties additionalProperty: 901 Is this correct, aren't response code above the 5xx group supported? It worked in OAS 2 though. Best Regards, Alexander -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
