• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 35455284877
100%

Build:
DEFAULT BRANCH: master
Ran 19 Sep 2026 04:32PM UTC
Jobs 32
Files 167
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Sep 2026 04:32PM UTC coverage: 99.029% (+0.002%) from 99.027%
35455284877

push

github

web-flow
Reject what a collection with multiple member types cannot coerce (#2955)

A param declared as `type: Array[Integer, String]` -- or with such a
collection among its `types:`, as in the README's
`types: [Integer, String, Array[Integer, String]]` -- is coerced by
VariantCollectionCoercer, which checked neither its input nor its output:

- a value that is not an Array returned nil rather than an InvalidValue,
  so CoerceValidator wrote nil over it and `requires :ids, type:
  Array[Integer, String]` let `ids=x` through as nil;
- each member went through the member coercer and the results were
  returned as they came, so a member none of the types accepts reached the
  endpoint as a Grape::Validations::Types::InvalidValue object.

Array[Integer] answers 400 to both, and now so does a collection with
multiple member types. nil and '' still coerce to nil, as specs pin.

The coercion method, when one is given, was never called for anything but
an Array: a `coerce_with` that splits a String into the collection saw
nothing and the param came out nil. It is now handed the value whatever it
is, as MultipleTypeCoercer hands it for `types:`.

UPGRADING covers both, since each turns a request that used to pass into a
400.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1435 of 1491 branches covered (96.24%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 1 file covered. (100.0%)

4279 of 4279 relevant lines covered (100.0%)

28468.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_0.gemfile - 35455284877.1 19 Sep 2026 04:32PM UTC 166
97.85
GitHub Action Run
2 run-4.0-gemfiles/hashie.gemfile - 35455284877.2 19 Sep 2026 04:32PM UTC 165
59.79
GitHub Action Run
3 run-4.0-Gemfile - 35455284877.3 19 Sep 2026 04:32PM UTC 166
97.83
GitHub Action Run
4 run-4.0-gemfiles/rack_3_0.gemfile - 35455284877.4 19 Sep 2026 04:33PM UTC 166
97.85
GitHub Action Run
5 run-4.0-gemfiles/grape_swagger.gemfile - 35455284877.5 19 Sep 2026 04:32PM UTC 165
53.26
GitHub Action Run
6 run-3.4-gemfiles/rails_8_0.gemfile - 35455284877.6 19 Sep 2026 04:32PM UTC 167
97.85
GitHub Action Run
7 run-3.4-Gemfile - 35455284877.7 19 Sep 2026 04:32PM UTC 166
97.85
GitHub Action Run
8 run-4.0-gemfiles/rack_2_2.gemfile - 35455284877.8 19 Sep 2026 04:33PM UTC 166
97.81
GitHub Action Run
9 run-4.0-gemfiles/rails_8_0.gemfile - 35455284877.9 19 Sep 2026 04:33PM UTC 167
97.83
GitHub Action Run
10 run-3.4-gemfiles/rails_8_1.gemfile - 35455284877.10 19 Sep 2026 04:32PM UTC 167
97.83
GitHub Action Run
11 run-4.0-gemfiles/multi_xml_0_8.gemfile - 35455284877.11 19 Sep 2026 04:32PM UTC 165
45.7
GitHub Action Run
12 run-3.3-gemfiles/rack_3_2.gemfile - 35455284877.12 19 Sep 2026 04:32PM UTC 166
97.87
GitHub Action Run
13 run-4.0-gemfiles/multi_json.gemfile - 35455284877.13 19 Sep 2026 04:32PM UTC 165
45.94
GitHub Action Run
14 run-4.0-gemfiles/grape_entity.gemfile - 35455284877.14 19 Sep 2026 04:32PM UTC 165
48.94
GitHub Action Run
15 run-3.3-gemfiles/rails_8_0.gemfile - 35455284877.15 19 Sep 2026 04:32PM UTC 167
97.87
GitHub Action Run
16 run-4.0-gemfiles/dry_validation.gemfile - 35455284877.16 19 Sep 2026 04:32PM UTC 165
55.93
GitHub Action Run
17 run-4.0-gemfiles/rails_8_1.gemfile - 35455284877.17 19 Sep 2026 04:32PM UTC 167
97.83
GitHub Action Run
18 run-4.0-gemfiles/multi_json_1_20.gemfile - 35455284877.18 19 Sep 2026 04:32PM UTC 165
45.97
GitHub Action Run
19 run-3.3-gemfiles/rack_3_0.gemfile - 35455284877.19 19 Sep 2026 04:32PM UTC 166
97.87
GitHub Action Run
20 run-4.0-gemfiles/rails_7_2.gemfile - 35455284877.20 19 Sep 2026 04:32PM UTC 167
97.83
GitHub Action Run
21 run-3.4-gemfiles/rack_2_2.gemfile - 35455284877.21 19 Sep 2026 04:33PM UTC 166
97.81
GitHub Action Run
22 run-3.3-gemfiles/rails_7_2.gemfile - 35455284877.22 19 Sep 2026 04:32PM UTC 167
97.85
GitHub Action Run
23 run-4.0-gemfiles/rack_3_1.gemfile - 35455284877.23 19 Sep 2026 04:33PM UTC 166
97.85
GitHub Action Run
24 run-3.4-gemfiles/rack_3_2.gemfile - 35455284877.24 19 Sep 2026 04:32PM UTC 166
97.85
GitHub Action Run
25 run-3.3-Gemfile - 35455284877.25 19 Sep 2026 04:33PM UTC 166
97.85
GitHub Action Run
26 run-4.0-gemfiles/multi_xml.gemfile - 35455284877.26 19 Sep 2026 04:32PM UTC 165
45.66
GitHub Action Run
27 run-3.3-gemfiles/rack_2_2.gemfile - 35455284877.27 19 Sep 2026 04:32PM UTC 166
97.81
GitHub Action Run
28 run-3.3-gemfiles/rails_8_1.gemfile - 35455284877.28 19 Sep 2026 04:33PM UTC 167
97.85
GitHub Action Run
29 run-4.0-gemfiles/rack_3_2.gemfile - 35455284877.29 19 Sep 2026 04:33PM UTC 166
97.83
GitHub Action Run
30 run-3.4-gemfiles/rails_7_2.gemfile - 35455284877.30 19 Sep 2026 04:32PM UTC 167
97.83
GitHub Action Run
31 run-3.4-gemfiles/rack_3_1.gemfile - 35455284877.31 19 Sep 2026 04:32PM UTC 166
97.85
GitHub Action Run
32 run-3.3-gemfiles/rack_3_1.gemfile - 35455284877.32 19 Sep 2026 04:33PM UTC 166
97.87
GitHub Action Run
Source Files on build 35455284877
  • Tree
  • List 167
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35455284877
  • b946e52e on github
  • Prev Build on master (#35454670201)
  • Next Build on master (#35456547515)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc