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 22, 2022
1 parent d59c184 commit c5b3b61
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(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 c5b3b61

Please sign in to comment.