I need to validate JSON schema structure with referenced JSON schema. I need to make sure that JSON schema adhere reference structure.
Example - Below JSON schema uses reference of "$schema": "https://json-schema.org/draft/2020-12/schema" . I need to make sure that below Json schema is valid against "$schema": "https://json-schema.org/draft/2020-12/schema"
I haven't found any Java SDK/library yet to validate one schema against another json schema. It will be great if anyone can provide any input to validate Json schema against another json schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://test.com/employee.schema.json",
"title": "employee",
"type": "object",
"properties": {
"firstName": {
"type": "string",
"description": "The employee's first name."
},
"lastName": {
"type": "string",
"description": "The employee's last name."
},
"age": {
"description": "Age",
"type": "integer",
"minimum": 0
}
}
}