diff --git a/lib/ash/type/type.ex b/lib/ash/type/type.ex index 4845a682..69a8768f 100644 --- a/lib/ash/type/type.ex +++ b/lib/ash/type/type.ex @@ -27,6 +27,11 @@ defmodule Ash.Type do utc_datetime: Ash.Type.UtcDatetime ] + @builtin_types Keyword.values(@short_names) + + def builtin?(type) when type in @builtin_types, do: true + def builtin?(_), do: false + @doc_list_constraints Keyword.put(@list_constraints, :items, type: :any, doc: