Given a json schema like this..
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "integer"
},
"name": {
"description": "Name of the product",
"type": "string"
},
"price": {
"type": "number",
"minimum": 0,
"exclusiveMinimum": true
}
},
"required": ["id", "name", "price"]
}
How to validate that this json schema conforms to the $schema it specifies, in this case the draft-04..
Are there any packages in java that can do this? Can I use something like https://github.com/everit-org/json-schema or is that only validating a json document against its schema?
Thanks.