Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

omitempty for primary ID #83

@mitchellh

Description

@mitchellh

I'm using jsonapi to construct jsonapi documents as an API client and when marshaling a resource for creation I'd like to omit the "id" since the implementation I'm using requires that (and appears spec compliant as far as I can tell).

To do this at the moment I have to reimplement OnePayload to have omitempty on the ID manually.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions