Package com.networknt.schema
Class JsonSchemaRef
- java.lang.Object
-
- com.networknt.schema.JsonSchemaRef
-
public class JsonSchemaRef extends Object
Use this object instead a JsonSchema for references.This reference may be empty (if the reference is being parsed) or with data (after the reference has been parsed), helping to prevent recursive reference to cause an infinite loop.
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaRef(JsonSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonSchema
getSchema()
Set<ValidationMessage>
validate(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at)
Set<ValidationMessage>
walk(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at, boolean shouldValidateSchema)
-
-
-
Constructor Detail
-
JsonSchemaRef
public JsonSchemaRef(JsonSchema schema)
-
-
Method Detail
-
validate
public Set<ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at)
-
getSchema
public JsonSchema getSchema()
-
walk
public Set<ValidationMessage> walk(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode rootNode, String at, boolean shouldValidateSchema)
-
-