Skip to content
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

Give more flexibility to the generators in how they create files #180

Open
ms14981 opened this issue Mar 7, 2023 · 0 comments
Open

Give more flexibility to the generators in how they create files #180

ms14981 opened this issue Mar 7, 2023 · 0 comments
Labels
enhancement New feature or request high-priority

Comments

@ms14981
Copy link
Contributor

ms14981 commented Mar 7, 2023

Currently, the main forge project uses _tags to (in some cases) split the ApiClient file into multiple Handlebars template files. This works fine, but enforces which files are split, and which aren't.

This has led to the issue in the Java generator where we want to split ApiModel into several files, rather than having multiple classes under this one file name. Having this is not idiomatic in Java.

This issue is to change the main forge and its generators to give responsibility for splitting template files into multiple ones to the generators, and not making that decision in the main forge.

Currently, if we want to split the ApiModel into multiple files without changing the code for all generators, we need to add a hacky post-processing step for the Java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high-priority
Projects
None yet
Development

No branches or pull requests

2 participants