File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24165,11 +24165,11 @@ function extend() {
24165
24165
var maxItems = value.maxItems;
24166
24166
24167
24167
/**
24168
- * Json schema faker fakes exactly maxItems # of elements in array
24169
- * Hence keeping maxItems as minimum and valid as possible for schema faking (to lessen faked items)
24170
- * We have enforced limit to maxItems as 20, set by Json schema faker option
24168
+ * Json schema faker fakes exactly maxItems # of elements in array if present.
24169
+ * Hence we're keeping maxItems as minimum and valid as possible for schema faking (to lessen faked items)
24170
+ * Maximum allowed maxItems is set to 20, set by Json schema faker option.
24171
24171
*/
24172
- // Override minItems to default (2) if no minItems present
24172
+ // Override minItems to defaultMinItems if no minItems present
24173
24173
if (typeof minItems !== 'number' && maxItems && maxItems >= optionAPI('defaultMinItems')) {
24174
24174
minItems = optionAPI('defaultMinItems');
24175
24175
}
@@ -24179,7 +24179,7 @@ function extend() {
24179
24179
maxItems = minItems;
24180
24180
}
24181
24181
24182
- // If no maxItems is defined than override with default (2)
24182
+ // If no maxItems is defined than override with defaultMaxItems
24183
24183
typeof maxItems !== 'number' && (maxItems = optionAPI('defaultMaxItems'));
24184
24184
24185
24185
if (optionAPI('minItems') && minItems === undefined) {
You can’t perform that action at this time.
0 commit comments