Skip to content

Commit

Permalink
keep default response in spring codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
devdevx committed Aug 20, 2023
1 parent 2e18294 commit 5fdd7de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public Map<String, Object> postProcessOperations(Map<String, Object> objs) {
if (responses != null) {
for (final CodegenResponse resp : responses) {
if ("0".equals(resp.code)) {
resp.code = "200";
resp.code = "default";
}
if (resp.baseType == null) {
// set vendorExtensions.x-java-is-response-void to true as baseType is set to "Void"
Expand Down

0 comments on commit 5fdd7de

Please sign in to comment.