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

The draft parameter seems to have a limited effect on the interpretation of the schema #184

Open
chipilov opened this issue Jan 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@chipilov
Copy link

The draft parameter seems to have a limited effect on the interpretation of the supplied schema.

I assume that if draft 4 is passed as parameter and the supplied schema contains features which are NOT supported in draft 4, either an exception will be thrown OR the features which are NOT part of the draft will be ignored.

For example, if I specify draft 4 and use unevaluatedProperties (which was introduced with 2019-09), I still get an error if the data contains properties which are NOT explicitly specified in the schema.

Is this expected and if so - what exactly is the purpose of the draft parameter?

VERSION:
"1.12.0"

@jdanyow
Copy link
Member

jdanyow commented Jan 23, 2022

Currently draft use is limited to ensuring rules and keywords which have evolved like minimum, maximum, and $ref behave as specified in the selected draft.

It wouldn't be too hard to disable keywords based on draft. What's your use case?

Related #154

@jdanyow jdanyow added the bug Something isn't working label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants