You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the current implementation we're using with: inside the Hash. By the way, on the documentation the current Grape Entity for API::Error needs a code: to work.
I am not clear of what the third optional parameter would accomplish.
Can you please make a PR for the documentation mistake?
It doesn't look like we support presenting multiple errors, but you can definitely write a handler (via rescue_from) that transforms any of the input (the first parameter) into anything you want (an array of errors).
On the current implementation we're using
with:
inside the Hash. By the way, on the documentation the current Grape Entity for API::Error needs acode:
to work.error!({ message: 'Unauthorized', with: API::Error }, 408)
So, what about create a third optional param? something like that:
error!({ message: 'Unauthorized', code: 408 }, 408, with: API::Error)
By the way, how we can create multiple errors and group all?
ex:
The text was updated successfully, but these errors were encountered: