-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
jaxrs-cxf-client - Generate error in @ApiResponse when the response class is not specified #7853
Comments
Thank you for this report. I have proposed a fixed for the 2.x version here: #7886. I have taken this opportunity to work on a port of |
Fix for v3: swagger-api/swagger-codegen-generators#47 |
In v3, the The next You are writting that you are using maven. I guess that if you run your build with You can give it a try and report feedback here. |
@HugoMario @webron, can you please add |
Both PR have been fixed for v2 and v3. This issue can be closed. |
Description
ISSUE:
I use language jaxrs-cxf-client and inside json file there is not specified a response class for HTTP Status code 401.
After generation, the api class contains several errors about @ApiResponse. In detail the plugin generates this line in error "response = .class"
API class generated (Java code)
Swagger-codegen version
2.2.3 and 2.3.1
Swagger declaration file content
Command line used for generation
I use maven generate goals with this configuration:
The text was updated successfully, but these errors were encountered: