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

ruby-grape / grape / 38953330810 / 6
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/test-push-master-only
DEFAULT BRANCH: master
Ran 16 Oct 2026 07:14PM UTC
Files 170
Run time 2s
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:12PM UTC coverage: 98.807% (+0.007%) from 98.8%
38953330810.6

Pull #3029

github

ericproulx
Add a built-in :jsonl (JSON Lines) format

`format :jsonl` serves JSON Lines: an Array renders one line per element
and any other object one line, each as the JSON formatter renders it; a
String is served as it is. An Enumerator body is streamed, each element
rendered only as the server reads the body, so a large export never sits
in memory whole. A formatter now signals that by handing back a
Grape::ServeStream::StreamResponse, which the formatter middleware serves
the way it serves `stream`.

A JSON Lines request body parses into an Array of its lines' values,
skipping blank lines, and stays in env['api.request.body'] like a JSON
Array body. Errors render as one JSON line.

:jsonl is kept out of ContentTypes::DEFAULTS, which every API that
declares no content type negotiates. An API declares it like any other
format, `content_type :jsonl, 'application/jsonl'` (or
application/x-ndjson), before `format :jsonl`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3029: Add a built-in :jsonl (JSON Lines) format

1496 of 1519 branches covered (98.49%)

Branch coverage included in aggregate %.

4385 of 4433 relevant lines covered (98.92%)

1237.98 hits per line

Source Files on job run-3.4-gemfiles/rails_8_0.gemfile - 38953330810.6
  • Tree
  • List 170
  • Changed 14
  • Source Changed 14
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 38953330810
  • 8a6de8c5 on github
  • Prev Job for on feature/jsonl-format (#38951491706.10)
  • Next Job for on feature/jsonl-format (#38953742701.2)
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