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

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

Build:
Build:
LAST BUILD BRANCH: fix/values-proc-arity
DEFAULT BRANCH: master
Ran 16 Oct 2026 07:06PM UTC
Jobs 32
Files 169
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

16 Oct 2026 07:06PM UTC coverage: 99.966%. Remained the same
38952471129

Pull #3025

github

ericproulx
Add :md and :markdown formatters that render an object's to_markdown

Rails 8.1 registers text/markdown as Mime[:md] and adds
`render markdown: obj`, which calls obj.to_markdown. Grape::Formatter::Md
is the same contract for Grape: an object answering to_markdown is
rendered with it and a String is returned as is. Anything else raises
Grape::Exceptions::InvalidFormatter, so a client that negotiated Markdown
for a Hash body gets the default format instead of its #to_s.

.md and .markdown are both common Markdown extensions, so :md and
:markdown name the same format. Declaring either content type answers
both extensions and both ?format= spellings: the Formatter middleware
resolves the other name through ContentTypes::FORMAT_SYNONYMS to the one
the API declared, so a formatter, parser or error formatter declared for
that name applies too. The lookup runs only when the requested format is
not declared, so the common path is unchanged.
Grape::Formatter::Markdown registers Md's rendering under :markdown for
an API that declares that name.

Neither is a default content type; an API opts in with
`content_type :md, 'text/markdown; charset=utf-8'`. Errors keep the text
error formatter, and a text/markdown request body passes through
unparsed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3025: Add :md and :markdown formatters that render an object's to_markdown

1520 of 1521 branches covered (99.93%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 4 files covered. (100.0%)

1 existing line in 1 file now uncovered.

4425 of 4426 relevant lines covered (99.98%)

30120.45 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.68
-0.02% lib/grape/validations/params_scope.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_8_0.gemfile - 38952471129.1 16 Oct 2026 07:07PM UTC 169
98.81
GitHub Action Run
2 run-4.0-gemfiles/rack_3_0.gemfile - 38952471129.2 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
3 run-4.0-gemfiles/multi_json_1_20.gemfile - 38952471129.3 16 Oct 2026 07:06PM UTC 167
45.87
GitHub Action Run
4 run-3.3-gemfiles/rails_8_1.gemfile - 38952471129.4 16 Oct 2026 07:08PM UTC 169
98.82
GitHub Action Run
5 run-4.0-Gemfile - 38952471129.5 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
6 run-4.0-gemfiles/rails_8_0.gemfile - 38952471129.6 16 Oct 2026 07:07PM UTC 169
98.81
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 38952471129.7 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
8 run-3.4-gemfiles/rack_3_0.gemfile - 38952471129.8 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
9 run-4.0-gemfiles/grape_entity.gemfile - 38952471129.9 16 Oct 2026 07:07PM UTC 167
48.72
GitHub Action Run
10 run-4.0-gemfiles/multi_xml_0_8.gemfile - 38952471129.10 16 Oct 2026 07:07PM UTC 167
45.56
GitHub Action Run
11 run-3.4-gemfiles/rack_3_1.gemfile - 38952471129.11 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
12 run-3.3-gemfiles/rack_3_2.gemfile - 38952471129.12 16 Oct 2026 07:07PM UTC 168
98.82
GitHub Action Run
13 run-3.4-gemfiles/rails_8_1.gemfile - 38952471129.13 16 Oct 2026 07:07PM UTC 169
98.81
GitHub Action Run
14 run-3.3-gemfiles/rails_7_2.gemfile - 38952471129.14 16 Oct 2026 07:07PM UTC 169
98.82
GitHub Action Run
15 run-4.0-gemfiles/rack_3_2.gemfile - 38952471129.15 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
16 run-3.3-gemfiles/rack_2_2.gemfile - 38952471129.16 16 Oct 2026 07:07PM UTC 168
98.79
GitHub Action Run
17 run-3.3-gemfiles/rack_3_1.gemfile - 38952471129.17 16 Oct 2026 07:07PM UTC 168
98.82
GitHub Action Run
18 run-3.3-Gemfile - 38952471129.18 16 Oct 2026 07:07PM UTC 168
98.82
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 38952471129.19 16 Oct 2026 07:06PM UTC 167
45.53
GitHub Action Run
20 run-4.0-gemfiles/grape_swagger.gemfile - 38952471129.20 16 Oct 2026 07:08PM UTC 167
53.03
GitHub Action Run
21 run-4.0-gemfiles/rails_8_1.gemfile - 38952471129.21 16 Oct 2026 07:07PM UTC 169
98.81
GitHub Action Run
22 run-3.4-Gemfile - 38952471129.22 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
23 run-4.0-gemfiles/rack_3_1.gemfile - 38952471129.23 16 Oct 2026 07:07PM UTC 168
98.8
GitHub Action Run
24 run-4.0-gemfiles/hashie.gemfile - 38952471129.24 16 Oct 2026 07:06PM UTC 167
59.71
GitHub Action Run
25 run-3.3-gemfiles/rack_3_0.gemfile - 38952471129.25 16 Oct 2026 07:07PM UTC 168
98.82
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 38952471129.26 16 Oct 2026 07:07PM UTC 169
98.81
GitHub Action Run
27 run-4.0-gemfiles/multi_json.gemfile - 38952471129.27 16 Oct 2026 07:07PM UTC 167
45.83
GitHub Action Run
28 run-4.0-gemfiles/dry_validation.gemfile - 38952471129.28 16 Oct 2026 07:06PM UTC 167
55.69
GitHub Action Run
29 run-4.0-gemfiles/rack_2_2.gemfile - 38952471129.29 16 Oct 2026 07:07PM UTC 168
98.77
GitHub Action Run
30 run-3.4-gemfiles/rack_2_2.gemfile - 38952471129.30 16 Oct 2026 07:07PM UTC 168
98.77
GitHub Action Run
31 run-3.4-gemfiles/rails_7_2.gemfile - 38952471129.31 16 Oct 2026 07:07PM UTC 169
98.81
GitHub Action Run
32 run-3.3-gemfiles/rails_8_0.gemfile - 38952471129.32 16 Oct 2026 07:07PM UTC 169
98.82
GitHub Action Run
Source Files on build 38952471129
  • Tree
  • List 169
  • Changed 15
  • Source Changed 15
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #38952471129
  • Pull Request #3025
  • PR Base - master (#38951491706)
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