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

JSON-Metaschema #1846

Closed
chatelao opened this issue Feb 25, 2019 · 3 comments
Closed

JSON-Metaschema #1846

chatelao opened this issue Feb 25, 2019 · 3 comments

Comments

@chatelao
Copy link

Is there any "Meta-Schema" describing a correct OpenAPI (3.0.1) schema?

@MikeRalphson
Copy link
Member

There is no finalised JSON Schema for an OpenAPI 3.0.x document (not "schema"), but see #1032 and the two WIP PRs #1236 and #1270. We hope to publish the official JSON schemas for v3.0 and v3.1 by the time v3.1 is released.

If you do only want to describe a schemaObject then both schema instances in the linked PRs include such a definition.

@darrelmiller
Copy link
Member

And the JSON Schema of OpenAPI is only an approximation of a correct OpenAPI document. Not all rules can be validated using JSON Schema.

@handrews
Copy link
Member

And the JSON Schema of OpenAPI is only an approximation of a correct OpenAPI document. Not all rules can be validated using JSON Schema.

Which (for the benefit of anyone who might find the above statement odd) is fine from a JSON Schema perspective. JSON Schema meta-schemas are themselves only approximations of correct JSON Schema documents, for the same reason :-D

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

4 participants