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 references should use #/components/schemas/... references instead of #/definitions/... #616

Closed
opqdonut opened this issue May 2, 2023 · 2 comments

Comments

@opqdonut
Copy link
Member

opqdonut commented May 2, 2023

#589 implements top-level :definitions for swagger specs.

However for OpenAPI 3.1 the refs should actually be #/components/schemas/...

https://spec.openapis.org/oas/v3.1.0#componentsObject

This will require a bit of work since swagger & json-schema use "#/definitions/...", so we want to rewrite those just for OpenAPI.

@opqdonut
Copy link
Member Author

opqdonut commented May 2, 2023

We could maybe use options to parameterise the $ref prefix in malli.json-schema.

@opqdonut
Copy link
Member Author

The malli part of this is in #673

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

No branches or pull requests

1 participant