Skip to content

Fixed crash when relationship object doesn't have data key#44

Open
vvitto wants to merge 1 commit intoweilandia:masterfrom
vvitto:fix-crash-when-relationship-object-does-not-contain-data
Open

Fixed crash when relationship object doesn't have data key#44
vvitto wants to merge 1 commit intoweilandia:masterfrom
vvitto:fix-crash-when-relationship-object-does-not-contain-data

Conversation

@vvitto
Copy link
Copy Markdown

@vvitto vvitto commented Apr 25, 2025

Regression bug appeared after upgrading the package to 2.0. It crashes when some relationship doesn't have data object, but with according to JSON API spec it should be possible such structure. For example:

"studio": {
  "links": {
    "self": "http://localhost:4000/api/rest/public/movies/1/relationships/studio",
    "related": "http://localhost:4000/api/rest/public/movies/1/studio"
  }
}

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