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(ValidationContext validationContext,
com.fasterxml.jackson.databind.JsonNode schemaNode,
boolean suppressSubSchemaRetrieval) |
JsonSchema(ValidationContext validationContext,
String schemaPath,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parent) |
JsonSchema(ValidationContext validatorFactory,
String schemaPath,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parent,
boolean suppressSubSchemaRetrieval) |
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, fetchSubSchemaNode, getParentSchema, getSchemaNode, getSchemaPath, getValidatorType, greaterThan, lessThan, parseErrorCode, validate
protected final Map<String,JsonValidator> validators
public JsonSchema(ValidationContext validationContext, com.fasterxml.jackson.databind.JsonNode schemaNode)
public JsonSchema(ValidationContext validationContext, String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parent)
public JsonSchema(ValidationContext validatorFactory, String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parent, boolean suppressSubSchemaRetrieval)
public JsonSchema(ValidationContext validationContext, com.fasterxml.jackson.databind.JsonNode schemaNode, boolean suppressSubSchemaRetrieval)
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 © 2018. All rights reserved.