Package com.networknt.schema
Interface SchemaIdValidator
-
- All Known Implementing Classes:
SchemaIdValidator.DefaultSchemaIdValidator
public interface SchemaIdValidatorValidator for validating the correctness of $id.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSchemaIdValidator.DefaultSchemaIdValidatorImplementation ofSchemaIdValidator.
-
Field Summary
Fields Modifier and Type Field Description static SchemaIdValidatorDEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvalidate(String id, boolean rootSchema, SchemaLocation schemaLocation, SchemaLocation resolvedSchemaLocation, SchemaContext schemaContext)Validates if the $id value is valid.
-
-
-
Field Detail
-
DEFAULT
static final SchemaIdValidator DEFAULT
-
-
Method Detail
-
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
-
-