MarshalInclude includes the json:api encoding of v within Document.Included creating a compound document as defined by https://jsonapi.org/format/#document-compound-documents.
(v ...any)
| 60 | |
| 61 | // MarshalInclude includes the json:api encoding of v within Document.Included creating a compound document as defined by https://jsonapi.org/format/#document-compound-documents. |
| 62 | func MarshalInclude(v ...any) MarshalOption { |
| 63 | return func(m *Marshaler) { |
| 64 | m.included = v |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // MarshalFields supports sparse fieldsets as defined by https://jsonapi.org/format/1.0/#fetching-sparse-fieldsets. |
| 69 | // The input is a url.Values and if given only the fields included in `fields[type]=a,b` are included in the response. |
no outgoing calls