Add a new conformance test for top level JSON null (#5966)
* Add a new conformance test for top level JSON null
This commit is contained in:
parent
64a483aad1
commit
6b4b9869ec
@ -2452,6 +2452,8 @@ void BinaryAndJsonConformanceSuite::RunSuiteImpl() {
|
||||
"unknown": {"a": 1}
|
||||
})",
|
||||
"");
|
||||
|
||||
ExpectParseFailureForJson("RejectTopLevelNull", REQUIRED, "null");
|
||||
}
|
||||
|
||||
} // namespace protobuf
|
||||
|
@ -43,3 +43,4 @@ Required.Proto3.ProtobufInput.DoubleFieldNormalizeSignalingNan.JsonOutput
|
||||
Required.Proto3.ProtobufInput.FloatFieldNormalizeQuietNan.JsonOutput
|
||||
Required.Proto3.ProtobufInput.FloatFieldNormalizeSignalingNan.JsonOutput
|
||||
Required.Proto3.ProtobufInput.ValidDataRepeated.FLOAT.JsonOutput
|
||||
Required.Proto3.JsonInput.RejectTopLevelNull
|
||||
|
@ -65,3 +65,4 @@ Required.Proto3.JsonInput.IgnoreUnknownJsonNumber.ProtobufOutput
|
||||
Required.Proto3.JsonInput.IgnoreUnknownJsonObject.ProtobufOutput
|
||||
Required.Proto3.JsonInput.IgnoreUnknownJsonString.ProtobufOutput
|
||||
Required.Proto3.JsonInput.IgnoreUnknownJsonTrue.ProtobufOutput
|
||||
Required.Proto3.JsonInput.RejectTopLevelNull
|
||||
|
@ -70,3 +70,4 @@ Required.Proto3.JsonInput.IgnoreUnknownJsonObject.ProtobufOutput
|
||||
Required.Proto3.JsonInput.IgnoreUnknownJsonString.ProtobufOutput
|
||||
Required.Proto3.JsonInput.IgnoreUnknownJsonTrue.ProtobufOutput
|
||||
Recommended.Proto3.JsonInput.FieldMaskInvalidCharacter
|
||||
Required.Proto3.JsonInput.RejectTopLevelNull
|
||||
|
Loading…
Reference in New Issue
Block a user