dynamic-forms / Interface

DeclarativeHttpValidatorConfig

Declarative HTTP validator configuration — fully JSON-serializable, no function registration required.

Uses HttpRequestConfig to define the HTTP request and HttpValidationResponseMapping to interpret the response as a validation result. Powered by Angular's validateHttp API.

Discriminated from FunctionHttpValidatorConfig by the presence of http + responseMapping (and absence of functionName).

Properties

NameTypeDescription
http
HttpRequestConfig

HTTP request configuration with expression-based query params and body

responseMapping
HttpValidationResponseMapping

Mapping that interprets the HTTP response as a validation result

type
"http"

Validator type identifier

when
inherited from BaseValidatorConfig
ConditionalExpression | undefined

Conditional logic for when validator applies