epip-generate
Advanced tools
Comparing version 1.2.124 to 1.2.125
{ | ||
"name": "epip-generate", | ||
"version": "1.2.124", | ||
"version": "1.2.125", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -48,3 +48,3 @@ "use strict"; | ||
const ajv = new Ajv(); | ||
AjvError(ajv); | ||
// AjvError(ajv); | ||
AjvFormat(ajv); | ||
@@ -65,10 +65,12 @@ const obj= Object.assign({},${name}.schema); | ||
const ajv = new Ajv() | ||
AjvError(ajv); | ||
// AjvError(ajv); | ||
AjvFormat(ajv) | ||
const obj:any = _.cloneDeep(${name}.schema) | ||
delete (obj as any)['name'] | ||
for(let index in obj.properties){ | ||
if(index!=key) | ||
delete ((obj as any).properties[index]) | ||
for (let index in obj.properties) { | ||
if (index != key) { | ||
delete (obj as any).properties[index] | ||
} | ||
} | ||
obj["required"] = obj["required"].filter(f=>f==key); | ||
const validate = ajv.compile(obj) as any | ||
@@ -75,0 +77,0 @@ validate(this) |
{ | ||
"name": "epip-generate", | ||
"version": "1.2.124", | ||
"version": "1.2.125", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1126051
31906