Firstly, thanks for your work on this project! π
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: