You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generator jaxrs-spec generates invalid javadoc: It generates multiple @return tags: one for each possible response of the operation call. However, this is invalid (javadoc complains), since only a single instance of @return tag is expected.
openapi-generator version
open-api-generator-maven-plugin 7.11.0
OpenAPI declaration file content or url
The issue is reproducible with any OpenAPI declaration file declaring at least 2 responses for an operation, e.g.
Description
Generator jaxrs-spec generates invalid javadoc: It generates multiple @return tags: one for each possible response of the operation call. However, this is invalid (javadoc complains), since only a single instance of @return tag is expected.
openapi-generator version
open-api-generator-maven-plugin 7.11.0
OpenAPI declaration file content or url
The issue is reproducible with any OpenAPI declaration file declaring at least 2 responses for an operation, e.g.
https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator-gradle-plugin/samples/local-spec/petstore-v3.0.yaml
generates multiple @return tags for any method in PetsApi.java
Generation Details
Use the following spec in pom.xml
Steps to reproduce
Run mvn generate-sources
Related issues/PRs
Suggest a fix
Multiple responses should be covered by a single @return tag (e.g. as a list).
The text was updated successfully, but these errors were encountered: