Skip to content

Commit

Permalink
Fix JSONAPI.Config.t() include field typespec (#267)
Browse files Browse the repository at this point in the history
The include field accepts a list of keyword tuples,
but also accepts atoms in the list (e.g. include: [:account, :orders]).
  • Loading branch information
rodrigues committed May 26, 2022
1 parent 35eec9b commit 3b6631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonapi/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule JSONAPI.Config do
data: nil | map,
fields: map,
filter: keyword,
include: keyword,
include: [atom | {atom, any}],
opts: nil | keyword,
sort: nil | keyword,
view: any,
Expand Down

0 comments on commit 3b6631d

Please sign in to comment.