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 -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
validate
(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, ValidationContext validationContext) Validates if the $id value is valid.
-
Field Details
-
DEFAULT
-
-
Method Details
-
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
-