-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise ParseError for non-numeric strings in numeric fields in Ruby an…
…d PHP JSON parsing. This fixes Ruby and PHP to be conformant with the Protobuf's JSON spec. Note this fix is not accompanied by a major version bump for Ruby or PHP, but was pre-announced in https://engdoc.corp.google.com/eng/doc/devguide/proto/news/2024-11-07.md#ruby-and-php-errors-in-json-parsing and landed as a warning in 29.x. PiperOrigin-RevId: 704855202
- Loading branch information
1 parent
828716e
commit abb197c
Showing
10 changed files
with
6 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
Required.*.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.DoubleFieldStringValueNonNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.DoubleFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.FloatFieldStringValueNonNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.FloatFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
Required.*.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.DoubleFieldStringValueNonNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.DoubleFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.FloatFieldStringValueNonNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.FloatFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. | ||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters