Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass on this when calling defaultExplore #42

Merged
merged 1 commit into from
May 2, 2023

Conversation

alfredringstad
Copy link
Contributor

When using zod based DTOs in combination with regular NestJS DTOs, the following error was thrown:

TypeError: Cannot read properties of undefined (reading 'isLazyTypeFunc')

It seems like the call to defaultExplore inside patchNestJsSwagger is not passing on this properly. After looking at the original source for this (https://github.com/anatine/zod-plugins/blob/main/packages/zod-nestjs/src/lib/patch-nest-swagger.ts) I changed it to this, which seems to have solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants