mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix: Fix identities (#110)
This commit is contained in:
parent
78cde9cacf
commit
28d2d9b363
3 changed files with 8 additions and 4 deletions
6
.github/workflows/elixir.yml
vendored
6
.github/workflows/elixir.yml
vendored
|
@ -127,9 +127,9 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
project:
|
||||
[
|
||||
"ash_postgres",
|
||||
project: [
|
||||
# We can't reasonably test ash_postgres without including database configuration here, which is a bit much at the moment
|
||||
# "ash_postgres",
|
||||
"ash_csv",
|
||||
"ash_graphql",
|
||||
"ash_json_api",
|
||||
|
|
|
@ -102,6 +102,10 @@ defmodule Ash do
|
|||
|> Enum.any?(&(&1 == behaviour))
|
||||
end
|
||||
|
||||
def uuid do
|
||||
Ecto.UUID.generate()
|
||||
end
|
||||
|
||||
@doc "Returns all extensions of a resource or api"
|
||||
@spec extensions(resource() | api()) :: [module]
|
||||
def extensions(resource) do
|
||||
|
|
|
@ -4,7 +4,7 @@ defmodule Ash.Resource.Identity do
|
|||
|
||||
@schema [
|
||||
name: [
|
||||
type: {:custom, __MODULE__, :keys, []},
|
||||
type: :atom,
|
||||
required: true,
|
||||
doc:
|
||||
"The name of the identity. Used by extensions to target specific identities for fetching single instances of a resource"
|
||||
|
|
Loading…
Reference in a new issue