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

embeddeds without self-link shouldn't be dropped #487

Open
beuss opened this issue Nov 27, 2023 · 0 comments
Open

embeddeds without self-link shouldn't be dropped #487

beuss opened this issue Nov 27, 2023 · 0 comments

Comments

@beuss
Copy link

beuss commented Nov 27, 2023

When an embedded does not contain a self-link, a warning is printed and the item is ignored. While the spec looks contradictory, the embedded should not be ignored
The HAL spec is clear on this point:

The reserved "_links" property is OPTIONAL.

The HAL-FORMS spec looks contradictory since it states:

[the link element] is a RECOMMENDED element

and then (while this looks to break HAL backward compatibility)

Every HAL-FORMS document SHOULD have at least one link element in the collection with a key value set to self
[…]
Clients MAY reject a HAL-FORMS document that does not contain a link element with the key value set to self.

It recommends to defaults self-link to the URI used for the request but this looks incompatible with current cache handling in ketting since URI is used as a cache key

Is there any hope to have this behavior fixed?

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