Skip to content

Commit 1cd1001

Browse files
authored
Fix returning NoContent. (#9830)
1 parent 0f578d4 commit 1cd1001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellServantCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public CodegenOperation fromOperation(String resourcePath, String httpMethod, Op
564564
// Add the HTTP method and return type
565565
String returnType = op.returnType;
566566
if (returnType == null || returnType.equals("null")) {
567-
returnType = "()";
567+
returnType = "NoContent";
568568
}
569569
if (returnType.indexOf(" ") >= 0) {
570570
returnType = "(" + returnType + ")";

0 commit comments

Comments
 (0)