Comparing version 0.5.1 to 0.5.2
@@ -0,5 +1,10 @@ | ||
0.5.2 / 2013-12-23 | ||
================== | ||
* added 'any' type | ||
0.5.1 / 2013-12-09 | ||
================== | ||
* Added type conversion for numbers | ||
* added type conversion for numbers | ||
@@ -6,0 +11,0 @@ 0.5.0 / 2013-11-29 |
@@ -15,2 +15,5 @@ var mschema = {}; | ||
return typeof val === "object"; | ||
}, | ||
"any": function (val) { | ||
return true; | ||
} | ||
@@ -46,3 +49,3 @@ }; | ||
if (typeof property === "string" && (property === 'string' || property === 'number' || property === 'object' || property === 'array' || property === 'boolean')) { | ||
if (typeof property === "string" && (property === 'string' || property === 'number' || property === 'object' || property === 'array' || property === 'boolean' || property === 'any')) { | ||
property = { | ||
@@ -49,0 +52,0 @@ "type": property, |
{ | ||
"name": "mschema", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"keywords": ["schema", "mschema", "validator", "json", "json-schema"], | ||
@@ -5,0 +5,0 @@ "description": "A schema language for defining the structure of JSON data", |
@@ -18,3 +18,4 @@ var tap = require("tap"), | ||
"address": { "type": "object" }, | ||
"isActive": { "type": "boolean" } | ||
"isActive": { "type": "boolean" }, | ||
"meta": { "type": "any" } | ||
}; | ||
@@ -31,3 +32,4 @@ | ||
}, | ||
"isActive": true | ||
"isActive": true, | ||
"meta": 42 | ||
}; | ||
@@ -34,0 +36,0 @@ |
@@ -18,3 +18,4 @@ var tap = require("tap"), | ||
"address": "object", | ||
"isActive": "boolean" | ||
"isActive": "boolean", | ||
"meta": "any" | ||
}; | ||
@@ -30,3 +31,4 @@ | ||
}, | ||
"isActive": true | ||
"isActive": true, | ||
"meta": 42 | ||
}; | ||
@@ -33,0 +35,0 @@ |
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
67879
2151