-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC JSON transcoding: Fix not supporting JSON name in querystring names #46624
Conversation
src/Grpc/JsonTranscoding/src/Shared/ServiceDescriptorHelpers.cs
Outdated
Show resolved
Hide resolved
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/aspnetcore/actions/runs/4219867289 |
Note the odd naming thing is now fixed; we should probably mirror that in the transcoding layer |
Hi @mgravell. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
|
Partially addresses #45753 (the issue reports two bugs)
Message fields have two names: the internal field name, which is conventionally
underscore_case
, and the JSON name, which is conventionallycamelCase
. The JSON name can be specified manually or automatically calculated from the field name, e.g.full_name
->fullName
.gRPC JSON transcoding supports binding query string values to message fields. The query string name can be either the field or JSON name. JSON names were not supported. This PR fixes that.