-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types/known/structpb: add support for more types and json.Number
Add support for additional primitive types such as int8, int16, uint8, uint16, and the json.Number type in the conversion logic of the NewValue function. This change ensures that the generated code can handle a wider range of Go types when converting them to protobuf Value types, improving compatibility with JSON data formats. fixes golang/protobuf#1463 Change-Id: I6ea7b8f644f6c3dbe5e6c17e744be40c56846328 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/601775 Reviewed-by: Michael Stapelberg <stapelberg@google.com> Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Funda Secgin <fundasecgin32@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information
1 parent
75479a3
commit b36f8e0
Showing
4 changed files
with
147 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters