Package com.networknt.schema
Class ValidationContext
java.lang.Object
com.networknt.schema.ValidationContext
-
Constructor Summary
ConstructorsConstructorDescriptionValidationContext
(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config) ValidationContext
(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config, ConcurrentMap<String, JsonSchema> schemaReferences, ConcurrentMap<String, JsonSchema> schemaResources, ConcurrentMap<String, JsonSchema> dynamicAnchors) -
Method Summary
Modifier and TypeMethodDescriptionGets the dynamic anchors.Gets the schema references identified by the ref uri.Gets the schema resources identified by id.newSchema
(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema) newValidator
(SchemaLocation schemaLocation, JsonNodePath evaluationPath, String keyword, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema) resolveSchemaId
(com.fasterxml.jackson.databind.JsonNode schemaNode)
-
Constructor Details
-
ValidationContext
public ValidationContext(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config) -
ValidationContext
public ValidationContext(JsonMetaSchema metaSchema, JsonSchemaFactory jsonSchemaFactory, SchemaValidatorsConfig config, ConcurrentMap<String, JsonSchema> schemaReferences, ConcurrentMap<String, JsonSchema> schemaResources, ConcurrentMap<String, JsonSchema> dynamicAnchors)
-
-
Method Details
-
newSchema
public JsonSchema newSchema(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema) -
newValidator
public JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, String keyword, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema) -
resolveSchemaId
-
getJsonSchemaFactory
-
getConfig
-
getSchemaReferences
Gets the schema references identified by the ref uri.- Returns:
- the schema references
-
getSchemaResources
Gets the schema resources identified by id.- Returns:
- the schema resources
-
getDynamicAnchors
Gets the dynamic anchors.- Returns:
- the dynamic anchors
-
getMetaSchema
-
activeDialect
-