Add failing tests for google.protobuf Struct and Value #9
This commit is contained in:
		| @@ -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 = { | ||||||
|   | |||||||
| @@ -0,0 +1,5 @@ | |||||||
|  | { | ||||||
|  |   "struct": { | ||||||
|  |     "key": true | ||||||
|  |   } | ||||||
|  | } | ||||||
| @@ -0,0 +1,7 @@ | |||||||
|  | syntax = "proto3"; | ||||||
|  |  | ||||||
|  | import "google/protobuf/struct.proto"; | ||||||
|  |  | ||||||
|  | message Test { | ||||||
|  |   google.protobuf.Struct struct = 1; | ||||||
|  | } | ||||||
| @@ -0,0 +1,11 @@ | |||||||
|  | { | ||||||
|  |   "value1": "hello world", | ||||||
|  |   "value2": true, | ||||||
|  |   "value3": 1, | ||||||
|  |   "value4": null, | ||||||
|  |   "value5": [ | ||||||
|  |     1, | ||||||
|  |     2, | ||||||
|  |     3 | ||||||
|  |   ] | ||||||
|  | } | ||||||
| @@ -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; | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user