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
Add exceptions to ExceptionWrapper #4
Comments
@wadetandy @richmolj you mentioned that you had an internal mapping of all of this that you probably should open source. Unless you're able to do that soon can you send a PR or share that list with me. We can implement it manually here for now and then de-duplicate later if you open source the other library. |
I think we're going to be disappointing here - less a library and more a small bit of configuration. I think the only significant one is a custom I wonder if |
I'd definitely like to have a central source instead of defining it in graphiti-rails! If we're following Rails conventions, I think most Graphiti errors will map to |
The relevant JSON:API spec is here https://jsonapi.org/format/. Some key items: 400
403
404
406
409
415
422
I propose sticking with Rails convention and using 422. Also relevant
|
Also, somehow @richmolj has traveled into the future... at least according to his comment time. |
I think this is handled as well as we can for now. |
Work has begun here: https://github.com/wagenet/graphiti-rails/blob/master/lib/graphiti/rails/railtie.rb#L6.
For reference, this is the list of registered exceptions in my current app (without graphiti-rails):
The text was updated successfully, but these errors were encountered: