eclipsesource/play-json-schema-validator

library should not depend on external resources

edrevo opened this issue · 2 comments

right now http://json-schema.org is down (see json-schema-org/json-schema-org.github.io#213). All validations in this library are failing with messages similar to this:

Could not resolve ref http://json-schema.org/draft-04/schema#/properties/type

Meanwhile, projects that use other json schema validators like https://github.com/java-json-tools/json-schema-validator aren't failing because they have the json-schema schema as a resource in the library.

This library should follow the same mechanism, to avoid depending on external URLs which might or might not exist in the future.

Indeed, thanks for reporting, I'll try to address it today.

This should be fixed with 0.9.5-M2. Note that you need to explicitly pass the desired schema version to the validator, as in:

val validator = SchemaValidator(Some(Version7))

Please re-open if you experience any problems re-lated to this issue.