Draft 06 specs for exclusiveMininum not respected
slisaasquatch opened this issue · 2 comments
slisaasquatch commented
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 commented
There's an open issue to support newer schemas than draft 04.
slisaasquatch commented
I'll close this ticket then.