schemathesis / schemathesis

Supercharge your API testing, catch bugs, and ensure compliance
https://schemathesis.readthedocs.io
MIT License
2.24k stars 154 forks source link

Verify headers schema in the response_headers_conformance check #796

Closed Stranger6667 closed 1 month ago

Stranger6667 commented 3 years ago

Now schemathesis only checks if a header is present, but can actually check schema conformance as well

basbossink-ds commented 2 years ago

It appears currently also missing headers are reported as an error even if the schema specifies the header as optional.

Stranger6667 commented 2 years ago

Hi @basbossink-ds

Good catch! Let me fix it :)

Stranger6667 commented 2 years ago

That issue is going to be fixed in #1564. I'll release a new version during this week