Skip to content

drop constraints on attribute values #1630

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

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Jun 13, 2022

This drops any constraints on attribute values as proposed in #1553. Most noticeable the requirement hat an object used as attribute value (even if nested) must not have a key links or relationships.

There is no need anymore to restrict these for future usage in the specification itself. All potential use cases could be solved by using links or relationships members of the JSON:API resource object. Or by an extension registering additional members on the JSON:API resource object.

Dropping this requirement simplifies the teaching of JSON:API. We could state that the JSON:API specification is agnostic about attribute values, which wasn't true before.

I will create a complementary merge request to drop the requirement to ignore keys starting with @ in objects used as attribute values as proposed in #1367 and #1584. It is closely related to this one. But I feel that it is easier to discuss them separately. Especially if there are discussion needs in regards to JSON-LD.

Copy link
Member

@dgeb dgeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussing this in several issues, we've reached consensus on this.

@dgeb dgeb merged commit df456f3 into json-api:gh-pages Jun 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy