Readonly
The Zod schema used to validate the data within the DTO and provide the shape of the data e.g. via getData().
getData()
Optional
Transforms an error caught while validating the DTO data into a new error instance. Useful if you want to customize the error handling for your DTOs e.g. by providing your own ValidationError type.
ValidationError
The original ZodError instance.
ZodError
The raw input data that failed validation.
The Zod schema used to validate the data within the DTO and provide the shape of the data e.g. via
getData()
.