Commit 9806994
Add JSON conformance test that a single value provided for a repeated field should parse fail.
This adds tests for both an object instead of an array for a repeated submessage field, and a number instead of an array for a repeated int32 field.
C++Proto fails both tests. Pure-PHP fails this test only for the numbers case.
PiperOrigin-RevId: 7912662941 parent 67f4347 commit 9806994
3 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | | - | |
1985 | | - | |
1986 | 1984 | | |
1987 | 1985 | | |
1988 | 1986 | | |
| |||
2902 | 2900 | | |
2903 | 2901 | | |
2904 | 2902 | | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
2905 | 2911 | | |
2906 | 2912 | | |
2907 | 2913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
0 commit comments