-
Notifications
You must be signed in to change notification settings - Fork 60
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
Vex.Extract not implemented for %{} #28
Comments
Is this still a valid issue? Looking at https://github.com/CargoSense/vex/blob/master/lib/vex/extract.ex#L24 it seems that Vex.Extract is now implemented for maps. That seems to have been added in #17 which was well before this issue was opened, so I'm a little confused. |
I am also having this issue with version 0.5.5. ** (Protocol.UndefinedError) protocol Vex.Extract not implemented for %{children: [%{type: "header"}, %{type: "footer"}, %{type: "body"}], options: %{}, type: "root"} |
@djspinmonkey, nice response time! Looking forward to the new release. |
@djspinmonkey Send me the email address you have registered with hex.pm and I'll add you as a project owner; then it's just a version bump in |
It's john@djspinmonkey.com (same as on my github account, and also on my everything everywhere, so I don't mind just posting it here ;-) ). |
@djspinmonkey DONE. 🚀 |
Ok! v0.6.0 is pushed. I'll make some release notes. |
Is it possible to simply validate a map on the fly without creating a struct with the validation definitions? I would like to validate values coming from my Plug.Con request without having to perform
Vex.Validators.Presence.validate
on each one of those values.Let's assume I need to check for the existance of all these keys
%{"country" => "KE", "email" => "me@test.com", "ip" => "32.217.45.88", "password" => "######", "phone" => "567890432"}
Right now I am thinking my only option is to recursively run through it, get the keys and check for for those using Precence.validate
The text was updated successfully, but these errors were encountered: