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 9f8b79d commit a9541bbCopy full SHA for a9541bb
src/data.js
@@ -39,6 +39,12 @@ export function getBlankArray(schema, getRef) {
39
return schema.default;
40
41
let items = [];
42
+
43
+ let minItems = schema.minItems || schema.min_items || 0;
44
45
+ if (minItems === 0)
46
+ return items;
47
48
if (schema.items.hasOwnProperty('$ref')) {
49
// :TODO: this will most probably mutate the original schema
50
// but i'll fix it later
0 commit comments