Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI 3.1.0 support: useCircularStructures #2761

Closed
char0n opened this issue Jan 5, 2023 · 3 comments
Closed

OpenAPI 3.1.0 support: useCircularStructures #2761

char0n opened this issue Jan 5, 2023 · 3 comments

Comments

@char0n
Copy link
Member

char0n commented Jan 5, 2023

Current implementation of useCircularStructures resolve option assumes that everything is JSON Pointer and construct absolute one when generating meta patches. Starting from OpenAPI 3.1.0 this is no longer true, as different mechanism can be used along with JSON Pointer, included but not limited to JSON Schema anchor, JSON Schema $id...

useCircularStructure must generate non-canonical JSON Pointer relative to current document.

Schema URIs MUST be resolved against all parents before constructing absolute URI.

Circular structures MUST be handled for other types of elements as well.

Test with useCircularStructures=true must be provided for resolver.

@swagger-bot
Copy link
Contributor

🎉 This issue has been resolved in version 3.19.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@swagger-bot
Copy link
Contributor

🎉 This issue has been resolved in version 3.19.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@swagger-bot
Copy link
Contributor

🎉 This issue has been resolved in version 3.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants