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

fix enum patching in array #2659

Closed niclim closed 10 months ago

niclim commented 10 months ago

🍗 Description

What does this PR do? Anything folks should know?

Updates enum patching when in an array to regenerate patches. An enum schema with multiple array items could result in multiple enum variants being generated

📚 References

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

https://github.com/opticdev/optic/issues/2656

👹 QA

How can other humans verify that this PR is correct?