[ https://issues.apache.org/jira/browse/COUCHDB-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108323#comment-13108323 ]
gert cuykens commented on COUCHDB-1292: --------------------------------------- Guess I was wrong. Can somebody edit the wiki pleas. And use "function(d,r){...}" instead of a note: The functions should be double-quoted JSON strings. > "validate_doc_update": function(n,o,u){} > ---------------------------------------- > > Key: COUCHDB-1292 > URL: https://issues.apache.org/jira/browse/COUCHDB-1292 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Affects Versions: 1.2 > Environment: linux > Reporter: gert cuykens > Priority: Trivial > Labels: couchdb > Original Estimate: 24h > Remaining Estimate: 24h > > Assign a function instead of a string to make validation handler consistent > with the update handlers > consistent => "updates": { "hello": function(d,r) {} } > consistent => "validate_doc_update": function(n,o,u){} > inconsistent => "validate_doc_update": "function(n,o,u){}" > http://wiki.apache.org/couchdb/Document_Update_Handlers > http://wiki.apache.org/couchdb/Document_Update_Validation -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira