跳到主要内容
版本:Next

ValidationOptions

Hierarchy

Index

Properties

optionaldefaultValidator

defaultValidator?: string

The default validator to use for validation.

optionalerrorStatus

errorStatus?: number

The status code to return when validation fails, default is 422.

optionallocale

locale?: string

The locale to use for validation messages.

optionalthrowValidateError

throwValidateError?: boolean

Whether to throw a validation error, default is true. If set to false, the validation error will be returned.

optionalvalidators

validators?: Record<string, IValidator<any>>

The validators to use for validation.