0

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?

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.