Skip to content

Conversation

@elfin-sbreuers
Copy link

@elfin-sbreuers elfin-sbreuers commented Jan 22, 2026

The JSONAPI spec expects a null value if a toOne relation is empty https://jsonapi.org/format/#fetching-relationships

The current implementation always returns

"relationships": { "relation": { "data": [] } }

even though it should return

"relationships": { "relation": { "data": null } }

This breaks JSONAPI copliant client code.

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.

1 participant