Skip to content

Annotations need their own namespace #309

Open
@drauschenbach

Description

@drauschenbach

I store my [DTO's|https://en.wikipedia.org/wiki/Data_transfer_object] in etcd, and then serialize them via JSONAPI.

I've noticed that I'm accumulating duplicate DTO's - one for etcd storage, and one for api2go -- because they have different JSON serialization requirements.

  1. etcd requires me to serialize foreign keys
  2. api2go requires me to suppress serialization of foreign keys, and publish them via model functions.

This could be solved by using api2go's own model field annotations, instead of piggybacking on JSON serialization annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions