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

ruby-grape / grape / 44815677294
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 20 Nov 2026 08:56PM UTC
Jobs 23
Files 178
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

20 Nov 2026 08:54PM UTC coverage: 100.0%. Remained the same
44815677294

push

github

ericproulx
Leave out the undeclared params inside a param its validators rejected

With Grape.config.allow_undeclared_params = false, a param sent in a
shape its scope does not take was reported twice: once by its type
check, then once for each key it held, as though it had the right
shape.

    requires :items, type: Array do
      requires :sku, type: String
    end

    items: { sku: 'a', price: 1 }
    # => items is invalid, items[price] is not allowed

The same went for a Hash scope sent an Array (address is invalid,
address[0][zip] is not allowed) and for a contract's array sent a Hash
(lines must be an array, lines[price] is not allowed).

The undeclared check now leaves out what sits inside a param the
validators already rejected. The request is answered 400 either way, so
nothing undeclared gets through. Skipping a value by its shape alone
would have let one through: the validators of a given whose dependency
is not met never run, so nothing else would reject it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

1623 of 1623 branches covered (100.0%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 2 files covered. (100.0%)

4713 of 4713 relevant lines covered (100.0%)

21504.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_1.gemfile - 44815677294.1 20 Nov 2026 08:57PM UTC 178
98.89
GitHub Action Run
2 run-3.3-gemfiles/rails_8_0.gemfile - 44815677294.2 20 Nov 2026 08:57PM UTC 178
98.89
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 44815677294.3 20 Nov 2026 08:57PM UTC 176
59.08
GitHub Action Run
4 run-4.0-gemfiles/multi_json.gemfile - 44815677294.4 20 Nov 2026 08:57PM UTC 176
45.86
GitHub Action Run
5 run-3.3-Gemfile - 44815677294.5 20 Nov 2026 08:58PM UTC 177
98.89
GitHub Action Run
6 run-3.4-gemfiles/rack_3_2.gemfile - 44815677294.6 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 44815677294.7 20 Nov 2026 08:56PM UTC 176
56.71
GitHub Action Run
8 run-4.0-gemfiles/rack_3_2.gemfile - 44815677294.8 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
9 run-4.0-gemfiles/multi_xml.gemfile - 44815677294.9 20 Nov 2026 08:56PM UTC 176
45.63
GitHub Action Run
10 run-4.0-gemfiles/multi_json_1_20.gemfile - 44815677294.10 20 Nov 2026 08:56PM UTC 176
45.9
GitHub Action Run
11 run-4.0-gemfiles/rails_8_0.gemfile - 44815677294.11 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
12 run-3.4-Gemfile - 44815677294.12 20 Nov 2026 08:57PM UTC 177
98.88
GitHub Action Run
13 run-3.4-gemfiles/rack_3_1.gemfile - 44815677294.13 20 Nov 2026 08:57PM UTC 177
98.88
GitHub Action Run
14 run-3.4-gemfiles/rails_8_1.gemfile - 44815677294.14 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
15 run-4.0-Gemfile - 44815677294.15 20 Nov 2026 08:57PM UTC 177
98.88
GitHub Action Run
16 run-4.0-gemfiles/grape_entity.gemfile - 44815677294.16 20 Nov 2026 08:57PM UTC 176
48.6
GitHub Action Run
17 run-3.3-gemfiles/rack_3_1.gemfile - 44815677294.17 20 Nov 2026 08:57PM UTC 177
98.89
GitHub Action Run
18 run-4.0-gemfiles/grape_swagger.gemfile - 44815677294.18 20 Nov 2026 08:57PM UTC 176
52.69
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 44815677294.19 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
20 run-4.0-gemfiles/rails_8_1.gemfile - 44815677294.20 20 Nov 2026 08:57PM UTC 178
98.88
GitHub Action Run
21 run-3.3-gemfiles/rack_3_2.gemfile - 44815677294.21 20 Nov 2026 08:58PM UTC 177
98.89
GitHub Action Run
22 run-4.0-gemfiles/rack_3_1.gemfile - 44815677294.22 20 Nov 2026 08:56PM UTC 177
98.88
GitHub Action Run
23 run-4.0-gemfiles/multi_xml_0_8.gemfile - 44815677294.23 20 Nov 2026 08:56PM UTC 176
45.66
GitHub Action Run
Source Files on build 44815677294
  • Tree
  • List 178
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44815677294
  • 11ff91cb on github
  • Prev Build on master (#44270392825)
  • Next Build on fix/undeclared-in-mistyped-array (#44815706684)
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