From 43e2c00ace2b98e9acf928324f17403c5b3bc499 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 25 Apr 2023 12:43:39 -0600 Subject: [PATCH] fix: don't do constraints in argument casting --- lib/ash_phoenix/filter_form/arguments.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ash_phoenix/filter_form/arguments.ex b/lib/ash_phoenix/filter_form/arguments.ex index 313ce83..4c37c89 100644 --- a/lib/ash_phoenix/filter_form/arguments.ex +++ b/lib/ash_phoenix/filter_form/arguments.ex @@ -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} ->