mirror of
https://github.com/nspcc-dev/neofs-api-go.git
synced 2026-03-01 04:28:56 +00:00
Define rule for object's header JSON marshaling #49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carpawell on GitHub (Jun 4, 2021).
Originally assigned to: @carpawell on GitHub.
There is a need to get objects's header in JSON format in neo-go codebase. Now
ToV2func is used for obtaining v2 object structure and thanv2's JSON marshaling is called.It seems that using
v2abstractions outside api-go repository is unwanted behaviour. But addition header related methods topkg/objectis also not really good solution.Therefore, we need to define what is canonical way to marshal object's header.
@carpawell commented on GitHub (Jun 7, 2021):
After discussion, it was decided to add a method for marshaling an object's header in JSON format to the highest object structure.