Package ai.pipestream.api.validation
Interface ModeAwareValidator<T extends ConfigValidatable>
- Type Parameters:
T- The type of configuration object being validated
- All Superinterfaces:
ConfigValidator<T>
Extension of ConfigValidator that supports mode-aware validation.
Validators implementing this interface can adjust their validation
rules based on the ValidationMode.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ValidationResultDefault implementation delegates to mode-aware validate with PRODUCTION mode.validate(T config, ValidationMode mode) Validates the given configuration object using the specified validation mode.Methods inherited from interface ai.pipestream.api.validation.ConfigValidator
getPriority, getValidatorName, supportedModes
-
Method Details
-
validate
Validates the given configuration object using the specified validation mode.- Parameters:
config- The configuration object to validatemode- The validation mode to apply- Returns:
- ValidationResult containing the validation outcome
-
validate
Default implementation delegates to mode-aware validate with PRODUCTION mode.- Specified by:
validatein interfaceConfigValidator<T extends ConfigValidatable>- Parameters:
config- The configuration object to validate- Returns:
- ValidationResult containing the validation outcome
-