This is an example nestjs app that shows how to integrate with nestjs-zod
- Example showing how to setup
ZodValidationPipeandZodSerializerInterceptor: app.module.ts - Example showing how to integrate
cleanupOpenApiDoc: main.ts - Example showing how to implement custom zod error handling: http-exception.filter.ts
- Examples defining DTOs: people.dto.ts and starships.dto.ts
- Examples showing how to use DTOs: people.controller.ts and starships.controller.ts
- Example showing how to use zod to validate query params can be found in the
getPeoplemethod
- Example showing how to use zod to validate query params can be found in the
- Example showing how to use
codecs: people.dto.ts