mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
Always validate constraints (#173)
This commit is contained in:
parent
13ca0b2976
commit
2a7acffabb
1 changed files with 2 additions and 0 deletions
|
@ -398,6 +398,8 @@ defmodule Ash.Type do
|
|||
end
|
||||
|
||||
def apply_constraints(type, term, constraints) do
|
||||
constraints = NimbleOptions.validate!(constraints, type.constraints())
|
||||
|
||||
case type.apply_constraints(term, constraints) do
|
||||
:ok -> {:ok, term}
|
||||
other -> other
|
||||
|
|
Loading…
Reference in a new issue