Skip to content

Resource Relationship not allowing data key. #87

@btibarra

Description

@btibarra

Hello, since version 7.0.2, the POST and PATCH methods of resources with relationships don't allow the data object.
It requires the content of data instead.

https://jsonapi.org/format/#crud-creating
https://jsonapi.org/format/#crud-updating-resource-relationships

Notice in both cases the structure of the json is:

{
  "data": {
    ... ,
    "relationships": {
      "person": {
        "data": { 
            "type": "people", 
             "id": "9"
        }
      }
    }
  }
}

And in version 7.0.2, it expects this structure:

{
  "data": {
    ... ,
    "relationships": {
      "person": {
        "type": "people", 
        "id": "9" 
      }
    }
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions