Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are these different? #53

Open
FreekPaans opened this issue Sep 24, 2016 · 0 comments
Open

Why are these different? #53

FreekPaans opened this issue Sep 24, 2016 · 0 comments

Comments

@FreekPaans
Copy link

(bouncer/validate
 {:date "2016-01-01"}
 :date validators/datetime (:mysql fmt/formatters))
Output ->
[nil {:date "2016-01-01"}]

(bouncer/validate
 {:date "2016-01-01"} 
 :date [[validators/datetime (:mysql fmt/formatters)]])
Output->
[{:date ("date must be a valid date")}
 {:date "2016-01-01" :bouncer.core/errors {:date ("date must be a valid date")}}]

From the documentation, I would've expected them to be equivalent, yet they aren't. What's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant