View Source JSONAPIPlug.Document.RelationshipObject (jsonapi_plug v2.0.0)

JSON:API Relationship Object

https://jsonapi.org/format/#document-resource-object-relationships

Summary

Types

@type links() :: %{required(atom()) => JSONAPIPlug.Document.LinkObject.t()}
@type t() :: %JSONAPIPlug.Document.RelationshipObject{
  data:
    JSONAPIPlug.Document.ResourceIdentifierObject.t()
    | [JSONAPIPlug.Document.ResourceIdentifierObject.t()]
    | nil,
  links: links() | nil,
  meta: JSONAPIPlug.Document.meta() | nil
}

Functions

@spec deserialize(JSONAPIPlug.Document.payload()) :: t() | no_return()