Empty strings are invalid numeric values. upb must fail to convert JSON objects that contain empty string values for numbers, but it currently does not. PiperOrigin-RevId: 681623866pull/18590/head
parent
976eff8d2b
commit
d88a3d0c95
5 changed files with 117 additions and 1 deletions
@ -0,0 +1,24 @@ |
||||
Required.Editions_Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
@ -0,0 +1,24 @@ |
||||
Required.Editions_Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
@ -0,0 +1,24 @@ |
||||
Required.Editions_Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
Loading…
Reference in new issue