ahx / openapi_first

openapi_first is a Ruby gem for request / response validation and contract-testing against an OpenAPI API description. It makes APIFirst easy and reliable.
MIT License
120 stars 15 forks source link

Support application/problem+json for error responses #96

Closed ahx closed 10 months ago

ahx commented 4 years ago

https://tools.ietf.org/html/rfc7807

Related to https://github.com/ahx/openapi_first/issues/39

ahx commented 1 year ago

Related to this topic: Since 1.0 (beta 5) you can create your custom error response by subclassing including OpenapiFirst::ErrorResponse and configure request validation.

ahx commented 10 months ago

https://github.com/ahx/openapi_first/pull/204 makes application/problem+json the default. Still figuring out the details of "errors" before releasing this in 1.0, but it is solved.