Grape v0.10.0 Release Notes
Release Date: 2014-12-19 // over 9 years ago-
- #803, #820: Added
all_or_none_of
parameter validator - @loveltyoic, @natecj. - #774: Extended
mutually_exclusive
,exactly_one_of
,at_least_one_of
to work inside any kind of group:requires
oroptional
,Hash
orArray
- @ShPakvel. - ๐ #743: Added
allow_blank
parameter validator to validate non-empty strings - @elado. - ๐ #745: Removed
atom+xml
,rss+xml
, andjsonapi
content-types - @akabraham. - ๐ #745: Added
:binary, application/octet-stream
content-type - @akabraham. - ๐ #757: Changed
desc
can now be used with a block syntax - @dspaeth-faber. - 0๏ธโฃ #779: Fixed using
values
with adefault
proc - @ShPakvel. - ๐ #799: Fixed custom validators with required
Hash
,Array
types - @bwalex. - ๐ #784: Fixed
present
to not overwrite the previously added contents of the response body whebn called more than once - @mfunaro. - ๐ #809: Removed automatic
(.:format)
suffix on paths if you're using only one format (e.g., withformat :json
,/path
will respond with JSON but/path.xml
will be a 404) - @ajvondrak. - ๐ #816: Added ability to filter out missing params if params is a nested hash with
declared(params, include_missing: false)
- @georgimitev. - ๐ #819: Allowed both
desc
anddescription
in the params DSL - @mzikherman. - ๐ #821: Fixed passing string value when hash is expected in params - @rebelact.
- ๐ #824: Validate array params against list of acceptable values - @dnd.
- ๐จ #813: Routing methods dsl refactored to get rid of explicit
paths
parameter - @AlexYankee. - ๐ #826: Find
coerce_type
forArray
when not specified - @manovotn. - ๐ #645: Invoking
body false
will return204 No Content
- @dblock. - 0๏ธโฃ #801: Only evaluate permitted parameter
values
anddefault
lazily on each request when declared as a proc - @dblock. - ๐ #679: Fixed
OPTIONS
method returning 404 when combined withprefix
- @dblock. - ๐ #679: Fixed unsupported methods returning 404 instead of 405 when combined with
prefix
- @dblock.
- #803, #820: Added