mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
project:
|
project: [
|
||||||
[
|
# We can't reasonably test ash_postgres without including database configuration here, which is a bit much at the moment
|
||||||
"ash_postgres",
|
# "ash_postgres",
|
||||||
"ash_csv",
|
"ash_csv",
|
||||||
"ash_graphql",
|
"ash_graphql",
|
||||||
"ash_json_api",
|
"ash_json_api",
|
||||||
|
|
|
@ -102,6 +102,10 @@ defmodule Ash do
|
||||||
|> Enum.any?(&(&1 == behaviour))
|
|> Enum.any?(&(&1 == behaviour))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def uuid do
|
||||||
|
Ecto.UUID.generate()
|
||||||
|
end
|
||||||
|
|
||||||
@doc "Returns all extensions of a resource or api"
|
@doc "Returns all extensions of a resource or api"
|
||||||
@spec extensions(resource() | api()) :: [module]
|
@spec extensions(resource() | api()) :: [module]
|
||||||
def extensions(resource) do
|
def extensions(resource) do
|
||||||
|
|
|
@ -4,7 +4,7 @@ defmodule Ash.Resource.Identity do
|
||||||
|
|
||||||
@schema [
|
@schema [
|
||||||
name: [
|
name: [
|
||||||
type: {:custom, __MODULE__, :keys, []},
|
type: :atom,
|
||||||
required: true,
|
required: true,
|
||||||
doc:
|
doc:
|
||||||
"The name of the identity. Used by extensions to target specific identities for fetching single instances of a resource"
|
"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