Skip to content

Commit

Permalink
test: add testcase for map of google.protobuf.Value
Browse files Browse the repository at this point in the history
  • Loading branch information
vchudnov-g committed Oct 16, 2024
1 parent 4e64b3c commit 66716f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ message Address {
// This is a field to test that we can create a map whose values are google.protobuf.ListValue.
map<string, google.protobuf.ListValue> metadata_map_list_value = 117212259;

// This is a field to test that we can create a map whose values are google.protobuf.Value.
map<string, google.protobuf.Value> metadata_map_value = 453356478;

// This is a field to test that we can create google.protobuf.Struct.
optional google.protobuf.Struct metadata_struct = 224324325;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,14 @@
"type": "any",
"format": "google.protobuf.Value"
},
"metadataMapValue": {
"description": "This is a field to test that we can create a map whose values are google.protobuf.Value.",
"type": "object",
"additionalProperties": {
"format" : "google.protobuf.Value",
"type": "any"
}
},
"metadataListValue": {
"description": "This is a field to test that we can create google.protobuf.ListValue.",
"type": "array",
Expand Down

0 comments on commit 66716f8

Please sign in to comment.