Skip to content

Commit 896023f

Browse files
authored
Merge pull request #1021 from Backbase/fix/gaslighting-server
Remove @Valid from return type
2 parents 357bef7 + c7bcbf0 commit 896023f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ It currently consists of
1414

1515
# Release Notes
1616
BOAT is still under development and subject to change.
17+
## 0.17.59
18+
* Fix bug where java-spring generator puts `@Valid` annoation on return type of Api methods, cause service to blame
19+
client for invalid generated response with a 400 status.
20+
## 0.17.58
21+
22+
## 0.17.57
23+
1724
## 0.17.56
1825
* Added new `flattenOutput` parameter into `bundle` execution to generate the bundled APIs directly into `output` directory, even though the respective `input` files are located within a subdirectory in the `input`.
1926
## 0.17.55

boat-scaffold/src/main/java/com/backbase/oss/codegen/java/BoatSpringCodeGen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
392392
codegenParameter.paramName = "httpServletRequest";
393393
codegenOperation.allParams.add(codegenParameter);
394394
}
395+
if (codegenOperation.returnType != null) {
396+
codegenOperation.returnType = codegenOperation.returnType.replace("@Valid", "");
397+
}
395398
return codegenOperation;
396399
}
397400

0 commit comments

Comments
 (0)