Package de.gematik.test.tiger.lib.json
Class JsonSchemaChecker
java.lang.Object
de.gematik.test.tiger.lib.json.JsonSchemaChecker
Validates a given json string against a given json schema
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompareJsonToSchema(String jsonToCheck, String schema) Checks that the json conforms to the given schema
-
Constructor Details
-
JsonSchemaChecker
public JsonSchemaChecker()
-
-
Method Details
-
compareJsonToSchema
Checks that the json conforms to the given schema- Parameters:
jsonToCheck- json to checkschema- schema to check against
-