Package com.networknt.schema
Interface SchemaIdValidator
- All Known Implementing Classes:
SchemaIdValidator.DefaultSchemaIdValidator
public interface SchemaIdValidator
Validator for validating the correctness of $id.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, SchemaContext schemaContext) Validates if the $id value is valid.
-
Field Details
-
DEFAULT
-
-
Method Details
-
validate
boolean validate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, SchemaContext schemaContext) 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 idschemaContext- the schema context for instance to get the meta schema- Returns:
- true if valid
-