简体   繁体   中英

JSON schema validation with Java API

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM