Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

Option to split generated code in multiple files #55

Closed Senci closed 4 years ago

Senci commented 5 years ago

Hey guys, I just started using swagger-axios-codegen.

Are there any technical issues why you aren't splitting the generated code into multiple files spread over multiple folders? And may this be an option for future releases?

Manweill commented 5 years ago

@Senci Yeah~file diff, and then it will generated more and more files

nibytes commented 4 years ago

On the one hand, this is a good idea, during updates only those files that need to be changed will change, on the other hand, this makes it difficult to track these very files.

fairking commented 4 years ago

It could be an option to generate services in separate files by service tag name. And it could be useful when you have a lot of api and you want to import only what you want. The only problem is models. How you would split them if the same model shared across different services from different files. There must be a separate file models as well.

Manweill commented 4 years ago

@Senci @fairking Hei, Multi-file mode has been implemented, can you please testing?