empty-schema
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "empty-schema", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Generate empty placeholder data from JSON Schemas", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,3 +23,3 @@ import deref from 'deref' | ||
'enum': enum_, | ||
// $ref, | ||
$ref, | ||
oneOf, | ||
@@ -34,6 +34,5 @@ anyOf, | ||
return enum_[0] | ||
// } else if ($ref) { | ||
// // a ref is passed, deref it and go on from there | ||
// var s = deref($ref, global) | ||
// return _empty(s, global) | ||
} else if ($ref) { | ||
const derefed = deref()($ref, global) | ||
return _empty(derefed, global) | ||
} else if (type) { | ||
@@ -40,0 +39,0 @@ let kind |
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
20700
598