jspears / mers

Mongoose Express Rest Service
MIT License
342 stars 42 forks source link

Fix handling invalid models when PUTting #22

Closed cheesun closed 10 years ago

cheesun commented 10 years ago

Issue #21

Only attempt to use the ret parameter if there is no err.

Also updated the example blogpost model to include a validation, and a test where that validation fails.

jspears commented 10 years ago

Merged, Thanks!