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

RobotWebTools / rclnodejs / 30788554446
91%

Build:
DEFAULT BRANCH: develop
Ran 03 Aug 2026 06:16AM UTC
Jobs 1
Files 66
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

03 Aug 2026 05:55AM UTC coverage: 91.103%. Remained the same
30788554446

push

github

web-flow
[Web runtime] Add OpenAPI 3.1 export from the capability registry (#1565)

- Add `lib/openapi.js`: maps `CapabilityRegistry.list()` and rosidl introspection into an OpenAPI 3.1 document via `buildOpenApiDocument(capabilities, {title, basePath})`. CLI-only, not part of the `rclnodejs/web/server` API; lives in `lib/`, not `lib/runtime/`, since it has no runtime/transport dependency.
- JSON Schema mapper: `int64`/`uint64` as BigInt-strings with distinct signed/unsigned patterns, both using a shared `"42n"` example (avoids API explorers synthesizing an arbitrarily long digit string from the unbounded pattern); bounded/fixed-size arrays; de-duplicated `$ref` components for nested types; unresolvable types degrade to a placeholder instead of aborting the document.
- Add the `rclnodejs-web openapi [config.json]` CLI subcommand: resolves `expose` capabilities to schemas and prints the document to stdout without starting any transport or calling `rclnodejs.init()`.
- Derive `servers` and route `basePath` from the resolved HTTP config, matching the server transport's own fallback and its wildcard-to-`localhost` host display, so generated documents always describe the routes the runtime actually serves and honor a configured `--http-host`.
- Document all three capability kinds, including `GET /capability/subscribe/<name>` as `text/event-stream` — noted as not testable via "Try it out" in API explorers, since the response never completes.
- Extend `--help` usage text with the new subcommand.
- Add `test/test-openapi.js` covering the schema mapper, document assembly, and CLI behavior.

Fix: #1564

2180 of 2570 branches covered (84.82%)

Branch coverage included in aggregate %.

371 of 399 new or added lines in 2 files covered. (92.98%)

17428 of 18953 relevant lines covered (91.95%)

219.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
90.72
lib/openapi.js
Jobs
ID Job ID Ran Files Coverage
1 30788554446.1 03 Aug 2026 06:16AM UTC 66
91.1
GitHub Action Run
Source Files on build 30788554446
  • Tree
  • List 66
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30788554446
  • 0fd7d4eb on github
  • Prev Build on develop (#29888603836)
  • Next Build on develop (#30797890686)
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