Package com.networknt.schema
Interface JsonSchemaIdValidator
-
- All Known Implementing Classes:
JsonSchemaIdValidator.DefaultJsonSchemaIdValidator
public interface JsonSchemaIdValidatorValidator for validating the correctness of $id.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJsonSchemaIdValidator.DefaultJsonSchemaIdValidatorImplementation ofJsonSchemaIdValidator.
-
Field Summary
Fields Modifier and Type Field Description static JsonSchemaIdValidatorDEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvalidate(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
-
-