We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583d7c6 commit 457a2bdCopy full SHA for 457a2bd
tests/draft2020-12/maxContains.json
@@ -98,5 +98,25 @@
98
"valid": false
99
}
100
]
101
+ },
102
+ {
103
+ "description": "maxContains = 0 with contains",
104
+ "schema": {
105
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
106
+ "contains": {"const": 1},
107
+ "maxContains": 0
108
109
+ "tests": [
110
111
+ "description": "empty array fails due to default minContains",
112
+ "data": [ ],
113
+ "valid": false
114
115
116
+ "description": "array with matching element fails due to maxContains",
117
+ "data": [ 1 ],
118
119
+ }
120
+ ]
121
122
0 commit comments