schema-magic
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -272,3 +272,2 @@ const $json=require('json-magic'); | ||
} | ||
//todo: required | ||
@@ -291,2 +290,14 @@ //todo: ranges | ||
return schemaPart; | ||
}else if ($check.object(partObj)&&partObj.constructor&&partObj.constructor.name==="ObjectID"&&partObj.id){ | ||
let schemaPart={ | ||
type:"string", | ||
format:"mongoid" | ||
}; | ||
return schemaPart; | ||
}else if ($check.object(partObj)&&partObj._bsontype==="ObjectID"&&partObj._id){ | ||
let schemaPart={ | ||
type:"string", | ||
format:"mongoid" | ||
}; | ||
return schemaPart; | ||
}else if ($check.object(partObj)){ | ||
@@ -293,0 +304,0 @@ let schemaPart={ |
{ | ||
"name": "schema-magic", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "JSON Schema Utilities", | ||
@@ -19,2 +19,3 @@ "author": { | ||
"moment-timezone": "0.5.25", | ||
"type-magic": "0.0.2", | ||
@@ -21,0 +22,0 @@ "underscore": "1.9.1", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29234
795
0