public final class JsonSchema extends Object
This class is thread-safe: you can validate as many inputs as you want with one instance.
In order to build an instance, you need to go through a
JsonSchemaFactory.
| Modifier and Type | Field and Description |
|---|---|
private JsonValidatorCache |
cache |
private SchemaContainer |
container |
private SchemaNode |
schemaNode |
| Constructor and Description |
|---|
JsonSchema(JsonValidatorCache cache,
SchemaContainer container,
JsonNode schema) |
private final JsonValidatorCache cache
private final SchemaContainer container
private final SchemaNode schemaNode
JsonSchema(JsonValidatorCache cache, SchemaContainer container, JsonNode schema)
public ValidationReport validate(JsonNode instance)
instance - the JSON document to validateValidationReportCopyright © 2012. All Rights Reserved.