Type the controller parameter as a Zod schema instead (e.g., @Body() data: $CreateCatData,
where $CreateCatData is both a Zod schema and its inferred type). Parameters typed as classes using this
decorator are documented as unknown in the API docs.
Type the controller parameter as a Zod schema instead (e.g., @Body() data: $CreateCatData,
where $CreateCatData is both a Zod schema and its inferred type). Parameters typed as classes using this
decorator are documented as unknown in the API docs.
Decorator to define the Zod validation schema for DTO classes
Param: schema
The Zod schema to use for validation.
Returns
A class decorator that applies the schema.
Deprecated
Type the controller parameter as a Zod schema instead.