Skip to content

Commit f4f7279

Browse files
committed
update UPGRADING.md
1 parent 62d8696 commit f4f7279

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

UPGRADING.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
Upgrading Grape
22
===============
33

4+
### Upgrading to >= 0.18.0
5+
6+
#### Changed endpoint params validation
7+
8+
Grape now returns validation errors for all params when multiple params are passed to a requires.
9+
The following code will return `one is missing, two is missing` when calling the endpoint without parameters.
10+
11+
```ruby
12+
params do
13+
requires :one, :two
14+
end
15+
```
16+
17+
Prior to this version the response would be `one is missing`.
18+
419
### Upgrading to >= 0.17.0
520

621
#### Removed official support for Ruby < 2.2.2

0 commit comments

Comments
 (0)