Skip to content

Commit

Permalink
Merge pull request #11 from zoonect-oss/zebbra/update_deps
Browse files Browse the repository at this point in the history
Prevent ash_postgres v2.0.10 from being used
  • Loading branch information
moissela authored Jun 20, 2024
2 parents e68abdb + 643ac21 commit a98067a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
8 changes: 8 additions & 0 deletions lib/ash_uuid/uuid.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ defmodule AshUUID.UUID do
term
end

@impl true
def matches_type?(v, constraints) do
case cast_input(v, constraints) do
{:ok, _} -> true
_ -> false
end
end

@impl true
def cast_input(term, constraints) do
requested_format = requested_format(constraints[:encoded?], constraints[:prefixed?])
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defmodule AshUUID.MixProject do
[
{:uniq, "~> 0.6"},
{:ash, "~> 3.0.0"},
{:ash_postgres, "~> 2.0.0"},
{:ash_postgres, "~> 2.0.11"},
# Testing, documentation, and release tools
{:mix_test_interactive, ">= 0.0.0", only: :test, runtime: false},
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false},
Expand Down
Loading

0 comments on commit a98067a

Please sign in to comment.