From 5ef8de03f3596975ee6372a75db18616d69ca28c Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Sun, 28 Apr 2024 00:41:57 -0400 Subject: [PATCH] fix: fix simple_equality in attribute type --- lib/ash/resource/attribute.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ash/resource/attribute.ex b/lib/ash/resource/attribute.ex index 98ad3e431..56d9f7620 100644 --- a/lib/ash/resource/attribute.ex +++ b/lib/ash/resource/attribute.ex @@ -130,15 +130,15 @@ defmodule Ash.Resource.Attribute do doc: "A value to be set on all updates, unless a value is being provided already." ], filterable?: [ - type: :boolean, + type: {:or, [:boolean, {:in, [:simple_equality]}]}, default: true, doc: """ Whether or not the attribute can be referenced in filters. """ ], sortable?: [ - type: {:or, [:boolean, {:in, [:simple_equality]}]}, default: true, + type: :boolean, doc: """ Whether or not the attribute can be referenced in sorts. """