Closed ahx closed 5 years ago
Calling Endpoint#response_by_code('422', use_default: true) returns the "default" response if it was defined in the spec. use_default is false by default.
Endpoint#response_by_code('422', use_default: true)
use_default
false
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#fixed-fields-14 for a description about "default" responses.
Released as 0.18.0 - thanks!
0.18.0
Calling
Endpoint#response_by_code('422', use_default: true)
returns the "default" response if it was defined in the spec.use_default
isfalse
by default.See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#fixed-fields-14 for a description about "default" responses.