Class JsonSchemaValidationUtil
java.lang.Object
io.apicurio.registry.serde.jsonschema.JsonSchemaValidationUtil
- Author:
- Carles Arnal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidvalidateDataWithSchema(io.apicurio.registry.resolver.ParsedSchema<JsonSchema> schema, byte[] data, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Constructor Details
-
JsonSchemaValidationUtil
public JsonSchemaValidationUtil()
-
-
Method Details
-
validateDataWithSchema
protected static void validateDataWithSchema(io.apicurio.registry.resolver.ParsedSchema<JsonSchema> schema, byte[] data, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IOException - Parameters:
schema- the schema to test the data.data- the data to test.mapper- the object mapper to be used to read the data.- Throws:
IOException- In case of validation errors, a IO exception is thrown.
-