You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DAG-JSON encoding cannot differentiate between {a map with a single entry that has a key of "/" and a string value} and {an IPLD link}.
Therefore, in order to be reasonably bijective, and to error early rather than leave users to run into data corruption which might only be detected arbitrarily far in the future, the dagjson codec should proactively error during encode if a map would be confusable with links during decode.
This may require finalizing some details of the DAG-JSON specification more completely before being unambiguously implementable. Namely: ipld/specs#356 .
The text was updated successfully, but these errors were encountered:
The DAG-JSON encoding cannot differentiate between {a map with a single entry that has a key of "
/
" and a string value} and {an IPLD link}.Therefore, in order to be reasonably bijective, and to error early rather than leave users to run into data corruption which might only be detected arbitrarily far in the future, the dagjson codec should proactively error during encode if a map would be confusable with links during decode.
This may require finalizing some details of the DAG-JSON specification more completely before being unambiguously implementable. Namely: ipld/specs#356 .
The text was updated successfully, but these errors were encountered: