Skip to content

Commit

Permalink
Update to google protobuf v26.0 (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm authored Mar 14, 2024
1 parent 4f94199 commit 19bb09b
Show file tree
Hide file tree
Showing 15 changed files with 261 additions and 116 deletions.
18 changes: 9 additions & 9 deletions packages/protobuf-conformance/failing_tests_without_bigint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
# That means number values in JSON will be unsafe as well. If you plan to use
# protobuf-es on runtimes without BigInt support, make sure that the JSON data
# you consume does contains 64-bit values as strings instead of numbers.
# ERROR, test=Required.Proto3.JsonInput.Int64FieldMaxValueNotQuoted.ProtobufOutput: Failed to parse input or produce output. request=json_payload: "{\"optionalInt64\": 9223372036854774784}" requested_output_format: PROTOBUF message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=parse_error: "Error: cannot decode field protobuf_test_messages.proto3.TestAllTypesProto3.optional_int64 from JSON: 9223372036854775000: not a safe integer: 9223372036854775000"
# ERROR, test=Required.Proto3.JsonInput.Int64FieldMaxValueNotQuoted.JsonOutput: Failed to parse input or produce output. request=json_payload: "{\"optionalInt64\": 9223372036854774784}" requested_output_format: JSON message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=parse_error: "Error: cannot decode field protobuf_test_messages.proto3.TestAllTypesProto3.optional_int64 from JSON: 9223372036854775000: not a safe integer: 9223372036854775000"
# ERROR, test=Required.Proto3.JsonInput.Int64FieldMinValueNotQuoted.ProtobufOutput: Failed to parse input or produce output. request=json_payload: "{\"optionalInt64\": -9223372036854775808}" requested_output_format: PROTOBUF message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=parse_error: "Error: cannot decode field protobuf_test_messages.proto3.TestAllTypesProto3.optional_int64 from JSON: -9223372036854776000: not a safe integer: -9223372036854776000"
# ERROR, test=Required.Proto3.JsonInput.Int64FieldMinValueNotQuoted.JsonOutput: Failed to parse input or produce output. request=json_payload: "{\"optionalInt64\": -9223372036854775808}" requested_output_format: JSON message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=parse_error: "Error: cannot decode field protobuf_test_messages.proto3.TestAllTypesProto3.optional_int64 from JSON: -9223372036854776000: not a safe integer: -9223372036854776000"
# ERROR, test=Required.Proto3.JsonInput.Uint64FieldMaxValueNotQuoted.ProtobufOutput: Failed to parse input or produce output. request=json_payload: "{\"optionalUint64\": 18446744073709549568}" requested_output_format: PROTOBUF message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=parse_error: "Error: cannot decode field protobuf_test_messages.proto3.TestAllTypesProto3.optional_uint64 from JSON: 18446744073709550000: not a safe integer: 18446744073709550000"
# ERROR, test=Required.Proto3.JsonInput.Uint64FieldMaxValueNotQuoted.JsonOutput: Failed to parse input or produce output. request=json_payload: "{\"optionalUint64\": 18446744073709549568}" requested_output_format: JSON message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=parse_error: "Error: cannot decode field protobuf_test_messages.proto3.TestAllTypesProto3.optional_uint64 from JSON: 18446744073709550000: not a safe integer: 18446744073709550000"
Required.Proto3.JsonInput.Int64FieldMaxValueNotQuoted.ProtobufOutput
Required.Proto3.JsonInput.Int64FieldMaxValueNotQuoted.JsonOutput
Required.Proto3.JsonInput.Int64FieldMinValueNotQuoted.ProtobufOutput
Required.Proto3.JsonInput.Int64FieldMinValueNotQuoted.JsonOutput
Required.Proto3.JsonInput.Uint64FieldMaxValueNotQuoted.ProtobufOutput
Required.Proto3.JsonInput.Uint64FieldMaxValueNotQuoted.JsonOutput
Required.Proto2.JsonInput.Int64FieldMaxValueNotQuoted.JsonOutput
Required.Proto2.JsonInput.Int64FieldMaxValueNotQuoted.ProtobufOutput
Required.Proto2.JsonInput.Int64FieldMinValueNotQuoted.JsonOutput
Required.Proto2.JsonInput.Int64FieldMinValueNotQuoted.ProtobufOutput
Required.Proto2.JsonInput.Uint64FieldMaxValueNotQuoted.JsonOutput
Required.Proto2.JsonInput.Uint64FieldMaxValueNotQuoted.ProtobufOutput

# Without BigInt support, our implementation does not validate that 64-bit
# values are within bounds.
# ERROR, test=Required.Proto3.JsonInput.Int64FieldTooLarge: Should have failed to parse, but didn't. request=json_payload: "{\"optionalInt64\": \"9223372036854775808\"}" requested_output_format: JSON message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=json_payload: "{\"optionalInt64\":\"9223372036854775808\"}"
# ERROR, test=Required.Proto3.JsonInput.Int64FieldTooSmall: Should have failed to parse, but didn't. request=json_payload: "{\"optionalInt64\": \"-9223372036854775809\"}" requested_output_format: JSON message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=json_payload: "{\"optionalInt64\":\"-9223372036854775809\"}"
# ERROR, test=Required.Proto3.JsonInput.Uint64FieldTooLarge: Should have failed to parse, but didn't. request=json_payload: "{\"optionalUint64\": \"18446744073709551616\"}" requested_output_format: JSON message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: JSON_TEST, response=json_payload: "{\"optionalUint64\":\"18446744073709551616\"}"
Required.Proto3.JsonInput.Int64FieldTooLarge
Required.Proto3.JsonInput.Int64FieldTooSmall
Required.Proto3.JsonInput.Uint64FieldTooLarge
Required.Proto2.JsonInput.Int64FieldTooLarge
Required.Proto2.JsonInput.Int64FieldTooSmall
Required.Proto2.JsonInput.Uint64FieldTooLarge

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

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

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

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

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

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

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

Loading

0 comments on commit 19bb09b

Please sign in to comment.