java-json-tools / json-schema-validator

A JSON Schema validation implementation in pure Java, which aims for correctness and performance, in that order
http://json-schema-validator.herokuapp.com/
Other
1.62k stars 399 forks source link

disable checking resource at URI #214

Open chakravarthyvp opened 7 years ago

chakravarthyvp commented 7 years ago

Hi,

Is there a way to disable URI referencing. I have ID added as below to uniquely identify this schema however I do not want to publish the schema as the URI referenced. During validation, is there a way to disable validating the URI ?

{ "id": "http://some.domain.com/my-schema#" "$schema": "http://json-schema.org/schema#", "description": "schema for PBA", ..... }, "definitions": { } ...

Exception in thread "main" com.github.fge.jsonschema.core.exceptions.ProcessingException: fatal: unable to dereference URI "http://some.domain.com/my-schema#" level: "fatal" uri: "http://some.domain.com/my-schema#" exceptionMessage: "http://some.domain.com/my-schema#"

at com.github.fge.jsonschema.core.load.URIManager.getContent(URIManager.java:115)
at com.github.fge.jsonschema.core.load.SchemaLoader$1.load(SchemaLoader.java:115)
blackr1234 commented 1 year ago

Is there any update on this ticket? Would like to understand why this happens.