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.
2 parents 3bebc8d + 8ace642 commit 5c6a43dCopy full SHA for 5c6a43d
test/schema-path.js
@@ -145,3 +145,23 @@ tape('schemaPath', function(t) {
145
146
t.end()
147
})
148
+
149
+tape('schemaPath - nested selectors', function(t) {
150
+ var schema = {
151
+ anyOf: [
152
+ { oneOf:[
153
+ { allOf: [
154
+ {
155
+ properties: {
156
+ nestedSelectors: {type: "integer"}
157
+ }
158
159
+ ]}
160
161
+ ]
162
163
+ var validate = validator(schema, { verbose: true, greedy: true } );
164
+ t.notOk(validate({nestedSelectors: "nope"}), 'should not crash on visit inside *Of');
165
166
+ t.end()
167
+})
0 commit comments