Skip to content

Bug: validations do not run on POST with invalid content type header #725

Closed
@bart-degreed

Description

@bart-degreed

To repro, start the demo project and POST to http://localhost:1479/api/v1/tags with the next body:

{
    "data": {
        "type": "tags",
        "attributes": {
            "name": "John"
        }
    }
}

and header Content-Type: "application/json". This succeeds without error.

Changing the Content-Type header to "application/vnd.api+json" results in a validation error, as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions