Hi Samuel!
> 1/ I'm wondering what are valid responses to validate_doc_update? The query
> services I've seen return either a hash {forbidden: "message"} or 1
>
> Can I return true rather than 1? Seems more logical..
You could, but this would be invalid output. See for details:
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_query_servers.erl#L230
> 2/ Why is the name "validate_doc_update" so verbose when compared with
> "lists", "filters", etc? Why not just "validates"?
Initially it was "validate" command, but since any ddoc subcommand is
a ddoc field, it eventually renamed to validate_doc_update.
See first commit about it:
https://github.com/apache/couchdb/commit/9044fc0234ed65056f087a86c7c117922f2a2c75
--
,,,^..^,,,
On Sun, Jul 22, 2012 at 12:07 PM, Samuel Williams
<[email protected]> wrote:
> Hi,
>
> 1/ I'm wondering what are valid responses to validate_doc_update? The query
> services I've seen return either a hash {forbidden: "message"} or 1
>
> Can I return true rather than 1? Seems more logical..
>
> How do I report multiple failures? e.g. Title required, Author required.
>
> 2/ Why is the name "validate_doc_update" so verbose when compared with
> "lists", "filters", etc? Why not just "validates"?
>
> Thanks,
> Samuel