Skip to content

Commit 043b076

Browse files
authored
go-gin-server: minor updates (#24658)
1 parent c5ee1a7 commit 043b076

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

bin/configs/go-gin-server-go-gin-api-server-interface-only.yaml renamed to bin/configs/go-gin-server-interface-only.yaml

File renamed without changes.
File renamed without changes.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.util.List;
3232

3333
import static org.openapitools.codegen.CodegenConstants.INTERFACE_ONLY;
34-
import static org.openapitools.codegen.CodegenConstants.INTERFACE_ONLY_DESC;
3534

3635
/**
3736
* <p>Mustache templates are located in {@code src/main/resources/go-gin-server/}.
@@ -137,7 +136,8 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
137136
List<CodegenOperation> operationList = operations.getOperation();
138137
for (CodegenOperation op : operationList) {
139138
if (op.path != null) {
140-
op.path = op.path.replaceAll("\\{(.*?)\\}", ":$1");
139+
op.path = op.path.replaceAll("\\{(.*?)}", ":$1");
140+
LOGGER.debug("Updated operation path: {}", op.path);
141141
}
142142
}
143143
return objs;

0 commit comments

Comments
 (0)