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
After updating from version 13.0.23 to 13.0.26, we get an error when running the following command: npx swagger-typescript-api -p http://localhost:5221/swagger/v1/swagger.json -o src/api -t ./apitemplates/ -n DotnetApi
The error:
> npx swagger-typescript-api -p http://localhost:5221/swagger/v1/swagger.json -o src/api -t ./apitemplates/ -n DotnetApi
Generate the API client for Fetch or Axios from an OpenAPI Specification (swagger-typescript-api v13.0.25) 10:57:25
USAGE swagger-typescript-api generate|generate-templates
COMMANDS
generate Generate the API client for Fetch or Axios from an OpenAPI Specification
generate-templates Generate ".ejs" templates needed for generate api
Use swagger-typescript-api <command> --help for more information about a command.
ERROR Unknown command http://localhost:5221/swagger/v1/swagger.json
Activity
smorimoto commentedon Mar 24, 2025
We've made the subcommand required, so you now need to specify either
generateorgenerate-templates.