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

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

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 20 Nov 2026 08:58PM 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:55PM UTC coverage: 100.0%. Remained the same
44815706684

Pull #3082

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>
Pull Request #3082: Leave out the undeclared params inside a param its validators rejected

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.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_entity.gemfile - 44815706684.1 20 Nov 2026 08:58PM UTC 176
48.6
GitHub Action Run
2 run-4.0-gemfiles/multi_json.gemfile - 44815706684.2 20 Nov 2026 08:58PM UTC 176
45.86
GitHub Action Run
3 run-3.3-gemfiles/rails_8_0.gemfile - 44815706684.3 20 Nov 2026 08:58PM UTC 178
98.89
GitHub Action Run
4 run-4.0-gemfiles/rails_8_0.gemfile - 44815706684.4 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
5 run-3.3-gemfiles/rack_3_1.gemfile - 44815706684.5 20 Nov 2026 08:58PM UTC 177
98.89
GitHub Action Run
6 run-4.0-gemfiles/grape_swagger.gemfile - 44815706684.6 20 Nov 2026 08:58PM UTC 176
52.69
GitHub Action Run
7 run-4.0-Gemfile - 44815706684.7 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
8 run-3.3-Gemfile - 44815706684.8 20 Nov 2026 08:58PM UTC 177
98.89
GitHub Action Run
9 run-3.3-gemfiles/rack_3_2.gemfile - 44815706684.9 20 Nov 2026 08:58PM UTC 177
98.89
GitHub Action Run
10 run-3.3-gemfiles/rails_8_1.gemfile - 44815706684.10 20 Nov 2026 08:58PM UTC 178
98.89
GitHub Action Run
11 run-3.4-gemfiles/rails_8_1.gemfile - 44815706684.11 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
12 run-3.4-gemfiles/rack_3_1.gemfile - 44815706684.12 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
13 run-3.4-Gemfile - 44815706684.13 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
14 run-3.4-gemfiles/rails_8_0.gemfile - 44815706684.14 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
15 run-4.0-gemfiles/rails_8_1.gemfile - 44815706684.15 20 Nov 2026 08:58PM UTC 178
98.88
GitHub Action Run
16 run-4.0-gemfiles/multi_json_1_20.gemfile - 44815706684.16 20 Nov 2026 08:58PM UTC 176
45.9
GitHub Action Run
17 run-4.0-gemfiles/hashie.gemfile - 44815706684.17 20 Nov 2026 08:59PM UTC 176
59.08
GitHub Action Run
18 run-4.0-gemfiles/rack_3_2.gemfile - 44815706684.18 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
19 run-4.0-gemfiles/dry_validation.gemfile - 44815706684.19 20 Nov 2026 08:58PM UTC 176
56.71
GitHub Action Run
20 run-3.4-gemfiles/rack_3_2.gemfile - 44815706684.20 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
21 run-4.0-gemfiles/multi_xml_0_8.gemfile - 44815706684.21 20 Nov 2026 08:58PM UTC 176
45.66
GitHub Action Run
22 run-4.0-gemfiles/rack_3_1.gemfile - 44815706684.22 20 Nov 2026 08:58PM UTC 177
98.88
GitHub Action Run
23 run-4.0-gemfiles/multi_xml.gemfile - 44815706684.23 20 Nov 2026 08:58PM UTC 176
45.63
GitHub Action Run
Source Files on build 44815706684
  • Tree
  • List 178
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44815706684
  • Pull Request #3082
  • PR Base - master (#44815700500)
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