File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 711
711
}
712
712
]
713
713
},
714
+ {
715
+ "description" : " unevaluatedItems with minContains = 0" ,
716
+ "schema" : {
717
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
718
+ "contains" : {"type" : " string" },
719
+ "minContains" : 0 ,
720
+ "unevaluatedItems" : false
721
+ },
722
+ "tests" : [
723
+ {
724
+ "description" : " empty array is valid" ,
725
+ "data" : [],
726
+ "valid" : true
727
+ },
728
+ {
729
+ "description" : " no items evaluated by contains" ,
730
+ "data" : [0 ],
731
+ "valid" : false
732
+ },
733
+ {
734
+ "description" : " some but not all items evaluated by contains" ,
735
+ "data" : [" foo" , 0 ],
736
+ "valid" : false
737
+ },
738
+ {
739
+ "description" : " all items evaluated by contains" ,
740
+ "data" : [" foo" , " bar" ],
741
+ "valid" : true
742
+ }
743
+ ]
744
+ },
714
745
{
715
746
"description" : " non-array instances are valid" ,
716
747
"schema" : {
Original file line number Diff line number Diff line change 718
718
}
719
719
]
720
720
},
721
+ {
722
+ "description" : " unevaluatedItems with minContains = 0" ,
723
+ "schema" : {
724
+ "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
725
+ "contains" : {"type" : " string" },
726
+ "minContains" : 0 ,
727
+ "unevaluatedItems" : false
728
+ },
729
+ "tests" : [
730
+ {
731
+ "description" : " empty array is valid" ,
732
+ "data" : [],
733
+ "valid" : true
734
+ },
735
+ {
736
+ "description" : " no items evaluated by contains" ,
737
+ "data" : [0 ],
738
+ "valid" : false
739
+ },
740
+ {
741
+ "description" : " some but not all items evaluated by contains" ,
742
+ "data" : [" foo" , 0 ],
743
+ "valid" : false
744
+ },
745
+ {
746
+ "description" : " all items evaluated by contains" ,
747
+ "data" : [" foo" , " bar" ],
748
+ "valid" : true
749
+ }
750
+ ]
751
+ },
721
752
{
722
753
"description" : " non-array instances are valid" ,
723
754
"schema" : {
You can’t perform that action at this time.
0 commit comments