Skip to content
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

Improve Error Message For Invalid Objects Passed To Serializer #270

Closed
junmar opened this issue Apr 23, 2018 · 2 comments · Fixed by #753
Closed

Improve Error Message For Invalid Objects Passed To Serializer #270

junmar opened this issue Apr 23, 2018 · 2 comments · Fixed by #753

Comments

@junmar
Copy link

junmar commented Apr 23, 2018

capture

@jaredcnance
Copy link
Contributor

jaredcnance commented Apr 23, 2018

The serializer expects you to either return the model or an Errors object. Take a look at this documentation https://json-api-dotnet.github.io/#/custom-errors.
If that solves your issue, I’d like to leave this open as a task to make this error message more useful.

@junmar
Copy link
Author

junmar commented Apr 26, 2018 via email

@jaredcnance jaredcnance reopened this Apr 27, 2018
@jaredcnance jaredcnance changed the title error when returning a BadRequest("custom string") on an overridden method PostAsync Improve Error Message For Invalid Objects Passed To Serializer May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants