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

ossuminc / riddl / 28550772676
65%

Build:
DEFAULT BRANCH: main
Ran 01 Jul 2026 10:07PM UTC
Jobs 1
Files 139
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

01 Jul 2026 09:55PM UTC coverage: 64.617%. Remained the same
28550772676

push

reid-spencer
Add root2Json — AST -> JSON serializer (inverse of parseJson)

Implements the symmetric inverse of parseJson as a plain recursive serializer
(JsonSerializer, the inverse of JsonAstBuilder), not a Pass — walks an AST.Root
to a JsonModel.RootDto, then upickle-writes it. Covers the full JSON subset
(definitions, type expressions, statements, functions/methods, interactions,
metadata); lossless for the documented subset and best-effort (non-crashing)
beyond it. Native-safe.

- riddlLib/shared/.../json/JsonSerializer.scala: the serializer.
- JsonModel.writeRoot(dto, indent): upickle write side (reuses the existing
  ReadWriters, so output is exactly what parseJson reads).
- RiddlLib.root2Json(root, pretty) (trait + companion); RiddlAPI.root2Json
  @JSExported; index.d.ts updated. Additive.
- Tests: parseJson -> root2Json -> parseJson preserves the error+warning
  profile and is stable/idempotent across the core DDD subset, the type-
  expression surface, streaming/integration, epics+interactions, and
  metadata/functions/sagas/modules. A JVM Root2JsonExamplesTest round-trips
  the 3 committed json-examples. JVM 63 + JS 33 green; Native compiles.

Design note: the requesting task proposed a JsonifyPass (HierarchyPass); the
plain recursive serializer was chosen instead (approved) as the true inverse
of the non-pass JsonAstBuilder — simpler, and guarantees schema symmetry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

7513 of 11627 relevant lines covered (64.62%)

0.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28550772676.1 01 Jul 2026 10:07PM UTC 139
64.62
Source Files on build 28550772676
  • Tree
  • List 139
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 20b48a30 on github
  • Prev Build on main (#28485826631)
  • Next Build on main (#28551458097)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc