aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-07-24 22:17:03 +0200
committerJay Berkenbilt <ejb@ql.org>2022-07-24 22:17:03 +0200
commitf8d1ab946205440ed3c44511ef42e5ad13fb9e5e (patch)
treeb9cae2ce60a010300777528063932d80307a7746 /libtests/qtest
parentb3e6d445cbf73da2b00062c3f639c2453041ee41 (diff)
downloadqpdf-f8d1ab946205440ed3c44511ef42e5ad13fb9e5e.tar.zst
JSON schema -- accept single item in place of array
When the schema wants a variable-length array, allow a single item as well as allowing an array.
Diffstat (limited to 'libtests/qtest')
-rw-r--r--libtests/qtest/json/json.out3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtests/qtest/json/json.out b/libtests/qtest/json/json.out
index c7cb85a7..811f8aed 100644
--- a/libtests/qtest/json/json.out
+++ b/libtests/qtest/json/json.out
@@ -4,7 +4,8 @@ top-level object is supposed to be a dictionary
--- missing items
json key ".one.a": key "q" is present in schema but missing in object
json key ".one.a.r" is supposed to be a dictionary
-json key ".one.a.s" is supposed to be an array
+json key ".one.a.s": key "ss" is present in schema but missing in object
+json key ".one.a.s": key "z" is not present in schema but appears in object
json key ".one.a": key "t" is not present in schema but appears in object
json key ".three.anything": key "z" is present in schema but missing in object
json key ".three.anything": key "x" is not present in schema but appears in object