-
-
Notifications
You must be signed in to change notification settings - Fork 392
Unable to generate client via NPX since 13.0.24 #1124
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
Comments
Could you try 13.0.28? |
We have also issues with the CLI starting from 0.24. It seems that the 13.0.24 introduced a new CLI that requires us to provide one of the commands compared to the old CLI that defaulted to generate-api. Old: New: |
Just to chime in, I upgraded from Not sure if this is the desired behavior or not, but it is a change in behavior. |
Well, it was actually kind of a breaking change... |
docs are updated by this commit: 422c850 |
This should fix the breaking change: #1198 |
Running:
npx swagger-typescript-api --axios --module-name-index 1 --unwrap-response-data -t ./client/templates -p swagger.json -o ./client -n client.ts
has broken since the recent updates.
Partial fix is to force the 13.0.23 version.
npx swagger-typescript-api@13.0.23
otherwise i get this error:
ERROR error while fetching data from URL "swagger.json" Failed to parse URL from swagger.json 3:57:11 PM
[cause]: Invalid URL
ERROR Cannot create property 'info' on string 'error while fetching data from URL "swagger.json"' 3:57:11 PM
ERROR Cannot create property 'info' on string 'error while fetching data from URL "swagger.json"' 3:57:11 PM
The text was updated successfully, but these errors were encountered: