Grape v0.15.0 Release Notes
-
๐ Features
- ๐ #1227: Store
message_key
onGrape::Exceptions::Validation
- @stjhimy. - ๐ #1232: Helpers are now available inside
rescue_from
- @namusyaka. - ๐ #1237: Allow multiple parameters in
given
, which behaves as if the scopes were nested in the inputted order - @ochagata. - ๐ #1238: Call
after
of middleware on error - @namusyaka. - ๐ #1243: Add
header
support for middleware - @namusyaka. - 0๏ธโฃ #1252: Allow default to be a subset or equal to allowed values without raising IncompatibleOptionValues - @jeradphelps.
- ๐ #1255: Allow param type definition in
route_param
- @namusyaka. - ๐ #1257: Allow Proc, Symbol or String in
rescue_from with: ...
- @namusyaka. - ๐ #1280: Support
Rack::Sendfile
middleware - @lfidnl. - โ #1285: Add a warning for errors appearing in
after
callbacks - @gregormelhorn. - ๐ #1295: Add custom validation messages for parameter exceptions - @railsmith.
๐ Fixes
- ๐ #1216: Fix JSON error response when calling
error!
with non-Strings - @jrforrest. - ๐ #1225: Fix
given
with nested params not returning correct declared params - @JanStevens. - 0๏ธโฃ #1249: Don't fail even if invalid type value is passed to default validator - @namusyaka.
- #1266: Fix
Allow
header includingOPTIONS
whendo_not_route_options!
is active - @arempe93. - ๐ #1270: Fix
param
versioning with a custom parameter - @wshatch. - ๐ #1282: Fix specs circular dependency - @304.
- ๐ #1283: Fix 500 error for xml format when method is not allowed - @304.
- ๐ #1197: Fix using JSON and Array[JSON] as groups when parameter is optional - @lukeivers.
- ๐ #1227: Store