Add failing tests for google.protobuf Struct and Value #9

This commit is contained in:
boukeversteegh 2020-05-29 16:45:32 +02:00
parent eeed1c0db7
commit 62fc421d60
5 changed files with 38 additions and 0 deletions

View File

@ -12,6 +12,8 @@ tests = {
"casing_message_field_uppercase", # 11 "casing_message_field_uppercase", # 11
"namespace_keywords", # 70 "namespace_keywords", # 70
"namespace_builtin_types", # 53 "namespace_builtin_types", # 53
"googletypes_struct", # 9
"googletypes_value", # 9
} }
services = { services = {

View File

@ -0,0 +1,5 @@
{
"struct": {
"key": true
}
}

View File

@ -0,0 +1,7 @@
syntax = "proto3";
import "google/protobuf/struct.proto";
message Test {
google.protobuf.Struct struct = 1;
}

View File

@ -0,0 +1,11 @@
{
"value1": "hello world",
"value2": true,
"value3": 1,
"value4": null,
"value5": [
1,
2,
3
]
}

View File

@ -0,0 +1,13 @@
syntax = "proto3";
import "google/protobuf/struct.proto";
// Tests that fields of type google.protobuf.Value can contain arbitrary JSON-values.
message Test {
google.protobuf.Value value1 = 1;
google.protobuf.Value value2 = 2;
google.protobuf.Value value3 = 3;
google.protobuf.Value value4 = 4;
google.protobuf.Value value5 = 5;
}