We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The parameters model-package and api-package have no effect, java files are being created with package "io.swagger".
3.0.0
sample petstore.yaml from https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/petstore.yaml
java -jar swagger-codegen-cli-3.0.0.jar generate -i petstore.yaml -l jaxrs-spec --api-package=test.api --model-package=test.model
Execute command line above. Result is:
src -- gen -- java |-- io | -- swagger | |-- api | | -- PetsApi.java | -- model | |-- Error.java | |-- Pet.java | -- Pets.java -- test -- RestApplication.java
src
-- gen
-- java
|-- io
| -- swagger
| |-- api
| | -- PetsApi.java
| -- model
| |-- Error.java
| |-- Pet.java
| -- Pets.java
-- test
-- RestApplication.java
api and model should be in the defined "test" package, just as the RestApplication class.
The text was updated successfully, but these errors were encountered:
I have the same problem. Any workarounds?
Sorry, something went wrong.
+1 same issue
thanks for filing this, gonna try to get it fix asap
duplicate issue here: swagger-api/swagger-codegen-generators#76
Fixed in swagger-api/swagger-codegen-generators#560
This is still an issue for the C# generated code. model-package does not work properly.
HugoMario
No branches or pull requests
Description
The parameters model-package and api-package have no effect, java files are being created with package "io.swagger".
Swagger-codegen version
3.0.0
Swagger declaration file content or url
sample petstore.yaml from https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/petstore.yaml
Command line used for generation
java -jar swagger-codegen-cli-3.0.0.jar generate -i petstore.yaml -l jaxrs-spec --api-package=test.api --model-package=test.model
Steps to reproduce
Execute command line above. Result is:
src
-- gen
-- java
|-- io
| -- swagger
| |-- api
| | -- PetsApi.java
| -- model
| |-- Error.java
| |-- Pet.java
| -- Pets.java
-- test
-- RestApplication.java
api and model should be in the defined "test" package, just as the RestApplication class.
The text was updated successfully, but these errors were encountered: