Skip to main content

Function: getMonitorValidationErrors()

getMonitorValidationErrors(monitor: Partial<Monitor>): string[]

Defined in: shared/utils/validation.ts:728

Computes validation errors for a monitor payload.

Parametersโ€‹

monitorโ€‹

Partial<Monitor>

Partial monitor data submitted for validation.

Returnsโ€‹

string[]

An array of human-readable error messages (empty when valid).

Remarksโ€‹

Invokes shared and type-specific validators to produce a deterministic list of error messages. The function never throws and always returns an array.