-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[python-flask] Can't specify more than one value in -Dmodels #811
Comments
@csimmons0 can you try the following by putting the
|
I also tried making "-Dmodels" the first argument after "generate", but that resulted in the same behavior as what I originally reported. |
I am at the root of this repo (cloned locally) Then I enter:
And I get:
This is the expected result. Note: I have the feeling you are using Homebrew. Is that correct? If not, what is the |
Ok I took an other look at the problem. In our code we do a Line 134 in 6a47d49
But if you put So this is what we are doing in the Lines 78 to 83 in 6a47d49
But then line 332: Line 332 in 6a47d49
tries to pass the content of
This is wrong because later in Lines 491 to 499 in 6a47d49
And the implementation distributes the content of the map as system property: Lines 628 to 632 in 6a47d49
|
Since this issue is still open and in case anyone is using an Ant based task and is using java ant task to run the codegen, here's how to pass it. Example: <java .... >
...
<jvmarg value="-Dmodels=Order,Pet"/>
<jvmarg value="-DsupportingFiles=JSON.java,ApiException.java,ApiResponse.java"/>
<arg value="generate" />
...
</java> |
@keeed thanks for sharing the tips. |
Description
If I use the -Dmodels argument to specify which models to generate and I specify more than one model, only the first is generated. Wrapping the list of model names in quotes does not fix the problem. I experience the same problem with -DsupportingFiles.
I took a look at the code in modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java, but I couldn't see an issue with it.
openapi-generator version
3.2.0
OpenAPI declaration file content or url
https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: