public class JsonSchema extends BaseJsonValidator
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,JsonValidator> |
validators |
configAT_ROOT| Constructor and Description |
|---|
JsonSchema(ValidationContext validationContext,
String schemaPath,
URL currentUrl,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parent) |
JsonSchema(ValidationContext validationContext,
URL baseUrl,
com.fasterxml.jackson.databind.JsonNode schemaNode) |
JsonSchema(ValidationContext validationContext,
URL baseUrl,
com.fasterxml.jackson.databind.JsonNode schemaNode,
boolean suppressSubSchemaRetrieval) |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
findAncestor() |
URL |
getCurrentUrl() |
com.fasterxml.jackson.databind.JsonNode |
getRefSchemaNode(String ref)
Find the schema node for $ref attribute.
|
JsonValidator |
getRequiredValidator() |
boolean |
hasRequiredValidator() |
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, getNodeFieldType, getParentSchema, getSchemaNode, getSchemaPath, getValidatorType, greaterThan, lessThan, parseErrorCode, validateprotected final Map<String,JsonValidator> validators
public JsonSchema(ValidationContext validationContext, URL baseUrl, com.fasterxml.jackson.databind.JsonNode schemaNode)
public JsonSchema(ValidationContext validationContext, String schemaPath, URL currentUrl, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parent)
public JsonSchema(ValidationContext validationContext, URL baseUrl, com.fasterxml.jackson.databind.JsonNode schemaNode, boolean suppressSubSchemaRetrieval)
public URL getCurrentUrl()
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 - Stringpublic boolean hasRequiredValidator()
public JsonValidator getRequiredValidator()
Copyright © 2019. All rights reserved.