Skip to content

Fix Uniqueness check by there is relationship to the same object but under 2 relationships keys #62

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 4 commits into from
Jan 13, 2025

Conversation

ecdatadog
Copy link
Contributor

@ecdatadog ecdatadog commented Jan 9, 2025

Spec : https://jsonapi.org/format/1.1/#document-resource-object-relationships
Allow some json+api document that have relationships to a same object but under differents relation key :

{
    "data": {
        "id": "1",
        "type": "articles",
        "attributes": {
            "title": "A"
        },
        "relationships": {
            "author": {
                "data": {
                    "id": "1",
                    "type": "author"
                }
            },
            "contact": {
                "data": {
                    "id": "1",
                    "type": "author"
                }
            },
            "comments": {
                "data": [
                    {
                        "id": "1",
                        "type": "comments"
                    }
                ]
            }
        }
    }
}

@zestze zestze merged commit 0d0bed5 into DataDog:main Jan 13, 2025
5 checks passed
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.

3 participants