Reputation: 3148
I am not interested in validating JSON documents against JSON schema. I would like to validate JSON schema itself, check whether it is valid against a specific draft. Are there tools Java that would validate schema itself?
Upvotes: 0
Views: 531
Reputation: 2147
A JSON Schema (in JSON format) is nothing else but another JSON document.
What you're describing is exactly what Meta Schemas are for.
That means any library for validating JSON documents against a JSON Schema can be used to validate a JSON Schema against a respective Draft's Meta Schema. Examples for available Java libraries are listed on json-schema.org/implementations.html
Meta Schemas are published alongside the specification on json-schema.org
Upvotes: 1