Skip to content
New issue

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

Prevent ash_postgres v2.0.10 from being used #9

Merged
merged 3 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading