Skip to content

Commit

Permalink
src/google/protobuf: document UnmarshalJSON / API level behavior
Browse files Browse the repository at this point in the history
For golang/protobuf#1657

Change-Id: Icdf7254bced1c0987ff2e969fd096d6eef3918f7
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/635139
Reviewed-by: Damien Neil <[email protected]>
Reviewed-by: Cassondra Foesch <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
stapelberg committed Dec 16, 2024
1 parent 8edf940 commit 4cf3399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/google/protobuf/go_features.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extend google.protobuf.FeatureSet {

message GoFeatures {
// Whether or not to generate the deprecated UnmarshalJSON method for enums.
// Can only be true for proto using the Open Struct api.
optional bool legacy_unmarshal_json_enum = 1 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_ENUM,
Expand Down
1 change: 1 addition & 0 deletions types/gofeaturespb/go_features.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cf3399

Please sign in to comment.