mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
fix: don't do constraints in argument casting
This commit is contained in:
parent
3aa9ad71b4
commit
43e2c00ace
1 changed files with 1 additions and 3 deletions
|
@ -37,9 +37,7 @@ defmodule AshPhoenix.FilterForm.Arguments do
|
|||
{Map.put(arg_values, argument.name, value), errors}
|
||||
|
||||
true ->
|
||||
with {:ok, casted} <- Ash.Type.cast_input(argument.type, value, argument.constraints),
|
||||
{:ok, casted} <-
|
||||
Ash.Type.apply_constraints(argument.type, casted, argument.constraints) do
|
||||
with {:ok, casted} <- Ash.Type.cast_input(argument.type, value, argument.constraints) do
|
||||
{Map.put(arg_values, argument.name, casted), errors}
|
||||
else
|
||||
{:error, error} ->
|
||||
|
|
Loading…
Reference in a new issue