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
When I generate the server using reactive: true and useResponseEntity: true all works fine, but if I set useResponseEntity: false the generated code is wrong and doesn't compile.
Cpt76
changed the title
[BUG] [SPRING] Error when reactive: true and useResponseEntity: false
[BUG] [SPRING] Wrong code generation when reactive: true and useResponseEntity: false
Jun 30, 2023
Description
When I generate the server using reactive: true and useResponseEntity: true all works fine, but if I set useResponseEntity: false the generated code is wrong and doesn't compile.
openapi-generator version
6.6.0
OpenAPI declaration file content or url
Generation Details
openapi-generator generate -i ./openapi/openapi.yaml -o ./generated_server/ -g spring -c openapi-server-config.yaml
configuration file openapi-server-config.yaml:
artifactDescription: autogenerated api stubs
artifactId: service-openapi-api
artifactVersion: 1.94.190
library: spring-boot
groupId: com.example
parentArtifactId: service-pom
parentGroupId: com.example
parentVersion: 1.94.190
delegatePattern: true
useTags: true
reactive: true
interfaceOnly: true
useResponseEntity: false
Steps to reproduce
Run the above command with the above configuration on any openapi.yaml containing APIs returning no content, like userDelete.
The generated code is wrong and doesn't compile, e.g.
The error is that void is lower case (should be upper case).
When useResponseEntity: true Void is upper case and the code compiles.
The text was updated successfully, but these errors were encountered: