schema-magic
Advanced tools
Comparing version 0.0.9 to 0.0.11
@@ -167,3 +167,9 @@ const $json=require('json-magic'); | ||
let replacement={type:"string"}; | ||
if (isArray)replacement=[curSchema,"string"]; | ||
if (isArray){ | ||
if ($check.array(curSchema)){ | ||
replacement=curSchema.filter(c=>c!=="string").concat(["string"]); | ||
}else{ | ||
replacement=[curSchema,"string"]; | ||
} | ||
} | ||
$json.set(workingSchema,schemaPath,replacement); | ||
@@ -170,0 +176,0 @@ }catch (exp){ |
{ | ||
"name": "schema-magic", | ||
"version": "0.0.9", | ||
"version": "0.0.11", | ||
"description": "JSON Schema Utilities", | ||
@@ -5,0 +5,0 @@ "author": { |
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
32819
874