-
Notifications
You must be signed in to change notification settings - Fork 108
Spec refining: Properties in links #2
Comments
I prefer the simplest viable solution which in my opinion is disallowing any other siblings to |
Yes, that is my opinion too. In this way we can reserve that space for links specific things (say one day we want to specify some new keywords, we can use this space for that) |
Also, what we have to define is if this is a MUST NOT, or a SHOULD NOT |
We already bikeshedded this a ton over the last months, it was the source of months of disagreement and arguments. In the end the decision NOT to allow this was critical in cleaning up pathing. The way to treat it in the spec is (rewording it for clarity) one of two options: 1. Completely disallow it, treat it as an error. (MUST NOT)
2. Remove it from the model, but work with objects that happen to have it. (SHOULD NOT)
Notes
|
👍 for (1) for the reasons you mentioned and from the perspective of implementation. It's straightforward to enforce this and throw appropriate errors instead of trying to figure out how to handle additional props. |
🎉 Perfect, we are all aligned. |
Closing due to staleness as per team agreement to clean up the issue tracker a bit (ipld/team-mgmt#28). This doesn't mean this issue is off the table entirely, it's just not on the current active stack but may be revisited in the near future. If you feel there is something pertinent here, please speak up, reopen, or open a new issue. [/boilerplate] |
The current spec defines that links are represented using the keyword property
/
. However, it doesn't specify what are the constraints for the link object.If we decide to support this, the property
size
cannot be addressed with an IPLD pointer, however, this property can still be accessed by loading the object hash2 and manually/programmatically traverse the object to get thesize
value.Reason to support
/
Reason not to support it
Idea
A great idea would be to properties that are not specified by our spec, so that we can reuse this space for future reserved keywords
cc @jbenet, @mildred, @dignifiedquire
The text was updated successfully, but these errors were encountered: