-
Notifications
You must be signed in to change notification settings - Fork 6k
Generalized configuration options #616
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
Comments
Suggest the following:
We will still have sensible defaults that won't be |
👍 I like this, and seems flexible enough for now. |
@fehguy I agree and it's definitely better than the hard-coded On top of that, I suggest we come up with a better default package name base on the domain name from the |
+1 |
I am planning on implementing this. Has any work been already done/committed ? |
not that I know of - go for it :-) |
@hyeghiazaryan sounds great. Basically we need to have a mechanism to pass args into the different language implementations and having them self-documented. Then the -h command should be able to list the args for each of the implementations. I believe we want to have both a command-line (arg) model as well as a JSON payload. So for example setting the package for the models in the java generator could be something like such:
and in a configuration: {
"modelPackage": "io.swagger.models"
} |
Hi, i'm wondering why there is no getters and setters on the members of the codegenerators classes, is there any reason ? I've patched my copy of swagger-codegen to have getters and setters for all the members of the generators, and patched the swagger-maven-plugin to set them on the CodeGenConfig object and it works well and is easy to code (at least to set string properties). So i'm wondering what i have missed, could you give me a hint ? there is another way to inject properties without patching the code ? (Sorry but i just begin to play with the swagger codegen) |
@rastaman - it would be much better to open an issue for your question that post it on a completely unrelated one. |
Work to add lang specific command-line args has been done. |
oops, seems like I have made changes to a Deprecated class, will transfer to swagger-codegen-cli |
rolled back deprecated class changes |
Support for file based config. Implementation for #616.
I think this can be closed as #805 has been merged. |
Need to pass a generalized configuration object to the generator so the default values can be overridden. Otherwise, everyone needs to recompile for every change.
The text was updated successfully, but these errors were encountered: