public interface JsonValidator extends JsonSchemaWalker
Modifier and Type | Method and Description |
---|---|
default void |
preloadJsonSchema()
In case the
JsonValidator has a related JsonSchema or several
ones, calling preloadJsonSchema will actually load the schema document(s) eagerly. |
Set<ValidationMessage> |
validate(com.fasterxml.jackson.databind.JsonNode rootNode)
Validate the given root JsonNode, starting at the root of the data path.
|
Set<ValidationMessage> |
validate(com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode rootNode,
String at)
Validate the given JsonNode, the given node is the child node of the root node at given
data path.
|
walk
Set<ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode rootNode)
rootNode
- JsonNodeSet<ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at)
node
- JsonNoderootNode
- JsonNodeat
- Stringdefault void preloadJsonSchema() throws JsonSchemaException
JsonValidator
has a related JsonSchema
or several
ones, calling preloadJsonSchema will actually load the schema document(s) eagerly.JsonSchemaException
- (a RuntimeException
) in case the JsonSchema
or nested schemas
are invalid (like $ref
not resolving)Copyright © 2023. All rights reserved.