Grape v0.15.0 Release Notes

  • ๐Ÿ”‹ Features

    • ๐Ÿ’Ž #1227: Store message_key on Grape::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 including OPTIONS when do_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.