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

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

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 21 Nov 2026 06:12PM UTC
Jobs 23
Files 180
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

21 Nov 2026 06:12PM UTC coverage: 99.891% (-0.1%) from 100.0%
44934210680

push

github

ericproulx
Report a required param the request left out as missing only

Every validator of a `requires` param was called whether the request
sent the param or not, because PresenceValidator has to be called for
a missing one to report it. A custom validator that read the value was
then handed nil and raised, so the request answered 500 instead of
400. The README's own AlphaNumeric example does that:

    requires :text, alpha_numeric: true

    GET /   Before: 500 NoMethodError (undefined method 'match?' for nil)
            After:  400 text is missing

The built-in validators added a second error to `is missing`
instead: `n is missing, n does not have a valid value` from `values`,
`email is missing, email is empty` from `allow_blank: false`.

Only PresenceValidator is now called for an attribute the params do
not hold. Every other validator sees only the params a request sent,
as it already did for an `optional` param, so a missing one is
reported once. Each validator settles this when it is built, so the
attribute loop reads an ivar where it called `required?`. A param
sent as `null` is still validated, and `values` still rejects it.

UPGRADING notes the dropped second messages, including the one #3010
documented for a nested param with `values`. The README says when
`validate_param!` is called.

Fixes #1693.

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

1644 of 1651 branches covered (99.58%)

Branch coverage included in aggregate %.

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

4779 of 4779 relevant lines covered (100.0%)

22002.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json.gemfile - 44934210680.1 21 Nov 2026 06:12PM UTC 178
46.22
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 44934210680.2 21 Nov 2026 06:12PM UTC 178
53.4
GitHub Action Run
3 run-4.0-gemfiles/rails_8_0.gemfile - 44934210680.3 21 Nov 2026 06:12PM UTC 180
98.79
GitHub Action Run
4 run-4.0-gemfiles/rack_3_1.gemfile - 44934210680.4 21 Nov 2026 06:12PM UTC 179
98.78
GitHub Action Run
5 run-4.0-gemfiles/rack_3_2.gemfile - 44934210680.5 21 Nov 2026 06:12PM UTC 179
98.78
GitHub Action Run
6 run-4.0-gemfiles/multi_json_1_20.gemfile - 44934210680.6 21 Nov 2026 06:12PM UTC 178
46.25
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 44934210680.7 21 Nov 2026 06:12PM UTC 178
57.16
GitHub Action Run
8 run-3.3-gemfiles/rack_3_1.gemfile - 44934210680.8 21 Nov 2026 06:12PM UTC 179
98.8
GitHub Action Run
9 run-4.0-gemfiles/rails_8_1.gemfile - 44934210680.9 21 Nov 2026 06:12PM UTC 180
98.79
GitHub Action Run
10 run-4.0-gemfiles/multi_xml_0_8.gemfile - 44934210680.10 21 Nov 2026 06:12PM UTC 178
45.96
GitHub Action Run
11 run-3.3-gemfiles/rails_8_1.gemfile - 44934210680.11 21 Nov 2026 06:12PM UTC 180
98.8
GitHub Action Run
12 run-4.0-gemfiles/hashie.gemfile - 44934210680.12 21 Nov 2026 06:12PM UTC 178
59.33
GitHub Action Run
13 run-4.0-gemfiles/multi_xml.gemfile - 44934210680.13 21 Nov 2026 06:12PM UTC 178
45.92
GitHub Action Run
14 run-4.0-gemfiles/grape_entity.gemfile - 44934210680.14 21 Nov 2026 06:12PM UTC 178
48.92
GitHub Action Run
15 run-3.4-gemfiles/rails_8_0.gemfile - 44934210680.15 21 Nov 2026 06:12PM UTC 180
98.79
GitHub Action Run
16 run-4.0-Gemfile - 44934210680.16 21 Nov 2026 06:12PM UTC 179
98.78
GitHub Action Run
17 run-3.4-gemfiles/rack_3_2.gemfile - 44934210680.17 21 Nov 2026 06:12PM UTC 179
98.78
GitHub Action Run
18 run-3.3-gemfiles/rails_8_0.gemfile - 44934210680.18 21 Nov 2026 06:12PM UTC 180
98.8
GitHub Action Run
19 run-3.4-gemfiles/rails_8_1.gemfile - 44934210680.19 21 Nov 2026 06:12PM UTC 180
98.79
GitHub Action Run
20 run-3.4-gemfiles/rack_3_1.gemfile - 44934210680.20 21 Nov 2026 06:12PM UTC 179
98.78
GitHub Action Run
21 run-3.3-gemfiles/rack_3_2.gemfile - 44934210680.21 21 Nov 2026 06:12PM UTC 179
98.8
GitHub Action Run
22 run-3.3-Gemfile - 44934210680.22 21 Nov 2026 06:12PM UTC 179
98.8
GitHub Action Run
23 run-3.4-Gemfile - 44934210680.23 21 Nov 2026 06:12PM UTC 179
98.78
GitHub Action Run
Source Files on build 44934210680
  • Tree
  • List 180
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44934210680
  • 19ea00b4 on github
  • Prev Build on master (#44932218704)
  • Next Build on fix/validate-only-sent-params (#44934240956)
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