Github user rnewson commented on the pull request:
https://github.com/apache/couchdb-couch-mrview/pull/29#issuecomment-143271708
two step validation is the only way this can work, as far as I can see.
group and group_level are both optional fields, so you can't change the default
to an invalid value in order to detect if it's been set once or twice.
@nickva's approach looks good to me. @kxepal can you show a complete and
working alternative that does it all in parse_params? Your example appears not
to be right.
---
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.
---