Interface ValidatorInfo
public interface ValidatorInfo
A description of a
PhenopacketValidator
.-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorInfo
static ValidatorInfo
GetValidatorInfo
to represent anonymous validator to associate with errors related to data format errors.static ValidatorInfo
-
Method Details
-
baseSyntaxValidation
-
inputValidator
GetValidatorInfo
to represent anonymous validator to associate with errors related to data format errors.The
ValidatorInfo
can be used if e.g. provided data is not a valid JSON but a valid JSON is expected. -
of
-
validatorId
String validatorId()- Returns:
- string with a unique validator ID.
-
validatorName
String validatorName()- Returns:
- human-friendly validator name.
-
description
String description()- Returns:
- brief description of the validation provided by the validator.
-