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

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

Build:
Build:
LAST BUILD BRANCH: feature/strict-params
DEFAULT BRANCH: master
Ran 03 Nov 2026 08:58AM UTC
Jobs 32
Files 177
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

03 Nov 2026 08:57AM UTC coverage: 100.0%. Remained the same
41607189545

Pull #3054

github

ericproulx
Add Grape.config.reject_undeclared_params to answer 400 to undeclared params

With the setting on, a request carrying a param its endpoint did not
declare is answered 400, the undeclared params reported in the same
Grape::Exceptions::ValidationErrors as the other validation errors, with
the message "is not allowed".

Declared are the names of the endpoint's params blocks (its own and its
namespaces', given blocks included, renamed params by the name sent), a
contract's keys, the route's path params, and format. Hash, Array and
JSON params are looked into key by key and named by path, as in
items[1][price]. The check runs after the validators, so a JSON param
sent as a String is looked into as the Hash it is coerced to.

The declared names are folded into a frozen tree at compile!, held in
Endpoint::State. A request with no query string and no body is let
through without building params.

The setting is off by default, and Grape 5.0 turns it on.

Fixes #2241. Refs #2416.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3054: Add Grape.config.reject_undeclared_params to answer 400 to undeclared params

1553 of 1553 branches covered (100.0%)

Branch coverage included in aggregate %.

73 of 73 new or added lines in 5 files covered. (100.0%)

4594 of 4594 relevant lines covered (100.0%)

30655.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_0.gemfile - 41607189545.1 03 Nov 2026 08:58AM UTC 177
98.78
GitHub Action Run
2 run-3.3-gemfiles/rack_2_2.gemfile - 41607189545.2 03 Nov 2026 08:59AM UTC 176
98.75
GitHub Action Run
3 run-4.0-gemfiles/rails_8_0.gemfile - 41607189545.3 03 Nov 2026 08:59AM UTC 177
98.76
GitHub Action Run
4 run-4.0-gemfiles/rack_3_1.gemfile - 41607189545.4 03 Nov 2026 08:59AM UTC 176
98.76
GitHub Action Run
5 run-4.0-gemfiles/rack_3_2.gemfile - 41607189545.5 03 Nov 2026 08:59AM UTC 176
98.76
GitHub Action Run
6 run-3.4-gemfiles/rails_8_0.gemfile - 41607189545.6 03 Nov 2026 08:59AM UTC 177
98.76
GitHub Action Run
7 run-4.0-Gemfile - 41607189545.7 03 Nov 2026 08:59AM UTC 176
98.76
GitHub Action Run
8 run-4.0-gemfiles/grape_entity.gemfile - 41607189545.8 03 Nov 2026 08:58AM UTC 175
49.17
GitHub Action Run
9 run-3.3-gemfiles/rack_3_2.gemfile - 41607189545.9 03 Nov 2026 08:59AM UTC 176
98.78
GitHub Action Run
10 run-3.3-gemfiles/rails_7_2.gemfile - 41607189545.10 03 Nov 2026 08:59AM UTC 177
98.78
GitHub Action Run
11 run-3.4-gemfiles/rails_8_1.gemfile - 41607189545.11 03 Nov 2026 08:58AM UTC 177
98.76
GitHub Action Run
12 run-4.0-gemfiles/multi_xml.gemfile - 41607189545.12 03 Nov 2026 08:59AM UTC 175
46.07
GitHub Action Run
13 run-3.4-gemfiles/rack_2_2.gemfile - 41607189545.13 03 Nov 2026 08:59AM UTC 176
98.73
GitHub Action Run
14 run-3.4-gemfiles/rails_7_2.gemfile - 41607189545.14 03 Nov 2026 08:59AM UTC 177
98.76
GitHub Action Run
15 run-3.3-gemfiles/rails_8_1.gemfile - 41607189545.15 03 Nov 2026 08:58AM UTC 177
98.78
GitHub Action Run
16 run-4.0-gemfiles/rails_7_2.gemfile - 41607189545.16 03 Nov 2026 08:59AM UTC 177
98.76
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 41607189545.17 03 Nov 2026 08:58AM UTC 176
98.76
GitHub Action Run
18 run-3.3-gemfiles/rack_3_0.gemfile - 41607189545.18 03 Nov 2026 08:59AM UTC 176
98.78
GitHub Action Run
19 run-4.0-gemfiles/multi_xml_0_8.gemfile - 41607189545.19 03 Nov 2026 08:59AM UTC 175
46.1
GitHub Action Run
20 run-3.3-Gemfile - 41607189545.20 03 Nov 2026 08:59AM UTC 176
98.78
GitHub Action Run
21 run-4.0-gemfiles/rack_2_2.gemfile - 41607189545.21 03 Nov 2026 08:59AM UTC 176
98.73
GitHub Action Run
22 run-4.0-gemfiles/hashie.gemfile - 41607189545.22 03 Nov 2026 08:59AM UTC 175
59.8
GitHub Action Run
23 run-4.0-gemfiles/rack_3_0.gemfile - 41607189545.23 03 Nov 2026 08:59AM UTC 176
98.76
GitHub Action Run
24 run-4.0-gemfiles/multi_json_1_20.gemfile - 41607189545.24 03 Nov 2026 08:59AM UTC 175
46.36
GitHub Action Run
25 run-4.0-gemfiles/grape_swagger.gemfile - 41607189545.25 03 Nov 2026 08:59AM UTC 175
53.28
GitHub Action Run
26 run-3.3-gemfiles/rack_3_1.gemfile - 41607189545.26 03 Nov 2026 08:59AM UTC 176
98.78
GitHub Action Run
27 run-3.4-gemfiles/rack_3_2.gemfile - 41607189545.27 03 Nov 2026 08:59AM UTC 176
98.76
GitHub Action Run
28 run-4.0-gemfiles/multi_json.gemfile - 41607189545.28 03 Nov 2026 08:59AM UTC 175
46.33
GitHub Action Run
29 run-3.4-Gemfile - 41607189545.29 03 Nov 2026 08:58AM UTC 176
98.76
GitHub Action Run
30 run-4.0-gemfiles/dry_validation.gemfile - 41607189545.30 03 Nov 2026 08:59AM UTC 175
57.25
GitHub Action Run
31 run-4.0-gemfiles/rails_8_1.gemfile - 41607189545.31 03 Nov 2026 08:59AM UTC 177
98.76
GitHub Action Run
32 run-3.4-gemfiles/rack_3_0.gemfile - 41607189545.32 03 Nov 2026 08:59AM UTC 176
98.76
GitHub Action Run
Source Files on build 41607189545
  • Tree
  • List 177
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41607189545
  • Pull Request #3054
  • PR Base - master (#41543839827)
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