Skip to content

Commit

Permalink
[kit] fix contract parsed used in generators
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsannm committed May 28, 2024
1 parent 4ee5f9a commit 880979c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kit/desc/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func (ps *ParsedService) parseContract(c Contract) []ParsedContract {
if strings.HasPrefix(p, ":") {
pc.PathParams = append(pc.PathParams, p[1:])
}
if strings.HasPrefix(p, "{") && strings.HasSuffix(p, "}") {
pc.PathParams = append(pc.PathParams, p[1:len(p)-1])
}
}
case kit.RPCRouteSelector:
pc.Type = RPC
Expand Down

0 comments on commit 880979c

Please sign in to comment.