resourceful
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -149,3 +149,4 @@ var events = require('events'), | ||
id: { | ||
type: 'string', | ||
type: 'any', | ||
required: false | ||
} | ||
@@ -152,0 +153,0 @@ }, |
@@ -564,3 +564,3 @@ var util = require('util'), | ||
} | ||
p.save(function(err, result){ | ||
@@ -567,0 +567,0 @@ callback(err, c); |
{ | ||
"name": "resourceful", | ||
"description": "A storage agnostic resource-oriented ODM for building prototypical models with validation and sanitization.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"url": "http://github.com/flatiron/resourceful", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -68,3 +68,3 @@ var assert = require('assert'), | ||
"and doesn't have a value for `key`": function (article) { | ||
assert.isUndefined(article.key); | ||
assert.isNull(article.key); | ||
} | ||
@@ -119,3 +119,3 @@ } | ||
"should respond to toString()": function (r) { | ||
assert.equal(r.toString(), '{"title":"The Great Gatsby","kind":"Classic Novels","resource":"Book"}'); | ||
assert.equal(r.toString(), '{"id":null,"title":"The Great Gatsby","kind":"Classic Novels","resource":"Book"}'); | ||
}, | ||
@@ -122,0 +122,0 @@ "should respond to toJSON()": function (r) { |
215386
5219