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
Hi,
the check content_type_conformance (in checks.py) is looking for the produces property, which is openapi 2. In openapi 3 however this has moved to the individual response codes.
This should be easily fixable by reading the response code and then adjust the json path in said check.
I also discovered that schemathesis (unintentionally) ignores the media types in it's requests for openapi 3. Which is probably the same problem.
schemathesis 1.0.2
The text was updated successfully, but these errors were encountered:
Also, the current check implementation for OAS2 gives precedence to the global produces, however, operation-level produces should override the global one. I'll fix it too
Hi,
the check
content_type_conformance
(in checks.py) is looking for theproduces
property, which is openapi 2. In openapi 3 however this has moved to the individual response codes.This should be easily fixable by reading the response code and then adjust the json path in said check.
I also discovered that schemathesis (unintentionally) ignores the media types in it's requests for openapi 3. Which is probably the same problem.
schemathesis 1.0.2
The text was updated successfully, but these errors were encountered: