public class JsonSchema extends BaseJsonValidator
Modifier and Type | Field and Description |
---|---|
protected Map<String,JsonValidator> |
validators |
AT_ROOT
Constructor and Description |
---|
JsonSchema(ValidationContext validationContext,
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, validate
protected final Map<String,JsonValidator> validators
public JsonSchema(ValidationContext validationContext, 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)
JsonValidator
jsonNode
- JsonNoderootNode
- JsonNodeat
- StringCopyright © 2017. All rights reserved.