-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update files.add
return format to match js-ipfs-api
#247
Comments
moaar data, agree limiting can happen at the end but unixfs-engine should provide the data |
I prefer 2 as well. The HTTP-API resource and the files/add.js cli can handle formatting as they are |
I propose option number 3
Note1: We already do this in some methods os js-ipfs-api. |
@diasdavid To what end? Are there existing use cases where we want/need the extra information? I'm strongly for a core that makes as few promises to the outside world as possible -- it'll already surely grow with time, so we should consider exposing only what we need. I think until we have some concrete need for (3), (2) is the way to go, since it grants us the baseline exposed properies (name, hash). |
This is all good with the refined files API https://github.com/ipfs/interface-ipfs-core/tree/master/API/files \o/ |
The current result format in js-ipfs core is
as dictated by unixfs-engine. This is different from what the HTTP API returns, which is a lot less information:
To make interface-ipfs-core consistent, I propose we either
I prefer (2) personally, since it means other modules can still use unixfs-engine to get a fuller set of data from whatever is imported.
ping @diasdavid @nginnever
The text was updated successfully, but these errors were encountered: