Skip to content

Commit 72d9fc9

Browse files
Readd escaping
1 parent 778fedc commit 72d9fc9

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

modules/openapi-generator/src/main/resources/go-server/controller-api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (c *{{classname}}Controller) Routes() Routes {
6666
{{#operations}}
6767
{{#operation}}
6868
"{{operationId}}": Route{
69-
"{{operationId}}",
69+
"{{{operationId}}}",
7070
strings.ToUpper("{{httpMethod}}"),
7171
"{{{basePathWithoutHost}}}{{{path}}}",
7272
c.{{operationId}},
@@ -82,7 +82,7 @@ func (c *{{classname}}Controller) OrderedRoutes() []Route {
8282
{{#operations}}
8383
{{#operation}}
8484
Route{
85-
"{{operationId}}",
85+
"{{{operationId}}}",
8686
strings.ToUpper("{{httpMethod}}"),
8787
"{{{basePathWithoutHost}}}{{{path}}}",
8888
c.{{operationId}},

samples/openapi3/server/petstore/go/go-petstore/go/routers.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/server/others/go-server/no-body-path-params/go/routers.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/server/petstore/go-api-server/go/routers.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/server/petstore/go-chi-server/go/routers.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)