Skip to content

Commit

Permalink
Revert change that should go in separate PR
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindwe committed Mar 21, 2022
1 parent d6949db commit 3560f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-openapiv2/internal/genopenapi/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ func renderServices(services []*descriptor.Service, paths openapiPathsObject, re
bodyFieldName = bodyField.Name
}
// Align pathParams with body field path.
pathParams := subPathParams(bodyField.Name, b.PathParams)
pathParams := subPathParams(bodyFieldName, b.PathParams)
var err error
schema, err = renderFieldAsDefinition(bodyField.Target, reg, customRefs, pathParams)
if err != nil {
Expand Down

0 comments on commit 3560f03

Please sign in to comment.