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
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1102,6 +1102,16 @@ subject.rescue_from Grape::Exceptions::ValidationErrors do |e|
1102
1102
end
1103
1103
```
1104
1104
1105
+
`Grape::Exceptions::ValidationErrors#full_messages` returns the validation messages as an array. `Grape::Exceptions::ValidationErrors#message` joins the messages to one string.
1106
+
1107
+
For responding with an array of validation messages, you can use `Grape::Exceptions::ValidationErrors#full_messages`.
0 commit comments