Package com.networknt.schema
Interface JsonSchemaIdValidator
-
- All Known Implementing Classes:
JsonSchemaIdValidator.DefaultJsonSchemaIdValidator
public interface JsonSchemaIdValidator
Validator for validating the correctness of $id.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JsonSchemaIdValidator.DefaultJsonSchemaIdValidator
Implementation ofJsonSchemaIdValidator
.
-
Field Summary
Fields Modifier and Type Field Description static JsonSchemaIdValidator
DEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, ValidationContext validationContext)
Validates if the $id value is valid.
-
-
-
Field Detail
-
DEFAULT
static final JsonSchemaIdValidator DEFAULT
-
-
Method Detail
-
validate
boolean validate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, ValidationContext validationContext)
Validates if the $id value is valid.- Parameters:
id
- the $id or idrootSchema
- true if this is a root schemaschemaLocation
- the schema locationresolvedSchemaLocation
- the schema location after resolving with the idvalidationContext
- the validation context for instance to get the meta schema- Returns:
- true if valid
-
-