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

stacklok / toolhive / 21583241792
61%

Build:
DEFAULT BRANCH: main
Ran 02 Feb 2026 08:54AM UTC
Jobs 1
Files 488
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

02 Feb 2026 08:45AM UTC coverage: 60.545% (-0.002%) from 60.547%
21583241792

push

github

web-flow
fix: add custom YAML unmarshalers for registry metadata types (#3545)

Add custom UnmarshalYAML methods to ImageMetadata and RemoteServerMetadata
to handle flattening of embedded BaseServerMetadata fields.

This is needed because swag v2 doesn't support yaml:",inline" tags for
OpenAPI generation - it drops embedded fields from the schema when the
tag is present. By using custom unmarshalers instead of the yaml inline
tag, we get both:
- Correct OpenAPI 3.x schema generation (all embedded fields present)
- Correct YAML unmarshaling of flat structures (for toolhive-registry)

The technique uses yaml.v3's Node-based unmarshaling to decode the same
YAML node twice: first into the embedded struct, then into the parent
using a type alias to avoid infinite recursion.

Workaround for: https://github.com/swaggo/swag/issues/2140
Fixes: https://github.com/stacklok/toolhive/issues/3544

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

0 of 14 new or added lines in 1 file covered. (0.0%)

39760 of 65670 relevant lines covered (60.55%)

75.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
14
17.37
-1.38% pkg/registry/registry/registry_types.go
Jobs
ID Job ID Ran Files Coverage
1 21583241792.1 02 Feb 2026 08:54AM UTC 488
60.55
GitHub Action Run
Source Files on build 21583241792
  • Tree
  • List 488
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21583241792
  • 30e04962 on github
  • Prev Build on main (#21532592571)
  • Next Build on main (#21583258389)
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