Skip to content

Commit 357a88d

Browse files
Fixed wrong constant being used
The method getIsRestfulDestroy would return if it's a REST update instead of a REST delete because the wrong constant was used, probably a copy/paste error.
1 parent dcd80ff commit 357a88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public Boolean getIsRestfulUpdate() {
484484
}
485485

486486
public Boolean getIsRestfulDestroy() {
487-
return getBooleanValue(CodegenConstants.IS_RESTFUL_UPDATE_EXT_NAME);
487+
return getBooleanValue(CodegenConstants.IS_RESTFUL_DESTROY_EXT_NAME);
488488
}
489489

490490
public Boolean getIsRestful() {

0 commit comments

Comments
 (0)