2018-12-17 16:55:11 +00:00
|
|
|
--- top-level type mismatch
|
|
|
|
top-level object is supposed to be a dictionary
|
|
|
|
---
|
2020-04-04 21:31:07 +00:00
|
|
|
--- missing items
|
2022-01-17 23:40:38 +00:00
|
|
|
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": 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
|
2018-12-17 16:55:11 +00:00
|
|
|
---
|
|
|
|
--- top-level schema array error
|
|
|
|
top-level object schema array contains other than one item
|
|
|
|
---
|
|
|
|
--- lower-level schema array error
|
2022-01-17 23:40:38 +00:00
|
|
|
json key ".one.a.r" schema array contains other than one item
|
|
|
|
json key ".two" schema array contains other than one item
|
2018-12-17 16:55:11 +00:00
|
|
|
---
|
2022-01-22 19:33:26 +00:00
|
|
|
--- 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
|
|
|
|
---
|
2018-12-17 16:55:11 +00:00
|
|
|
--- pass
|
|
|
|
---
|
|
|
|
end of json tests
|