-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure the
query-params
are not only coerced, but also validated
Before this change, the `query-params` value was coerced, but never validated (which was a bug). * `get-param-value` - add parameter: `validator` (optional) - refactor - document * implement and use validators: - `validate-date` - `validate-string` - `validate-noop` * implement and use coercer: - `coercer-noop` *rename `coerce-report-type` to `coerce-and-validate-report-type`. * implement and use anomalies: - create `invalid-string-param-anom` - create `invalid-date-param-anom` * create `invalid-string-param-msg` (`invalid-date-param-msg` already existed) * add regression test Misc: * document `handler` * add regression test * reformat with `cljfmt`
- Loading branch information
Showing
2 changed files
with
115 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters