Added filtering for MessagePack (closes #1298, closes #1394)

This commit is contained in:
Benoit Blanchon
2020-10-13 09:40:39 +02:00
parent 0bd17aff8a
commit 712005219c
6 changed files with 1534 additions and 130 deletions

View File

@ -62,6 +62,15 @@ TEST_CASE("Filtering") {
"null",
0
},
{
// Member is a string, but filter wants an array
"{\"example\":\"example\"}",
"{\"example\":[true]}",
10,
DeserializationError::Ok,
"{\"example\":null}",
JSON_OBJECT_SIZE(1) + 8
},
{
// Input is an array, but filter wants an object
"[\"hello\",\"world\"]",

View File

@ -8,6 +8,7 @@ add_executable(MsgPackDeserializerTests
deserializeStaticVariant.cpp
deserializeVariant.cpp
doubleToFloat.cpp
filter.cpp
incompleteInput.cpp
input_types.cpp
misc.cpp

File diff suppressed because it is too large Load Diff