Open
Description
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.
- etcd requires me to serialize foreign keys
- 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.