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
Hi, as a developer, I'd love to be able to use the CLI tool like so:
# Generates all schemas listed in the `openapi-codegen.config.ts` file
npx openapi-codegen gen *
# or, alternatively, maybe an empty argument for `gen` would mean "generate all"
npx openapi-codegen gen
# or, maybe
npx openapi-codegen gen --all
My project has a half dozen APIs added, each with their own generate command in my package.json. I'd love the ability to quickly update all of the APIs listed in the config file.
Currently, I manually accomplish this by doing something like this in my package.json, but you can see how it gets pretty verbose, pretty quickly
"gen:Api1": "npx openapi-codegen gen Api1",
"gen:Api2": "npx openapi-codegen gen Api2",
"gen:Api3": "npx openapi-codegen gen Api3",
"gen:Api4": "npx openapi-codegen gen Api4",
"gen:Api5": "npx openapi-codegen gen Api5",
"gen:Api6": "npx openapi-codegen gen Api6",
"generateAllApis": "npm run gen:Api1 && npm run gen:Api2 && npm run gen:Api3 && npm run gen:Api4 && npm run gen:Api5 && npm run gen:Api6"
The text was updated successfully, but these errors were encountered:
daviseford
changed the title
Add ability to generate all schemas
Add ability to generate all schemas with one call to the CLI
Aug 23, 2023
Hi, as a developer, I'd love to be able to use the CLI tool like so:
My project has a half dozen APIs added, each with their own generate command in my package.json. I'd love the ability to quickly update all of the APIs listed in the
config
file.Currently, I manually accomplish this by doing something like this in my package.json, but you can see how it gets pretty verbose, pretty quickly
The text was updated successfully, but these errors were encountered: