Github user nickva commented on a diff in the pull request:
https://github.com/apache/couchdb-couch/pull/235#discussion_r105816177
--- Diff: src/couch_doc.erl ---
@@ -125,7 +125,14 @@
doc_to_json_obj(#doc{id=Id,deleted=Del,body=Body,revs={Start, RevIds},
}.
from_json_obj({Props}) ->
--- End diff --
Hmm good point. It seems like the cleanest place code-wise as we do other
validations in that function (`throw({doc_validation,...`). Wonder if it makes
sens to make a validating and non-validation version of the function.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---