schema-magic
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -301,2 +301,8 @@ const $json=require('json-magic'); | ||
return schemaPart; | ||
}else if($check.object(partObj)&&partObj._bsontype==="ObjectID"&&Buffer.isBuffer(partObj.id)&&partObj.id.length===12){ | ||
let schemaPart={ | ||
type:"string", | ||
format:"mongoid" | ||
}; | ||
return schemaPart; | ||
}else if ($check.object(partObj)){ | ||
@@ -322,4 +328,8 @@ let schemaPart={ | ||
return {type:"boolean"}; | ||
}else if ($check.boolean(partObj)){ | ||
return {type:"boolean"}; | ||
}else if (Buffer.isBuffer(partObj)){ | ||
return {type:"string"}; | ||
}else{ | ||
return null; | ||
return {type:"unspecified"}; | ||
} | ||
@@ -326,0 +336,0 @@ }; |
{ | ||
"name": "schema-magic", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"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
29728
805