ipfs-shipyard / net-ipfs-core

MIT License
21 stars 8 forks source link

`dag put` API doesn't serialize Cid properties into dag links #34

Open Arlodotexe opened 7 months ago

Arlodotexe commented 7 months ago

Steps to repro:

  1. Run IpfsClient.Dag.PutAsync with an object that has a Cid
  2. Inspect the returned dag entry in Kubo
  3. Observe that the Cid is serialized into an inline string and not in a map with a "/" key -- so it looks like this: {"/":"Qmfoo"}.

This is required by ipld specs to form proper merkledag trees. It should be handle by the json serializer when performing dag operations.