Skip to content

Commit

Permalink
cr: use template.String()
Browse files Browse the repository at this point in the history
  • Loading branch information
max107 committed Oct 24, 2023
1 parent 41660f8 commit 77bd5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi/parser/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ func (e *expander) Spec(api *openapi.API) (spec *ogen.Spec, err error) {

func (e *expander) Server(s openapi.Server) (expanded ogen.Server, err error) {
expanded.Description = s.Description
expanded.URL = s.URL

var (
template strings.Builder
Expand All @@ -160,6 +159,7 @@ func (e *expander) Server(s openapi.Server) (expanded ogen.Server, err error) {
Description: param.Description,
}
}
expanded.URL = template.String()
if len(vars) > 0 {
expanded.Variables = vars
}
Expand Down

0 comments on commit 77bd5a7

Please sign in to comment.