-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Description
I noticed that sice the release of version 1.0.83 the behaviour changed, and wrong schema versions do no longer throw an exception.
With version 1.0.82 the following Kotlin example code would have thrown a JsonSchemaException
because the schema version doesn't match:
val schemaNode = jacksonObjectMapper().readTree("{\"\$schema\": \"http://json-schema.org/draft-06/schema\", \"properties\": { \"id\": {\"type\": \"number\"}}}")
val factory = com.networknt.schema.JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V202012)
val schema = factory.getSchema(schemaNode) // since 1.0.83 this will no longer throw 'JsonSchemaException' because of wrong schema version
Now, since version 1.0.83 this is no longer the case and regardless what version flag is specified, all schema versions are accepted.
Metadata
Metadata
Assignees
Labels
No labels