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

Support relation keys with colons or other special symbols in them #67

Open
carlobeltrame opened this issue Mar 3, 2021 · 0 comments
Open

Comments

@carlobeltrame
Copy link
Member

In HAL, curies are used as a mechanism to namespace relations. The namespace is prepended with a colon in front of the relation name, as can be seen in this example in traverson-hal: https://www.npmjs.com/package/traverson-hal#usage (they visit the relations ht:me and ht:posts).

Since we use relation names as identifiers, we currently do not support this kind of relation names. This issue is meant as a space to discuss the best way to implement this kind of relation namespacing.

Side note: I haven't checked, but hal-json-normalizer should already support this as far as I am aware, since it is only concerned with string keys in JSON.

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

No branches or pull requests

1 participant