datumo
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -192,8 +192,4 @@ 'use strict'; | ||
} | ||
validate() { | ||
return this.constructor.validate(this); | ||
} | ||
} | ||
exports.Model = Model; |
{ | ||
"name": "datumo", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Lightweight data modelling for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -39,3 +39,3 @@ # datumo | ||
amanda.validate().valid === true | ||
Person.validate(amanda).valid === true | ||
``` | ||
@@ -91,3 +91,3 @@ | ||
}) | ||
let validationResults = jeff.validate() | ||
let validationResults = Person.validate(jeff) | ||
@@ -94,0 +94,0 @@ validationResults.valid === false |
16830
158