Add conformance test for null value in list JSON
This commit is contained in:
parent
822b924d59
commit
5140bae383
@ -2320,6 +2320,24 @@ bool ConformanceTestSuite::RunSuite(ConformanceTestRunner* runner,
|
||||
}
|
||||
}
|
||||
)");
|
||||
RunValidJsonTest(
|
||||
"ValueAcceptListWithNull", REQUIRED,
|
||||
R"({"optionalValue": ["x", null, "y"]})",
|
||||
R"(
|
||||
optional_value: {
|
||||
list_value: {
|
||||
values: {
|
||||
string_value: "x"
|
||||
}
|
||||
values: {
|
||||
null_value: NULL_VALUE
|
||||
}
|
||||
values: {
|
||||
string_value: "y"
|
||||
}
|
||||
}
|
||||
}
|
||||
)");
|
||||
RunValidJsonTest(
|
||||
"ValueAcceptObject", REQUIRED,
|
||||
R"({"optionalValue": {"value": 1}})",
|
||||
|
Loading…
Reference in New Issue
Block a user