You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON:API has support for optional inclusion of related objects.
The specification states that in case the request has an explicit include directive, it MUST NOT include unrequested entities.
If an endpoint supports the include parameter and a client supplies it, the server MUST NOT include unrequested resource objects in the included section of the compound document.
The problem is that calling MarshalPayload will include all related items, whereas MarshalPayloadWithoutIncludedincludes none.
It does not seem to be possible to support this use case with the current version of the library.
The text was updated successfully, but these errors were encountered:
JSON:API has support for optional inclusion of related objects.
The specification states that in case the request has an explicit
include
directive, it MUST NOT include unrequested entities.The problem is that calling
MarshalPayload
will include all related items, whereasMarshalPayloadWithoutIncluded
includes none.It does not seem to be possible to support this use case with the current version of the library.
The text was updated successfully, but these errors were encountered: