You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having thisswagger.yaml and running npx ts-node -r tsconfig-paths/register src/main.swagger.ts && npx openapi-typescript ./swagger.yaml -o ./types/schema.ts threw TypeError: schemaObject.required?.includes is not a function. I use zod-nestjs to generate classes with zod. I tracked the problem down to the package and could solve it with a simple check
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Having this
swagger.yaml
and runningnpx ts-node -r tsconfig-paths/register src/main.swagger.ts && npx openapi-typescript ./swagger.yaml -o ./types/schema.ts
threwTypeError: schemaObject.required?.includes is not a function
. I use zod-nestjs to generate classes with zod. I tracked the problem down to the package and could solve it with a simple checkHere is the diff that solved my problem:
The text was updated successfully, but these errors were encountered: