opticdev / optic

OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
https://useoptic.com
MIT License
1.36k stars 83 forks source link

Ignore request bodies from 4xx and 5xx interactions #2671

Closed niclim closed 9 months ago

niclim commented 9 months ago

🍗 Description

What does this PR do? Anything folks should know?

We have the documented bodies code that ignores / does not learn schemas for request bodies in interactions that result in an 4xx or 5xx. Updating the code to also extend this to apply to coverage and for documenting a request body

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

👹 QA

How can other humans verify that this PR is correct?