Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support schemas from classpath to facilitate schema sharing #7
This is a new feature request.
Currently, the plugin supports loading schemas from the local filesystem. When using the same schema in multiple projects, it is useful to pack the schema in its own JAR and have the versioned JAR shared among the projects as a dependency.
In that case, it would be great to use the json-schema-validator plugin with a reference to the schema inside the JAR. This is a technique projects like
It might look something like this:
As a (clunky) workaround, I can for now unzip my shared JAR manually before I invoke the json-schema-validator plugin, as mentioned here.