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

http://json-schema.org/draft-05/schema# should return a JSON file #192

Closed
dwhieb opened this issue Dec 13, 2016 · 3 comments
Closed

http://json-schema.org/draft-05/schema# should return a JSON file #192

dwhieb opened this issue Dec 13, 2016 · 3 comments

Comments

@dwhieb
Copy link

dwhieb commented Dec 13, 2016

Draft 5 contains the following information about the $schema keyword:

The "$schema" keyword is both used as a JSON Schema version identifier
and the location of a resource which is itself a JSON Schema, which describes
any schema written for this particular version. [...] The current schema MUST
be valid against the meta-schema identified by this URI.

However, there is no JSON file available at http://json-schema.org/draft-05/schema# which would serve as the resource to validate against. (Other URIs, such as http://json-schema.org/schema# or http://json-schema.org/draft-04/schema#, do return a JSON document as expected.)

Since Draft 5 is an official IETF draft that users may validate against, there should be a JSON document made available at http://json-schema.org/draft-05/schema# as well.

@handrews
Copy link
Contributor

See json-schema-org/json-schema-org.github.io#57, which is just hanging out waiting for approval.

@awwright
Copy link
Member

@dwhieb The intention with the latest release was to be backwards-compatible with the existing meta-schema. This was accomplished with a questionable amount of success in some areas, but JSON Schema Validation should, indeed, be entirely backwards compatible with the draft-04 meta-schema.

Unfortunately, the Validation and Hyper-schema documents never listed a URI to use for a meta-schema, and the latest I-D still doesn't, but this will be fixed when the next meta-schema is released. This is the top item on the priority list, so it's coming soon!

Also I'm obligated to point out, the Internet-Draft is only an individual submission at this point, it doesn't have the endorsement of the IETF until it's released as an RFC. If you need to refer to it in a specification or cite it in a paper, drop me an email so we can discuss options.

Does that address your conserns?

@dwhieb
Copy link
Author

dwhieb commented Dec 13, 2016

@awwright Yes, that makes perfect sense. Thanks for taking the time to clarify! And for all the awesome work on this. I'm excited to see JSON Schema on its way to becoming an official RFC again.

@dwhieb dwhieb closed this as completed Dec 13, 2016
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
@awwright @handrews @dwhieb and others