Skip to content

Commit 1e76320

Browse files
committed
fix: wrap includes configuration list
closes #341
1 parent 22142eb commit 1e76320

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ash_json_api/resource/resource.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ defmodule AshJsonApi.Resource do
495495
doc: "The resource identifier type of this resource in JSON:API"
496496
],
497497
includes: [
498-
type: :any,
498+
type: {:wrap_list, :any},
499499
default: [],
500500
doc: "A keyword list of all paths that are includable from this resource"
501501
],

test/acceptance/get_related_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ defmodule Test.Acceptance.GetRelatedTest do
8181
json_api do
8282
type("comment")
8383

84-
includes [:post]
84+
includes :post
8585
end
8686

8787
actions do

0 commit comments

Comments
 (0)