Conversation
Add `#ignored_unknown_status=` to overwrite whole list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
3.0.0
openapi_first
Changed
Before this change
GET /things/24/matched/things/{id}:, but it no longer does.:response_not_foundwas split into two more specific types:response_content_type_not_foundand:response_status_not_found. This should be mostly internal stuff. So if your custom error response usedresponse_not_found, you will have to adapt.request_validation_raise_errorandresponse_validation_raise_error. Please pass theraise_error:option to the middlewares directly.Added
specargument in middlewares optional and removes the necessity to load the OAD in the same place where you use the middlewares and adds a cache for parsed OADs.Removed
OpenapiFirst::Configuration#clone. Use#childinstead.Fixed
openapi_parametersto >= 0.7.0, because that version supports unpacking parameters the usestyle: deepObjectwithexplode: true.OpenapiFirst::Test.setupmore robust by addingOpenapiFirst::Configuration#childso it does not matter if you load our OAD before calligOpenapiFirst::Test.setup.openapi_first/test
Changed
OpenapiFirst::Test.appnow returns an instance ofOpenapiFirst::Test::App, instead ofRack::Builerand delegates methods other than#callto the original app. This wrapper adds validated requests, responses to the rack env atenv[OpenapiFirst::Test::REQUEST],env[OpenapiFirst::Test::RESPONSE]. This makes it possible to test Rails engines. Thanks to Josh! See #410.OpenapiFirst::Testnow falls back to using globally registered OADs if nothing was registered insideOpenapiFirst::Test.setup.Added
OpenapiFirst::Testnow supports parallel tests via a DRB client/sever. Thanks to Richard! See #394.OpenapiFirst::TestConfiguration options which are useful when adopting OpenAPI:ignore_unknown_response_status = trueto make API coverage no longer complain about undefined response statuses it sees during a test run.minimum_coverage=is no longer deprecated. This is useful when gradually adopting OpenAPIignored_unknown_status=to overwrite the whole list of ignored unknown status at onceRemoved
Test::Coverage.current_run, .plans, .install, .uninstall. If you are using these, useOpenapiFirst::Test.setupinstead.Fixed
OpenapiFirst::Test.setupmore robust by addingOpenapiFirst::Configuration#childso it does not matter if you load our OAD before calligOpenapiFirst::Test.setup.