How to split types in multiple files base on the tag ? #1010
Unanswered
quxiaodong
asked this question in
Q&A
Replies: 3 comments
|
i need this also . it is useful very much |
0 replies
|
Would be really helpful, please implement 😄 |
0 replies
# Answer: Generate modules per tag group. In this case for Axios. (works for `"openapi": "3.0.1"`)
npx swagger-typescript-api generate -p ./swagger.json -o ./openapi --module-name-first-tag --modular --axios --single-http-client
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I use the
npx swagger-typescript-api -p http://localhost:3000/swagger/json -o ./src/openapi -n index.ts --clean-output --no-client --module-name-index 1 --module-name-first-tagto generate typesBut all the types are in a same file, How can I do to split types in different files, such as
iamandadministrator?All reactions