Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bart-degreed opened this issue Apr 15, 2020 · 0 comments · Fixed by #731
Closed

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

bart-degreed opened this issue Apr 15, 2020 · 0 comments · Fixed by #731

Comments

@bart-degreed
Copy link
Contributor

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.

This was referenced May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant