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
Grape::Exceptions::ValidationErrors#message currently joins the error messages together. Example:
"id is missing, name is missing"
However, when building custom error responses, that handle each single validation error separately, Grape::Exceptions::ValidationErrors#full_messages is extremely useful:
["id is missing","name is missing"]
But this method is private. So my questions are
What do you think about making this method public?
Or is there a better way to access the single validation error messages?
Thanks!
The text was updated successfully, but these errors were encountered:
Grape::Exceptions::ValidationErrors#message
currently joins the error messages together. Example:"id is missing, name is missing"
However, when building custom error responses, that handle each single validation error separately,
Grape::Exceptions::ValidationErrors#full_messages
is extremely useful:But this method is private. So my questions are
Thanks!
The text was updated successfully, but these errors were encountered: