FunctionHttpValidatorConfig
DeprecatedPrefer
(DeclarativeHttpValidatorConfig type: 'http'withhttp+responseMapping) for fully JSON-serializable validation. Use this form only when function registration is required.
| Extends: | |
Function-based HTTP validator configuration — requires a registered function.
Uses Angular's validateHttp API. The function is registered via customFnConfig.httpValidators.
Discriminated from by the presence of functionName.
Accepts both 'http' (preferred) and 'customHttp' (deprecated) type literals.
Properties
| Name | Type | Description |
|---|---|---|
| functionName | string | Name of registered HTTP validator configuration |
| params | Record<string, unknown> | undefined | Optional parameters to pass to HTTP validator |
| type | "http" | "customHttp" | Validator type identifier. Use |
| when inherited from | | Conditional logic for when validator applies |