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

Differentiate between different drafts and metaschema validation #219

Merged
merged 7 commits into from Jan 7, 2019

Conversation

johandorland
Copy link
Collaborator

@johandorland johandorland commented Oct 17, 2018

Draft-06 and draft-07 were implemented in a way that the API was unchanged, as it was quite limited. New features introduced in these drafts were basically tagged on the draft-04 functionality, without providing an API to distinguish between all these different drafts, creating some sort of hybrid draft.

With the recent addition of SchemaLoader we can provide a way of distinguishing between different drafts. This PR adds support for:

  • Explicit support for draft-04, draft-06, draft-07 and a hybrid mode.
  • Automatic detection of different drafts using $schema
  • Draft cross-referencing support. A draft-04 schema can reference a draft-07 schema and both schemas will be parsed according to their appropriate draft version
  • Validation of the input schema by validating them against the used draft's metaschema, or in case of a custom $schema, that particular custom schema.
  • Local caching of metaschemas, so metaschema validation can be done offline.

@johandorland johandorland changed the title [WIP] Differentiate between different drafts and metaschema validation Differentiate between different drafts and metaschema validation Dec 19, 2018
@johandorland johandorland merged commit cdd33d0 into xeipuuv:master Jan 7, 2019
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

Successfully merging this pull request may close these issues.

None yet

1 participant