public class ItemsValidatorFactory extends ItemsValidatorFactory
Constructor and Description |
---|
ItemsValidatorFactory() |
Modifier and Type | Method and Description |
---|---|
Validator |
createValidator(JsonObject schema,
JsonPointer scope,
SchemaParserInternal parser,
MutableStateValidator parent)
This method consume the schema eventually creating a new
Validator . |
getKeyword, instantiate
canConsumeSchema
public Validator createValidator(JsonObject schema, JsonPointer scope, SchemaParserInternal parser, MutableStateValidator parent)
ValidatorFactory
Validator
. The schema parser calls it during schema parsing only if ValidatorFactory.canConsumeSchema(JsonObject)
returns true
You can return any of SyncValidator
, AsyncValidator
or MutableStateValidator
createValidator
in interface ValidatorFactory
createValidator
in class BaseSingleSchemaValidatorFactory
schema
- JsonObject representing the schemascope
- scope of the parsed schemaparser
- caller parserparent
- parent of this schemaCopyright © 2023 Eclipse. All rights reserved.