empty-schema
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "empty-schema", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Generate empty placeholder data from JSON Schemas", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,4 +6,3 @@ import empty from './empty' | ||
items, | ||
minItems, | ||
// maxItems // does not matter | ||
minItems | ||
} = schema | ||
@@ -16,8 +15,6 @@ | ||
} else if (minItems && items) { | ||
// require at least this amount of items | ||
return Array.from(new Array(minItems), () => empty(items, global)) | ||
} else { | ||
// minItems is not given or we don't know item type | ||
return [] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20363
25
584