Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'name' property to links in collections #89

Open
bmayton opened this issue Feb 28, 2018 · 0 comments
Open

Add 'name' property to links in collections #89

bmayton opened this issue Feb 28, 2018 · 0 comments

Comments

@bmayton
Copy link
Member

bmayton commented Feb 28, 2018

The JSON+HAL spec notes of the optional "name" property of a link (§5.5):

Its value MAY be used as a secondary key for selecting Link Objects which share the same relation type.

This seems like it would be a useful way of identifying, from a collection of links, a particular device/sensor/etc. of interest. The "title" property effectively permits this now, however, the definition of the "title" property notes that it is intended primarily as a human-readable identifier. All present uses of the "title" property in collections of links in Chain do appear to be unique database identifiers for the resources they link to, but it seems like it would be more correct to actually implement the "name" property and key on that in client applications instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant