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

[Java] [JAX-RS] parameters model-package / api-package have no effect #8708

Closed
pneumcke opened this issue Sep 17, 2018 · 6 comments
Closed
Assignees
Milestone

Comments

@pneumcke
Copy link

pneumcke commented Sep 17, 2018

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.

@thejjmiller
Copy link

I have the same problem. Any workarounds?

@knap1930
Copy link

+1 same issue

@HugoMario
Copy link
Contributor

thanks for filing this, gonna try to get it fix asap

@HugoMario HugoMario added this to the v3.0.3 milestone Oct 24, 2018
@HugoMario HugoMario self-assigned this Oct 24, 2018
@knap1930
Copy link

duplicate issue here: swagger-api/swagger-codegen-generators#76

@frantuma
Copy link
Member

@smargoli2
Copy link

This is still an issue for the C# generated code. model-package does not work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants