I have written a JSON Schema by 2019-09 (https://json-schema.org/draft/2019-09/release-notes.html). How can I validate it using java?
I want to write the method (throw Exception if validation fails):
void validate(Path pathToSchema) throws Exception {
// validation of schema by pathToSchema
}
P.S. I want to validate the JSON Schema for correctness, not JSON Document by JSON Schema.