public class PropertiesValidator extends BaseJsonValidator implements JsonValidator
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY |
applyDefaultsStrategy, failFast, parentSchema, schemaNode, schemaPathAT_ROOT| Constructor and Description |
|---|
PropertiesValidator(String schemaPath,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parentSchema,
ValidationContext validationContext) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,JsonSchema> |
getSchemas() |
void |
preloadJsonSchema()
In case the
JsonValidator has a related JsonSchema or several
ones, calling preloadJsonSchema will actually load the schema document(s) eagerly. |
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, preloadJsonSchemas, registerAndMergeDiscriminator, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic static final String PROPERTY
public PropertiesValidator(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)
JsonValidatorvalidate in interface JsonValidatornode - JsonNoderootNode - JsonNodeat - Stringpublic Set<ValidationMessage> walk(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at, boolean shouldValidateSchema)
BaseJsonValidatorwalk in interface JsonSchemaWalkerwalk in class BaseJsonValidatornode - JsonNoderootNode - JsonNodeat - StringshouldValidateSchema - booleanpublic Map<String,JsonSchema> getSchemas()
public void preloadJsonSchema()
JsonValidatorJsonValidator has a related JsonSchema or several
ones, calling preloadJsonSchema will actually load the schema document(s) eagerly.preloadJsonSchema in interface JsonValidatorCopyright © 2022. All rights reserved.