Wie ein json-Schema anhand der in Java angegebenen Versionsspezifikation validiert wird

Gab ein JSON-Schema wie dieses ..

    {
   "$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"]
}

Wie kann überprüft werden, ob dieses json-Schema dem angegebenen $ -Schema entspricht? In diesem Fall ist dies der Entwurf-04.

Gibt es Pakete in Java, die das können? Kann ich so etwas wie @ verwendhttps: //github.com/everit-org/json-schem oder überprüft das nur ein json-Dokument anhand seines Schemas?

Vielen Dank

Antworten auf die Frage(2)

Ihre Antwort auf die Frage