Skip to content

Commit 4cf3399

Browse files
committed
src/google/protobuf: document UnmarshalJSON / API level behavior
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]>
1 parent 8edf940 commit 4cf3399

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/google/protobuf/go_features.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extend google.protobuf.FeatureSet {
1919

2020
message GoFeatures {
2121
// Whether or not to generate the deprecated UnmarshalJSON method for enums.
22+
// Can only be true for proto using the Open Struct api.
2223
optional bool legacy_unmarshal_json_enum = 1 [
2324
retention = RETENTION_RUNTIME,
2425
targets = TARGET_TYPE_ENUM,

types/gofeaturespb/go_features.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)