public class JsonSchema extends BaseJsonValidator
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,JsonValidator> |
validators |
AT_ROOT| Constructor and Description |
|---|
JsonSchema(com.fasterxml.jackson.databind.ObjectMapper mapper,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema subSchema) |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
findAncestor() |
com.fasterxml.jackson.databind.JsonNode |
getRefSchemaNode(String ref)
Find the schema node for $ref attribute.
|
String |
toString() |
Set<ValidationMessage> |
validate(com.fasterxml.jackson.databind.JsonNode JsonNode,
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.
|
buildValidationMessage, debug, equals, getParentSchema, getSchemaNode, getSchemaPath, getSubSchema, getValidatorType, greaterThan, hasSubSchema, lessThan, obainSubSchemaNode, parseErrorCode, validateprotected Map<String,JsonValidator> validators
public JsonSchema(com.fasterxml.jackson.databind.ObjectMapper mapper,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema subSchema)
public com.fasterxml.jackson.databind.JsonNode getRefSchemaNode(String ref)
ref - Stringpublic JsonSchema findAncestor()
public Set<ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode JsonNode, com.fasterxml.jackson.databind.JsonNode rootNode, String at)
JsonValidatorJsonNode - JsonNoderootNode - JsonNodeat - StringCopyright © 2017. All rights reserved.