Skip to content

Draft 06 specs for exclusiveMininum not respected #302

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

Closed
slisaasquatch opened this issue Jul 22, 2019 · 2 comments
Closed

Draft 06 specs for exclusiveMininum not respected #302

slisaasquatch opened this issue Jul 22, 2019 · 2 comments

Comments

@slisaasquatch
Copy link

This is the code I'm using to validate the schema:

ProcessingReport r = JsonSchemaFactory.byDefault().getSyntaxValidator().validateSchema(schema);
System.out.println(r.isSuccess());

And here are the sample schemas I'm using:
1.

{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "Test Minimum",
    "type": "integer",
    "exclusiveMinimum": 0
}
{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "Test Minimum",
    "type": "integer",
    "minimum": 0,
    "exclusiveMinimum": true
}

The first schema should be valid with draft 06, but this library considers it invalid.
The second schema is valid with draft 04, but should be invalid with draft 06, and this library considers it valid.

@harlig
Copy link

harlig commented Sep 11, 2019

There's an open issue to support newer schemas than draft 04.

@slisaasquatch
Copy link
Author

I'll close this ticket then.

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

2 participants