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

Support loading swagger 2.0 specs #2767

Closed niclim closed 8 months ago

niclim commented 8 months ago

🍗 Description

What does this PR do? Anything folks should know?

Supports loading swagger 2.0 specs - this PR changes all the internal typings to expect a swagger 2, 3 or 3.1 spec but does not support the following commands with swagger 2 specs (swagger 2 code to check is moved to the edges)

Things that need to be fixed in follow up PRs

📚 References

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

👹 QA

How can other humans verify that this PR is correct?