We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be useful to have "attributes" be anything that we can find with Kernel.get_in:
Kernel.get_in
Vex.valid? article, %{ [:author, :name] => [presence: true] }
The text was updated successfully, but these errors were encountered:
Is this fixed by #4?
Sorry, something went wrong.
@jtmoulia It does not seem to be the case:
iex> Vex.errors(%{foo: %{bar: 10}}, %{[:foo, :bar] => [presence: true]}) [{:error, [:foo, :bar], :presence, "must be present"}] Vex.errors(%{[:foo, :bar] => 10}, %{[:foo, :bar] => [presence: true]}) []
So [:foo, :bar] is still taken as a whole as key.
[:foo, :bar]
No branches or pull requests
It would be useful to have "attributes" be anything that we can find with
Kernel.get_in
:The text was updated successfully, but these errors were encountered: