Dialect | https://json-schema.org/draft/2020-12/schema |
Ran |
implementation | cases (364) | tests (1245) | ||||
---|---|---|---|---|---|---|
errors | skipped |
failed
errored
|
||||
jsonoid scala | 0 | 298 | 343
failed: 336 errored: 7 |
|||
total | 0 | 298 | 343
failed: 336 errored: 7 |
Tests | jsonoid scala |
int by int | |
int by int fail | |
ignores non-numbers |
Tests | jsonoid scala |
zero is multiple of anything | |
4.5 is multiple of 1.5 | |
35 is not multiple of 1.5 |
Tests | jsonoid scala |
0.0075 is multiple of 0.0001 | |
0.00751 is not multiple of 0.0001 |
Tests | jsonoid scala |
always invalid, but naive implementations may raise an overflow error |
Tests | jsonoid scala |
any integer is a multiple of 1e-8 |
Tests | jsonoid scala |
allOf | |
mismatch second | |
mismatch first | |
wrong type |
Tests | jsonoid scala |
valid | |
mismatch base schema | |
mismatch first allOf | |
mismatch second allOf | |
mismatch both |
Tests | jsonoid scala |
valid | |
mismatch one |
Tests | jsonoid scala |
any value is valid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
any data is valid |
Tests | jsonoid scala |
any data is valid |
Tests | jsonoid scala |
number is valid | |
string is invalid |
Tests | jsonoid scala |
number is valid | |
string is invalid |
Tests | jsonoid scala |
null is valid | |
anything non-null is invalid |
Tests | jsonoid scala |
match | |
recursive match | |
mismatch | |
recursive mismatch |
Tests | jsonoid scala |
match array | |
mismatch array |
Tests | jsonoid scala |
slash invalid | |
tilde invalid | |
percent invalid | |
slash valid | |
tilde valid | |
percent valid |
Tests | jsonoid scala |
nested ref valid | |
nested ref invalid |
Tests | jsonoid scala |
ref valid, maxItems valid | |
ref valid, maxItems invalid | |
ref invalid |
Tests | jsonoid scala |
remote ref valid | |
remote ref invalid |
Tests | jsonoid scala |
property named $ref valid | |
property named $ref invalid |
Tests | jsonoid scala |
property named $ref valid | |
property named $ref invalid |
Tests | jsonoid scala |
any value is valid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
valid tree | |
invalid tree |
Tests | jsonoid scala |
object with numbers is valid | |
object with strings is invalid |
Tests | jsonoid scala |
referenced subschema doesn't see annotations from properties |
Tests | jsonoid scala |
invalid on inner field | |
invalid on outer field | |
valid on both fields |
Tests | jsonoid scala |
invalid on inner field | |
invalid on outer field | |
valid on both fields |
Tests | jsonoid scala |
number is valid | |
non-number is invalid |
Tests | jsonoid scala |
data is valid against first definition | |
data is invalid against first definition |
Tests | jsonoid scala |
data is valid against first definition | |
data is invalid against first definition |
Tests | jsonoid scala |
valid under the URN IDed schema | |
invalid under the URN IDed schema |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a string is valid | |
a non-string is invalid |
Tests | jsonoid scala |
a non-integer is invalid due to the $ref | |
an integer is valid |
Tests | jsonoid scala |
a non-integer is invalid due to the $ref | |
an integer is valid |
Tests | jsonoid scala |
a non-integer is invalid due to the $ref | |
an integer is valid |
Tests | jsonoid scala |
a string is valid | |
an integer is invalid |
Tests | jsonoid scala |
number is valid | |
non-number is invalid |
Tests | jsonoid scala |
number is valid | |
non-number is invalid |
Tests | jsonoid scala |
number is valid | |
non-number is invalid |
Tests | jsonoid scala |
one element matches, valid maxContains | |
too many elements match, invalid maxContains |
Tests | jsonoid scala |
allows null values |
Tests | jsonoid scala |
string is valid | |
number is invalid |
Tests | jsonoid scala |
array is valid | |
object is valid | |
number is invalid | |
string is invalid | |
null is invalid |
Tests | jsonoid scala |
array is valid | |
object is valid | |
null is valid | |
number is invalid | |
string is invalid |
Tests | jsonoid scala |
matching the pattern is valid | |
not matching the pattern is invalid |
Tests | jsonoid scala |
an additional valid property is valid | |
an additional invalid property is invalid |
Tests | jsonoid scala |
additional properties are allowed |
Tests | jsonoid scala |
properties defined in allOf are not examined |
Tests | jsonoid scala |
allows null values |
Tests | jsonoid scala |
Valid against both keywords | |
Valid against propertyNames, but not additionalProperties |
Tests | jsonoid scala |
longer is valid | |
too short is invalid |
Tests | jsonoid scala |
shorter is valid | |
exact length is valid | |
too long is invalid | |
ignores non-arrays |
Tests | jsonoid scala |
shorter is valid | |
too long is invalid |
Tests | jsonoid scala |
valid when valid against lone if | |
valid when invalid against lone if |
Tests | jsonoid scala |
valid when valid against lone then | |
valid when invalid against lone then |
Tests | jsonoid scala |
valid when valid against lone else | |
valid when invalid against lone else |
Tests | jsonoid scala |
valid through then | |
invalid through then | |
valid when if test fails |
Tests | jsonoid scala |
valid when if test passes | |
valid through else | |
invalid through else |
Tests | jsonoid scala |
valid through then | |
invalid through then | |
valid through else | |
invalid through else |
Tests | jsonoid scala |
object with all numbers is valid | |
object with strings is invalid |
Tests | jsonoid scala |
allows null values |
Tests | jsonoid scala |
$ref resolves to /$defs/A/allOf/1 | |
$ref does not resolve to /$defs/A/allOf/0 |
Tests | jsonoid scala |
longer is valid | |
too short is invalid |
Tests | jsonoid scala |
not required by default |
Tests | jsonoid scala |
property not required |
Tests | jsonoid scala |
first anyOf valid | |
second anyOf valid | |
both anyOf valid | |
neither anyOf valid |
Tests | jsonoid scala |
mismatch base schema | |
one anyOf valid | |
both anyOf invalid |
Tests | jsonoid scala |
any value is valid |
Tests | jsonoid scala |
any value is valid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
string is valid | |
number is valid |
Tests | jsonoid scala |
null is valid | |
anything non-null is invalid |
Tests | jsonoid scala |
passing case | |
failing case |
Tests | jsonoid scala |
string value | |
number value |
Tests | jsonoid scala |
An array of strings is valid | |
An array containing non-strings is invalid |
Tests | jsonoid scala |
An array of strings is valid | |
An array containing non-strings is invalid |
Tests | jsonoid scala |
An array of strings is valid | |
An array containing non-strings is invalid |
Tests | jsonoid scala |
An array of strings is valid | |
An array containing non-strings is invalid |
Tests | jsonoid scala |
An array of strings is invalid | |
An array of numbers is valid |
Tests | jsonoid scala |
An array of strings is valid | |
An array containing non-strings is invalid |
Tests | jsonoid scala |
Any array is valid |
Tests | jsonoid scala |
Any array is valid |
Tests | jsonoid scala |
Any array is valid |
Tests | jsonoid scala |
The recursive part doesn't need to validate against the root |
Tests | jsonoid scala |
instance with misspelled field | |
instance with correct field |
Tests | jsonoid scala |
incorrect parent schema | |
incorrect extended schema | |
correct extended schema |
Tests | jsonoid scala |
incorrect parent schema | |
incorrect extended schema | |
correct extended schema |
Tests | jsonoid scala |
incorrect parent schema | |
incorrect extended schema | |
correct extended schema |
Tests | jsonoid scala |
number is valid | |
non-number is invalid |
Tests | jsonoid scala |
follow $dynamicRef to a true schema | |
follow $dynamicRef to a false schema |
Tests | jsonoid scala |
integer property passes | |
string property fails |
Tests | jsonoid scala |
longer is valid | |
exact length is valid | |
too short is invalid | |
ignores non-arrays |
Tests | jsonoid scala |
longer is valid | |
too short is invalid |
Tests | jsonoid scala |
shorter is valid | |
too long is invalid |
Tests | jsonoid scala |
no properties is valid | |
one property is invalid |
Tests | jsonoid scala |
one element matches, invalid minContains | |
both elements match, valid minContains |
Tests | jsonoid scala |
empty data | |
invalid minContains | |
invalid maxContains | |
invalid maxContains and minContains |
Tests | jsonoid scala |
empty data | |
minContains = 0 makes contains always pass |
Tests | jsonoid scala |
empty data | |
not more than maxContains | |
too many |
Tests | jsonoid scala |
object with any properties is valid | |
empty object is valid |
Tests | jsonoid scala |
object with any properties is invalid | |
empty object is valid |
Tests | jsonoid scala |
a valid JSON document | |
an invalid JSON document; validates true | |
ignores non-strings |
Tests | jsonoid scala |
first oneOf valid | |
second oneOf valid | |
both oneOf valid | |
neither oneOf valid |
Tests | jsonoid scala |
mismatch base schema | |
one oneOf valid | |
both oneOf valid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
any value is valid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
any value is invalid |
Tests | jsonoid scala |
one valid - valid | |
both valid - invalid |
Tests | jsonoid scala |
both invalid - invalid | |
first valid - valid | |
second valid - valid | |
both valid - invalid |
Tests | jsonoid scala |
first oneOf valid | |
second oneOf valid | |
both oneOf valid | |
neither oneOf valid |
Tests | jsonoid scala |
null is valid | |
anything non-null is invalid |
Tests | jsonoid scala |
array with one item is valid | |
array with two items is invalid | |
empty array is valid |
Tests | jsonoid scala |
only the first item is validated |
Tests | jsonoid scala |
allows null elements |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with no unevaluated items | |
with valid unevaluated items | |
with invalid unevaluated items |
Tests | jsonoid scala |
unevaluatedItems doesn't apply |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
unevaluatedItems doesn't apply |
Tests | jsonoid scala |
valid under items | |
invalid under items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with only (valid) additional items | |
with no additional items | |
with invalid additional item |
Tests | jsonoid scala |
with no additional items | |
with additional items |
Tests | jsonoid scala |
with no additional items | |
with additional items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with unevaluated items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
with no unevaluated items | |
with unevaluated items |
Tests | jsonoid scala |
always fails |
Tests | jsonoid scala |
no extra items | |
uncle keyword evaluation is not significant |
Tests | jsonoid scala |
5 not evaluated, passes unevaluatedItems | |
7 not evaluated, fails unevaluatedItems |
Tests | jsonoid scala |
ignores booleans | |
ignores integers | |
ignores floats | |
ignores objects | |
ignores strings | |
ignores null |
Tests | jsonoid scala |
allows null elements |
Tests | jsonoid scala |
valid in case if is evaluated | |
invalid in case if is evaluated |
Tests | jsonoid scala |
matches root | |
matches dependency | |
matches both | |
no dependency |
Tests | jsonoid scala |
empty object | |
object with one property | |
non-object is valid |
Tests | jsonoid scala |
CRLF | |
quoted quotes | |
CRLF missing dependent | |
quoted quotes missing dependent |
Tests | jsonoid scala |
remote ref valid | |
remote ref invalid |
Tests | jsonoid scala |
remote fragment valid | |
remote fragment invalid |
Tests | jsonoid scala |
remote anchor valid | |
remote anchor invalid |
Tests | jsonoid scala |
ref within ref valid | |
ref within ref invalid |
Tests | jsonoid scala |
base URI change ref valid | |
base URI change ref invalid |
Tests | jsonoid scala |
number is valid | |
string is invalid |
Tests | jsonoid scala |
number is valid | |
string is invalid |
Tests | jsonoid scala |
string is valid | |
null is valid | |
object is invalid |
Tests | jsonoid scala |
integer is valid | |
string is invalid |
Tests | jsonoid scala |
number is invalid | |
string is valid |
Tests | jsonoid scala |
number is invalid | |
string is valid |
Tests | jsonoid scala |
number is invalid | |
string is valid |
Tests | jsonoid scala |
number is invalid | |
string is valid |
Tests | jsonoid scala |
number is valid | |
non-number is invalid |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no additional properties | |
with additional properties |
Tests | jsonoid scala |
with no additional properties | |
with additional properties |
Tests | jsonoid scala |
with no additional properties | |
with additional properties |
Tests | jsonoid scala |
with no additional properties | |
with additional properties |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
with no unevaluated properties | |
with unevaluated properties |
Tests | jsonoid scala |
always fails |
Tests | jsonoid scala |
always fails |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
with no nested unevaluated properties | |
with nested unevaluated properties |
Tests | jsonoid scala |
no extra properties | |
uncle keyword evaluation is not significant |
Tests | jsonoid scala |
ignores booleans | |
ignores integers | |
ignores floats | |
ignores arrays | |
ignores strings | |
ignores null |
Tests | jsonoid scala |
allows null valued properties |
Tests | jsonoid scala |
allows only number properties | |
string property is invalid |
Tests | jsonoid scala |
valid in case if is evaluated | |
invalid in case if is evaluated |
Tests | jsonoid scala |
shorter is valid | |
too long is invalid |
Tests | jsonoid scala |
valid definition schema | |
invalid definition schema |
Tests | jsonoid scala |
valid when property is specified | |
still valid when the invalid default is used |
Tests | jsonoid scala |
valid when property is specified | |
still valid when the invalid default is used |
Tests | jsonoid scala |
valid items | |
wrong type of items | |
ignores non-arrays | |
JavaScript pseudo-array is valid |
Tests | jsonoid scala |
any array is valid | |
empty array is valid |
Tests | jsonoid scala |
any non-empty array is invalid | |
empty array is valid |
Tests | jsonoid scala |
valid items | |
too many items | |
too many sub-items | |
wrong item | |
wrong sub-item | |
fewer items is valid |
Tests | jsonoid scala |
valid nested array | |
nested array with invalid type | |
not deep enough |
Tests | jsonoid scala |
valid items | |
wrong type of second item |
Tests | jsonoid scala |
heterogeneous invalid instance | |
valid instance |
Tests | jsonoid scala |
allows null elements |
Tests | jsonoid scala |
array with item 5 is valid | |
array with two items 5 is valid | |
array without item 5 is invalid |
Tests | jsonoid scala |
any non-empty array is valid | |
empty array is invalid |
Tests | jsonoid scala |
any non-empty array is invalid | |
empty array is invalid | |
non-arrays are valid |
Tests | jsonoid scala |
any non-empty array is valid | |
empty array is invalid |
Tests | jsonoid scala |
allows null items |
Tests | jsonoid scala |
matches a substring |
Tests | jsonoid scala |
one of the enum is valid | |
something else is invalid |
Tests | jsonoid scala |
null is valid | |
number is valid | |
something else is invalid |
Tests | jsonoid scala |
member 1 is valid | |
member 2 is valid | |
another string is invalid |
Tests | jsonoid scala |
false is valid | |
integer zero is invalid | |
float zero is invalid |
Tests | jsonoid scala |
[false] is valid | |
[0] is invalid | |
[0.0] is invalid |
Tests | jsonoid scala |
true is valid | |
integer one is invalid | |
float one is invalid |
Tests | jsonoid scala |
[true] is valid | |
[1] is invalid | |
[1.0] is invalid |
Tests | jsonoid scala |
false is invalid | |
integer zero is valid | |
float zero is valid |
Tests | jsonoid scala |
[false] is invalid | |
[0] is valid | |
[0.0] is valid |
Tests | jsonoid scala |
true is invalid | |
integer one is valid | |
float one is valid |
Tests | jsonoid scala |
[true] is invalid | |
[1] is valid | |
[1.0] is valid |
Tests | jsonoid scala |
match string with nul | |
do not match string lacking nul |
Tests | jsonoid scala |
same value is valid | |
another value is invalid | |
another type is invalid |
Tests | jsonoid scala |
same array is valid | |
another array item is invalid | |
array with additional items is invalid |
Tests | jsonoid scala |
null is valid | |
not null is invalid |
Tests | jsonoid scala |
false is valid | |
integer zero is invalid | |
float zero is invalid |
Tests | jsonoid scala |
true is valid | |
integer one is invalid | |
float one is invalid |
Tests | jsonoid scala |
[false] is valid | |
[0] is invalid | |
[0.0] is invalid |
Tests | jsonoid scala |
[true] is valid | |
[1] is invalid | |
[1.0] is invalid |
Tests | jsonoid scala |
{"a": false} is valid | |
{"a": 0} is invalid | |
{"a": 0.0} is invalid |
Tests | jsonoid scala |
{"a": true} is valid | |
{"a": 1} is invalid | |
{"a": 1.0} is invalid |
Tests | jsonoid scala |
true is invalid | |
integer one is valid | |
float one is valid |
Tests | jsonoid scala |
integer is valid | |
integer minus one is invalid | |
float is valid | |
float minus one is invalid |
Tests | jsonoid scala |
match string with nul | |
do not match string lacking nul |
Tests | jsonoid scala |
allowed | |
disallowed |
Tests | jsonoid scala |
valid | |
mismatch | |
other mismatch |
Tests | jsonoid scala |
match | |
other match | |
mismatch |
Tests | jsonoid scala |
property present | |
property absent |
Tests | jsonoid scala |
any value is valid |
Tests | jsonoid scala |
unevaluated property | |
annotations are still collected inside a 'not' |