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
defaultResponseEntity<Void> updateUser(@ApiParam(value = "Updated user object" ,required=true ) @Valid@RequestBodyUserbody@ApiParam(value = "name that need to be updated",required=true) @PathVariable("username") Stringusername) {
Expected generated code
UserApi.java
defaultResponseEntity<Void> updateUser(@ApiParam(value = "Updated user object" ,required=true ) @Valid@RequestBodyUserbody,
@ApiParam(value = "name that need to be updated",required=true) @PathVariable("username") Stringusername) {
The text was updated successfully, but these errors were encountered:
/Users/simon/test/spring-boot-docker/build/swagger-code-api/src/main/java/example/api/UserApi.java:164: error: illegal start of expression
default ResponseEntity<Void> updateUser(@ApiParam(value = "Updated user object" ,required=true ) @Valid @RequestBody User body@ApiParam(value = "name that need to be updated",required=true) @PathVariable("username") String username) {
Description
The generated server code contains a syntax error.
Swagger-codegen version
swagger-codegen 3.0.3 installed with brew
Swagger declaration file content or url
http://petstore.swagger.io/v2/swagger.yaml
Command line used for generation
Related issues/PRs
probably #8631
Actual generated code
UserApi.java
Expected generated code
UserApi.java
The text was updated successfully, but these errors were encountered: