Package de.gematik.test.tiger.lib.json
Class JsonSchemaChecker
java.lang.Object
de.gematik.test.tiger.lib.json.AbstractRbelJsonChecker
de.gematik.test.tiger.lib.json.JsonSchemaChecker
- All Implemented Interfaces:
RbelContentValidator
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 schemavoidverify(String oracle, RbelElement element, String diffOptionCSV) Methods inherited from class de.gematik.test.tiger.lib.json.AbstractRbelJsonChecker
getAsJsonString
-
Constructor Details
-
JsonSchemaChecker
public JsonSchemaChecker()
-
-
Method Details
-
verify
-
compareJsonToSchema
Checks that the json conforms to the given schema- Parameters:
jsonToCheck- json to checkschema- schema to check against
-