OpenapiFirst::Test 3.1.0.beta1 now raises an error when it sees a query-parameter that was not defined in the OAD.
I think this will be very useful to avoid API drift. #openapi #openapi_first

https://github.com/ahx/openapi_first

GitHub - 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.

openapi_first is a Ruby gem for request / response validation and contract-testing against an OpenAPI API description. It makes APIFirst easy and reliable. - ahx/openapi_first

GitHub

Here is a discussion how the request validation middleware should handle paths that are not defined in your #openapi API description. – Return 404 or skip the validation and pass the request to the upstream app?

Your thoughts would be very much appreciated.

https://github.com/ahx/openapi_first/issues/350

#ruby #rack #apifirst #openapi_first

Skip non API routes · Issue #350 · ahx/openapi_first

how can we exclude the paths which are not managed by the schema from validation? This is a question that keeps coming up. One option is of course the one you described with sub-classing the Middle...

GitHub

openapi_first 2.7.0 was released with better support for handling multiple APIs, including an RSpec integration, and an option to adjust the request path used for validation.

https://github.com/ahx/openapi_first

#Ruby #Rack #APIfirst #openapi #openapi_first

GitHub - 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.

openapi_first is a Ruby gem for request / response validation and contract-testing against an OpenAPI API description. It makes APIFirst easy and reliable. - ahx/openapi_first

GitHub

I just released version 2.0.3 of openapi_first, which makes the test assertion method work as described and adds an option to the request validation middleware to skip the error response. This option can be useful in a code-first scenario where you want to subscribe to invalid requests / responses according to your API description.

#ruby #openapi #apifirst #openapi_first

https://github.com/ahx/openapi_first

GitHub - 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.

openapi_first is a Ruby gem for request / response validation and contract-testing against an OpenAPI API description. It makes APIFirst easy and reliable. - ahx/openapi_first

GitHub