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

ruby-grape / grape / 33251904324
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: mount-refresh-internal
DEFAULT BRANCH: master
Ran 29 Aug 2026 12:12PM UTC
Jobs 32
Files 168
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

29 Aug 2026 12:11PM UTC coverage: 96.989% (+0.001%) from 96.988%
33251904324

Pull #2866

github

ericproulx
Take `as` as a keyword argument in `requires` and `optional`

`as` renames a parameter, which is a DSL concern: the rename is performed
by `push_declared_params` and `new_scope`, and both already take it as a
keyword. It only travelled inside the options Hash so that those two calls
could read it back out as `opts[:as]`.

Nothing in the validation pipeline consumes it. `ValidationsSpec` does not
list `:as` among its spec-consumed keys, so the key falls through to
validator dispatch and instantiates an `AsValidator` per renamed parameter
— a marker whose `validate_param!` is empty and which nothing reads.

Accept it as a keyword instead, defaulting to whatever an enclosing `with`
supplied so the declaration keeps winning over the group. The options Hash
carries only what the validation pipeline is meant to read.

`Grape::Validations::Validators::AsValidator` is left in place; it is a
public constant and removing it is a separate decision.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2866: Take `as` as a keyword argument in `requires` and `optional`

1239 of 1330 branches covered (93.16%)

Branch coverage included in aggregate %.

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

3883 of 3951 relevant lines covered (98.28%)

27123.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_2_2.gemfile - 33251904324.1 29 Aug 2026 12:12PM UTC 167
95.7
GitHub Action Run
2 run-4.0-gemfiles/multi_json_1_20.gemfile - 33251904324.2 29 Aug 2026 12:13PM UTC 167
47.41
GitHub Action Run
3 run-4.0-gemfiles/grape_entity.gemfile - 33251904324.3 29 Aug 2026 12:12PM UTC 167
50.01
GitHub Action Run
4 run-3.4-gemfiles/rack_3_0.gemfile - 33251904324.4 29 Aug 2026 12:13PM UTC 167
95.73
GitHub Action Run
5 run-4.0-gemfiles/rack_3_0.gemfile - 33251904324.5 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
6 run-4.0-gemfiles/multi_json.gemfile - 33251904324.6 29 Aug 2026 12:12PM UTC 167
47.37
GitHub Action Run
7 run-4.0-gemfiles/rails_8_0.gemfile - 33251904324.7 29 Aug 2026 12:13PM UTC 168
95.74
GitHub Action Run
8 run-3.3-gemfiles/rails_7_2.gemfile - 33251904324.8 29 Aug 2026 12:12PM UTC 168
95.74
GitHub Action Run
9 run-4.0-gemfiles/hashie.gemfile - 33251904324.9 29 Aug 2026 12:12PM UTC 167
61.86
GitHub Action Run
10 run-4.0-gemfiles/rack_3_1.gemfile - 33251904324.10 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
11 run-3.4-gemfiles/rails_8_1.gemfile - 33251904324.11 29 Aug 2026 12:12PM UTC 168
95.74
GitHub Action Run
12 run-3.4-Gemfile - 33251904324.12 29 Aug 2026 12:13PM UTC 167
95.73
GitHub Action Run
13 run-4.0-gemfiles/grape_swagger.gemfile - 33251904324.13 29 Aug 2026 12:12PM UTC 167
55.17
GitHub Action Run
14 run-4.0-Gemfile - 33251904324.14 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
15 run-3.4-gemfiles/rails_7_2.gemfile - 33251904324.15 29 Aug 2026 12:13PM UTC 168
95.74
GitHub Action Run
16 run-3.4-gemfiles/rack_3_1.gemfile - 33251904324.16 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
17 run-4.0-gemfiles/rails_8_1.gemfile - 33251904324.17 29 Aug 2026 12:12PM UTC 168
95.74
GitHub Action Run
18 run-3.3-gemfiles/rack_3_1.gemfile - 33251904324.18 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 33251904324.19 29 Aug 2026 12:13PM UTC 168
95.74
GitHub Action Run
20 run-3.3-Gemfile - 33251904324.20 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
21 run-3.3-gemfiles/rails_8_0.gemfile - 33251904324.21 29 Aug 2026 12:13PM UTC 168
95.74
GitHub Action Run
22 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33251904324.22 29 Aug 2026 12:13PM UTC 167
46.84
GitHub Action Run
23 run-4.0-gemfiles/rack_3_2.gemfile - 33251904324.23 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 33251904324.24 29 Aug 2026 12:13PM UTC 167
95.73
GitHub Action Run
25 run-4.0-gemfiles/dry_validation.gemfile - 33251904324.25 29 Aug 2026 12:13PM UTC 167
57.86
GitHub Action Run
26 run-3.4-gemfiles/rack_3_2.gemfile - 33251904324.26 29 Aug 2026 12:13PM UTC 167
95.73
GitHub Action Run
27 run-3.3-gemfiles/rack_3_2.gemfile - 33251904324.27 29 Aug 2026 12:12PM UTC 167
95.73
GitHub Action Run
28 run-4.0-gemfiles/rack_2_2.gemfile - 33251904324.28 29 Aug 2026 12:12PM UTC 167
95.7
GitHub Action Run
29 run-3.3-gemfiles/rails_8_1.gemfile - 33251904324.29 29 Aug 2026 12:12PM UTC 168
95.74
GitHub Action Run
30 run-4.0-gemfiles/multi_xml.gemfile - 33251904324.30 29 Aug 2026 12:12PM UTC 167
46.81
GitHub Action Run
31 run-3.3-gemfiles/rack_2_2.gemfile - 33251904324.31 29 Aug 2026 12:13PM UTC 167
95.7
GitHub Action Run
32 run-4.0-gemfiles/rails_7_2.gemfile - 33251904324.32 29 Aug 2026 12:13PM UTC 168
95.74
GitHub Action Run
Source Files on build 33251904324
  • Tree
  • List 168
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33251904324
  • Pull Request #2866
  • PR Base - master (#33120993402)
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