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

Read draft from $schema #154

Open
yesennes opened this issue Oct 26, 2021 · 1 comment
Open

Read draft from $schema #154

yesennes opened this issue Oct 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@yesennes
Copy link

When not provided a draft in the parameters, if a$schema field is present in schema, it should use that for drafts.

For instance
new Validator({"$schema": "http://json-schema.org/draft-07/schema#","type":"object"}).draft should be '7'

This is described in: http://json-schema.org/understanding-json-schema/reference/schema.html

I can put together a merge request for this.

@jdanyow jdanyow added the enhancement New feature or request label Nov 14, 2021
@jdanyow
Copy link
Member

jdanyow commented Nov 14, 2021

that would be great, thanks!

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

No branches or pull requests

2 participants