Skip to content

Commit 319d50f

Browse files
authored
bug openapi: fix path params parsing again (#156)
1 parent 5d43d04 commit 319d50f

File tree

1 file changed

+2
-0
lines changed
  • pkg/generator/steps/openapi/processors

1 file changed

+2
-0
lines changed

pkg/generator/steps/openapi/processors/golang.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ func (p *goPostProcessor) PopulateServerHandlers(ctx *gencontext.GenContext, pat
9999
pathsSet := map[string]string{}
100100
for _, path := range paths {
101101
ctx.Logger.Infof("pre path: %s", path)
102+
path = strings.ReplaceAll(path, "{", "")
103+
path = strings.ReplaceAll(path, "}", "")
102104
pathsSet[toAPIFilename(path)] = path
103105
}
104106
ctx.Logger.Infof("paths: %v", pathsSet)

0 commit comments

Comments
 (0)