You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ended up having to set validate_success_only to true, but that meant I turned off validation for all non HTTP 2XX responses including client errors (HTTP 4XX) :(
Would be nice for the response_validate to attempt to only parse as JSON based on the Content-Type response header?
The text was updated successfully, but these errors were encountered:
I have an OpenAPI 3 spec that for one of the responses return a HTTP 302 response, for example:
and since OpenAPI3's response_validate handler will attempt to always parse response body to JSON:
committee/lib/committee/schema_validator/open_api_3.rb
Lines 28 to 39 in fe8570a
This is the same for HyperSchema too:
committee/lib/committee/schema_validator/hyper_schema.rb
Lines 31 to 40 in fe8570a
I ended up having to set
validate_success_only
to true, but that meant I turned off validation for all non HTTP 2XX responses including client errors (HTTP 4XX) :(Would be nice for the response_validate to attempt to only parse as JSON based on the Content-Type response header?
The text was updated successfully, but these errors were encountered: