mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-02 11:46:35 +00:00
f8d1ab9462
When the schema wants a variable-length array, allow a single item as well as allowing an array.
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
--- top-level type mismatch
|
|
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": 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
|
|
json key ".three.else": key "o" is present in schema but missing in object
|
|
json key ".two.1": key "glarp" is present in schema but missing in object
|
|
json key ".two.1": key "flarp" is not present in schema but appears in object
|
|
json key ".two.2" is supposed to be a dictionary
|
|
json key ".two.3" is supposed to be a dictionary
|
|
---
|
|
--- top-level schema array error
|
|
top-level object schema array contains other than one item
|
|
---
|
|
--- lower-level schema array error
|
|
json key ".one.a.r" schema array contains other than one item
|
|
json key ".two" schema array contains other than one item
|
|
---
|
|
--- bad schema field type
|
|
json key ".a" schema value is not dictionary, array, or string
|
|
---
|
|
--- not optional
|
|
json key ".three.<objid>": key "o" is present in schema but missing in object
|
|
---
|
|
--- pass
|
|
---
|
|
end of json tests
|