public interface JsonSchemaValidator
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
JsonSchemaValidator.ValidationResponse
Represents the result of a validation operation.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static JsonSchemaValidator |
createDefault()
Creates the default
JsonSchemaValidator. |
static JsonSchemaValidator |
getDefault()
Returns the default
JsonSchemaValidator. |
JsonSchemaValidator.ValidationResponse |
validate(java.util.Map<java.lang.String,java.lang.Object> schema,
java.lang.Object structuredContent)
Validates the structured content against the provided JSON schema.
|
JsonSchemaValidator.ValidationResponse validate(java.util.Map<java.lang.String,java.lang.Object> schema, java.lang.Object structuredContent)
schema - The JSON schema to validate against.structuredContent - The structured content to validate.static JsonSchemaValidator createDefault()
JsonSchemaValidator.JsonSchemaValidatorjava.lang.IllegalStateException - If no JsonSchemaValidator implementation
exists on the classpath.static JsonSchemaValidator getDefault()
JsonSchemaValidator.JsonSchemaValidatorjava.lang.IllegalStateException - If no JsonSchemaValidator implementation
exists on the classpath.