public class RefValidator extends BaseJsonValidator implements JsonValidator
Modifier and Type | Field and Description |
---|---|
protected JsonSchemaRef |
schema |
config, failFast, schemaNode, schemaPath
AT_ROOT
Constructor and Description |
---|
RefValidator(String schemaPath,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parentSchema,
ValidationContext validationContext) |
Modifier and Type | Method and Description |
---|---|
JsonSchemaRef |
getSchemaRef() |
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.
|
Set<ValidationMessage> |
walk(com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode rootNode,
String at,
boolean shouldValidateSchema)
This is default implementation of walk method.
|
buildValidationMessage, checkDiscriminatorMatch, debug, equals, fetchSubSchemaNode, getNodeFieldType, getParentSchema, getSchemaNode, getSchemaPath, getValidatorType, greaterThan, isPartOfOneOfMultipleType, lessThan, parseErrorCode, registerAndMergeDiscriminator, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
protected JsonSchemaRef schema
public RefValidator(String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)
public Set<ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at)
JsonValidator
validate
in interface JsonValidator
node
- JsonNoderootNode
- JsonNodeat
- Stringpublic Set<ValidationMessage> walk(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at, boolean shouldValidateSchema)
BaseJsonValidator
walk
in interface JsonSchemaWalker
walk
in class BaseJsonValidator
node
- JsonNoderootNode
- JsonNodeat
- StringshouldValidateSchema
- booleanpublic JsonSchemaRef getSchemaRef()
Copyright © 2021. All rights reserved.