Closed teyyubismayil closed 3 months ago
same issue here
same situation in my project
I found temporary solution for this, just run a command with specific version for example
npx swagger-typescript-api@13.0.16 ...
I found temporary solution for this, just run a command with specific version for example
npx swagger-typescript-api@13.0.16 ...
Or you can downgrade to 13.0.16 and it works
Same issue here, confirmed that downgrading to 13.0.16
fixed it
same
pnpx swagger-typescript-api@13.0.16 -p "$TEMP_FILE" -o ./src/shared/generated -n api.ts \
--extract-request-params \
--extract-request-body \
--extract-response-body \
--extract-enums \
--route-types \
--axios \
--module-name-first-tag \
--single-http-client \
--enum-names-as-values \
--sort-routes \
--sort-types
versions upper than 13.0.16 also corrupted
@smorimoto Thanks for the fix! Everything is working here again 😄
Working for me as well with the new version! Thank you!
Everything is working for me too. Thank you @smorimoto
We've been gradually making changes to migrate the codebase to TypeScript, but in the process we've broken some things. Sorry for the bother 😑
Thanks for the fix @smorimoto!
Folllowing command fails with
TypeError: e.commands is not iterable
error at version13.0.19
:npx swagger-typescript-api --extract-request-params --axios -p ./swagger.json -n ./service.ts