Skip to content

Commit

Permalink
Don't pass camelCase'd body field name as path param prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindwe committed Mar 21, 2022
1 parent 20bc08a commit e99f055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-openapiv2/internal/genopenapi/template.go
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(bodyFieldName, b.PathParams)
pathParams := subPathParams(bodyField.Name, b.PathParams)
var err error
schema, err = renderFieldAsDefinition(bodyField.Target, reg, customRefs, pathParams)
if err != nil {
Expand Down

0 comments on commit e99f055

Please sign in to comment.