Closed goeo- closed 8 months ago
i just noticed that #18 fixed this issue yesterday, however i'll leave the issue open because i think it's weird that you had to sort stuff yourself if libipld is supposed to do it
was fixed in #18. can't reproduce. i have unit tests for this case. make sure that you are using the latest version of python package. this fix was included in https://github.com/MarshalX/python-libipld/releases/tag/v1.2.2
to update use this command: pip install -U libipld
i just noticed that #18 fixed this issue yesterday, however i'll leave the issue open because i think it's weird that you had to sort stuff yourself if libipld is supposed to do it
Missed this comment. Well, I think the upstream lib that I use even allow keys in maps that are not strings xddd. So I don't care about their implementation much. Personally, I fixed these specifications things on my end
Btw I use libipld instead of serde. Serde based on different crate used for cbor. I mean 2 completely different implementations
interestingly, https://github.com/ipld/libipld/blob/master/dag-cbor/src/encode.rs#L276-L296 libipld seems to implement this, but this is seemingly not used?
Should be called when you are trying to encode Ipld enum. So you need to build ipld enum first and encode it
let bytes = DagCborCodec.encode(&ipld);
closing becuase of inactivity
interestingly, https://github.com/ipld/libipld/blob/master/dag-cbor/src/encode.rs#L276-L296 libipld seems to implement this, but this is seemingly not used? i've had a similar issue with serde_ipld_dagcbor (linked on libipld's readme) and they seem to also implement it in a function that's never called (??)