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

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

Build:
Build:
LAST BUILD BRANCH: fix/values-proc-arity
DEFAULT BRANCH: master
Ran 17 Oct 2026 08:43PM UTC
Jobs 32
Files 173
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

17 Oct 2026 08:41PM UTC coverage: 99.951% (+0.001%) from 99.95%
39067849325

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

1511 of 1513 branches covered (99.87%)

Branch coverage included in aggregate %.

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

4552 of 4553 relevant lines covered (99.98%)

30100.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_8_0.gemfile - 39067849325.1 17 Oct 2026 08:44PM UTC 173
98.81
GitHub Action Run
2 run-3.3-gemfiles/rack_3_1.gemfile - 39067849325.2 17 Oct 2026 08:43PM UTC 172
98.83
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 39067849325.3 17 Oct 2026 08:43PM UTC 171
60.36
GitHub Action Run
4 run-3.3-gemfiles/rails_8_0.gemfile - 39067849325.4 17 Oct 2026 08:46PM UTC 173
98.83
GitHub Action Run
5 run-4.0-gemfiles/multi_json_1_20.gemfile - 39067849325.5 17 Oct 2026 08:43PM UTC 171
46.7
GitHub Action Run
6 run-4.0-gemfiles/dry_validation.gemfile - 39067849325.6 17 Oct 2026 08:45PM UTC 171
56.48
GitHub Action Run
7 run-3.3-Gemfile - 39067849325.7 17 Oct 2026 08:44PM UTC 172
98.83
GitHub Action Run
8 run-4.0-gemfiles/multi_xml.gemfile - 39067849325.8 17 Oct 2026 08:46PM UTC 171
46.37
GitHub Action Run
9 run-3.4-gemfiles/rails_7_2.gemfile - 39067849325.9 17 Oct 2026 08:43PM UTC 173
98.81
GitHub Action Run
10 run-4.0-gemfiles/rack_3_2.gemfile - 39067849325.10 17 Oct 2026 08:46PM UTC 172
98.81
GitHub Action Run
11 run-4.0-gemfiles/rack_2_2.gemfile - 39067849325.11 17 Oct 2026 08:46PM UTC 172
98.78
GitHub Action Run
12 run-4.0-gemfiles/rack_3_1.gemfile - 39067849325.12 17 Oct 2026 08:45PM UTC 172
98.81
GitHub Action Run
13 run-3.4-gemfiles/rails_8_1.gemfile - 39067849325.13 17 Oct 2026 08:46PM UTC 173
98.81
GitHub Action Run
14 run-3.4-gemfiles/rack_2_2.gemfile - 39067849325.14 17 Oct 2026 08:45PM UTC 172
98.78
GitHub Action Run
15 run-4.0-Gemfile - 39067849325.15 17 Oct 2026 08:43PM UTC 172
98.81
GitHub Action Run
16 run-4.0-gemfiles/multi_json.gemfile - 39067849325.16 17 Oct 2026 08:44PM UTC 171
46.67
GitHub Action Run
17 run-3.3-gemfiles/rack_3_2.gemfile - 39067849325.17 17 Oct 2026 08:46PM UTC 172
98.83
GitHub Action Run
18 run-3.4-gemfiles/rack_3_2.gemfile - 39067849325.18 17 Oct 2026 08:44PM UTC 172
98.81
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 39067849325.19 17 Oct 2026 08:46PM UTC 173
98.81
GitHub Action Run
20 run-3.3-gemfiles/rails_7_2.gemfile - 39067849325.20 17 Oct 2026 08:45PM UTC 173
98.83
GitHub Action Run
21 run-4.0-gemfiles/grape_entity.gemfile - 39067849325.21 17 Oct 2026 08:45PM UTC 171
49.54
GitHub Action Run
22 run-3.3-gemfiles/rack_2_2.gemfile - 39067849325.22 17 Oct 2026 08:43PM UTC 172
98.8
GitHub Action Run
23 run-3.3-gemfiles/rack_3_0.gemfile - 39067849325.23 17 Oct 2026 08:43PM UTC 172
98.83
GitHub Action Run
24 run-4.0-gemfiles/rack_3_0.gemfile - 39067849325.24 17 Oct 2026 08:44PM UTC 172
98.81
GitHub Action Run
25 run-4.0-gemfiles/rails_8_1.gemfile - 39067849325.25 17 Oct 2026 08:45PM UTC 173
98.81
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 39067849325.26 17 Oct 2026 08:46PM UTC 173
98.81
GitHub Action Run
27 run-3.3-gemfiles/rails_8_1.gemfile - 39067849325.27 17 Oct 2026 08:45PM UTC 173
98.83
GitHub Action Run
28 run-3.4-gemfiles/rack_3_1.gemfile - 39067849325.28 17 Oct 2026 08:44PM UTC 172
98.81
GitHub Action Run
29 run-4.0-gemfiles/multi_xml_0_8.gemfile - 39067849325.29 17 Oct 2026 08:45PM UTC 171
46.4
GitHub Action Run
30 run-3.4-gemfiles/rack_3_0.gemfile - 39067849325.30 17 Oct 2026 08:43PM UTC 172
98.81
GitHub Action Run
31 run-4.0-gemfiles/grape_swagger.gemfile - 39067849325.31 17 Oct 2026 08:43PM UTC 171
53.76
GitHub Action Run
32 run-3.4-Gemfile - 39067849325.32 17 Oct 2026 08:43PM UTC 172
98.81
GitHub Action Run
Source Files on build 39067849325
  • Tree
  • List 173
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39067849325
  • Pull Request #3025
  • PR Base - master (#39063956492)
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