Interface

ValidatorOptions

ValidatorOptions

Base options type for all validators

Properties:
Name Type Attributes Description
message string <optional>

Custom error message to display when validation fails

async boolean

Indicates whether the validator associated with the decorator performs asynchronous validation logic. Use true when the validator returns a Promise, and false when the validation is synchronous.

View Source validation/types.ts, line 130