ValidateOptions
Defined in: validate.ts:34
Properties
Section titled “Properties”coerce?
Section titled “coerce?”
optionalcoerce?:boolean
Defined in: validate.ts:38
Coerce input types to schema types before validation (e.g. “42” → 42). Default: false
stripAdditional?
Section titled “stripAdditional?”
optionalstripAdditional?:boolean
Defined in: validate.ts:40
Remove properties absent from the schema before validation. Default: false
target?
Section titled “target?”
optionaltarget?:"data"|"result"|"query"
Defined in: validate.ts:36
Source to validate. Default: ‘data’