Replies: 1 comment 1 reply
-
Hello @firxworx , Thank you for the kind words. I'm sad to tell you that for the moment, i've not yet followed the rabbit hole of integrating NestJs. One issue that i see for the moment is that typescript
The last one is i think the only one that could preserve full typesafety. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey I stumbled across zodios and think its awesome what you are doing. I saw the roadmap has
@zodios/nestjs
and I think that would be the cherry on top for a powerhouse TS stack.I'm curious how you envision integration with NestJS? What might the integration with NestJS and dev experience look like in your ideal scenario? I'm guessing from the
zodiosApp
API you might have an idea to do something different than a typical idiomatic NestJS app?I figure there are plenty of options to elegantly work in zodios-style thinking with NestJS especially if using it with Express vs. Fastify where it would be compatible with express middleware and you can access the Express req + res.
I guess possible integration approaches include implementing a ZodiosModule that gets passed the API configuration as config, or perhaps a ZodiosController + ZodiosService combo that could be added (perhaps extended by controller + service classes) to bring them into an existing NestJS module.
Nest also has the ability to use global interceptors, filters, etc that could serve as integration points.
I assume you've seen https://github.com/anatine/zod-plugins
Those are more tools for an idiomatic NestJS approach such as a validation pipe that works with zod schemas.
Beta Was this translation helpful? Give feedback.
All reactions