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

Updated (draft 2020-12) json schema for openapi v3.0 spec #2996

Closed
chris-smith-zocdoc opened this issue Aug 9, 2022 · 4 comments
Closed
Labels

Comments

@chris-smith-zocdoc
Copy link

Currently the openapi v3.0 schema is using draft-04 of json schema. Would it be possible to get an updated version of the schema using Draft 2019-09 or 2020-12?

We are currently using openapi v3.0 and would like to validate the specifications using json schema, but the libraries tend only only support a limited number of json schema versions, having a more recent version of the specification available would help.

@jdesrosiers
Copy link
Contributor

You can use this new tool to automatically transform a draft-04 schema to a newer version. https://alterschema.sourcemeta.com/

@chris-smith-zocdoc
Copy link
Author

That looks promising, thanks @jdesrosiers

@jeremyfiel
Copy link
Contributor

There's an appetite to move to newer specs but draft 4 will be supported for quite some time and most all tooling should still support it. There are some very large projects on draft 4 still, like MongoDB

@handrews handrews changed the title Updated json schema for openapi v3 spec Updated (draft 2020-12) json schema for openapi v3.0 spec Apr 19, 2024
@lornajane
Copy link
Contributor

Discussed in TDC and agreed that the version of JSON Schema for our schemas should match the version of JSON Schema that is in the version of OpenAPI specification.

@lornajane lornajane closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

5 participants