Comments (5)
I noticed that this happens if you have DTOs with NestJs decorators (https://docs.nestjs.com/openapi/types-and-parameters). Removing them and only having DTO's defined with zod functions makes the error go away.
from nestjs-zod.
Will be fixed in #18
from nestjs-zod.
Please check out this answer: #28 (comment)
from nestjs-zod.
It's not working for me and I'm not using PartialType
but since my backend is huge, I'm migrating dto's 1 by 1. So I've some class dto and some zod, is it causing the issue?
from nestjs-zod.
May be fixed in #42
from nestjs-zod.
Related Issues (20)
- Error with Exported Variable and Type Inference HOT 1
- A few ideas HOT 3
- DTO is not a class, all fields typed as optional HOT 2
- Is it possible to have transformed values in the Controllers after the DTOs pass validation? HOT 1
- Enum type issue HOT 1
- Fix: dateString regex issue
- Union type issue HOT 5
- Asking for Binary zod type
- NestJS Interceptor receives a Promise instead of resolved data HOT 1
- Zod + nestjs + prisma (all optional fields) HOT 2
- Support setErrorMap HOT 1
- Add support to `.brand` schemas HOT 1
- Ghost Dependency: RxJS
- ZodSerializerDto isn't used for OpenAPI HOT 1
- z.string().datetime() is not generated correctly the format is missed in the openapi spec HOT 2
- Date is not shown in Swagger doc.
- ZodDate does not generate type and format for OpenApi HOT 1
- How do I show the validation errors when using a global pipe? HOT 1
- ZodSerializerInterceptor does not work, because there is no name attribute
- How can `z.dateString()` be used for date-revival ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-zod.