I find the lack of validation in couchdb freeing myself. Just use a
template
copy of the document and fill in the blanks as needed.
Yeah my validation example was quite simplified for the sake of the
question :)
But most often I find myself just using it as an object store for the
objects I have in the code. All validation occurs before I send. And
since
document storage and updates are atomic in couchdb I can be
confident that
what I validated gets stored.
I wasn't proposing that couch ran my validation functions ... but they
are in javascript.... now you mention it ;-)