Skip to content

PATCH Successfully but Return Data is Null #870

@falestra

Description

@falestra

Description

I tried to PATCH the department resource. Request body as below:

PATCH /departments/10
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
    "data": {
        "type": "departments",
        "id": "10",
        "attributes": {
            "name": "Department 10",
            "description": ""
        }
    }
}

The data has been changed successfully, but the response data received is: null.

{
    "links": {
        "self": "http://localhost:5000/departments/10"
    },
    "data": null
}

The response should have received changed data right?
...

Environment

  • JsonApiDotNetCore Version: 4.0.0-beta1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions