Open
Description
The library only supports string
, int(8,16,32,64)
or uint(8,16,32,64)
for ID
and other non-complex struct attributes, but it would be nice to have a mean to support other types, such as UUIDs, although they require the use of third-party libraries such as https://github.com/satori/go.uuid. This would save the developers to have to convert from string
to UUID
in the their code.
Since it's not possible to support all third party libraries in https://github.com/google/jsonapi, a solution could be to provide a public function to register custom types that can be marshalled to/unmarshalled from a string
.
Metadata
Metadata
Assignees
Labels
No labels