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
Fix a regression in coerce_with when coercion returns nil (#2026)
Previously nil was handled as valid value for coercion for integer parameters.
With refactoring introduced in 1.3.0 integer parameter coerced with a custom method can't coerce to nil any more.
This change reverts back to previous behavior where coercion to nil was allowed.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
#### Fixes
11
11
12
12
* Your contribution here.
13
+
*[#2026](https://github.com/ruby-grape/grape/pull/2026): Fix a regression in `coerce_with` when coercion returns `nil` - [@misdoro](https://github.com/misdoro).
13
14
*[#2025](https://github.com/ruby-grape/grape/pull/2025): Fix Decimal type category - [@kdoya](https://github.com/kdoya).
14
15
*[#2019](https://github.com/ruby-grape/grape/pull/2019): Avoid coercing parameter with multiple types to an empty Array - [@stanhu](https://github.com/stanhu).
0 commit comments