Skip to content

Conversation

@daveshanley
Copy link
Member

@daveshanley daveshanley commented Jan 7, 2026

Numbers in names is more common than I want it to be. the second hit means I need to do something about it.

Also addresses issue #501

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 89.06250% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.50%. Comparing base (3d63579) to head (d1e8510).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
datamodel/high/base/example.go 69.23% 2 Missing and 2 partials ⚠️
datamodel/high/v3/path_item.go 75.00% 2 Missing and 2 partials ⚠️
datamodel/high/v3/security_scheme.go 69.23% 2 Missing and 2 partials ⚠️
datamodel/high/v3/callback.go 83.33% 1 Missing and 1 partial ⚠️
datamodel/high/v3/header.go 87.50% 1 Missing and 1 partial ⚠️
datamodel/high/v3/link.go 84.61% 1 Missing and 1 partial ⚠️
datamodel/high/v3/parameter.go 87.50% 1 Missing and 1 partial ⚠️
datamodel/high/v3/request_body.go 86.66% 1 Missing and 1 partial ⚠️
datamodel/high/v3/response.go 87.50% 1 Missing and 1 partial ⚠️
datamodel/low/v3/paths.go 86.66% 2 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #502      +/-   ##
==========================================
- Coverage   99.60%   99.50%   -0.11%     
==========================================
  Files         189      189              
  Lines       22743    22872     +129     
==========================================
+ Hits        22654    22759     +105     
- Misses         56       68      +12     
- Partials       33       45      +12     
Flag Coverage Δ
unittests 99.50% <89.06%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Numbers in names is more common than I want it to be. the second hit means I need to do something about it.
Adds RenderExternalRef() helper functions in shared.go that:

- Check if a low-level object is an external reference
- Resolve it via `FindComponent()`
- Build new low/high level objects from the resolved YAML
- Render the resolved content instead of the empty values
runs much cooler now, less allocations, less page faults, less memory. When run at scale, this thing was heating up like crazy.
@daveshanley
Copy link
Member Author

I cannot cover some of these lines, they require rigging that I can't create reasonably.

components with ‘x-‘ prefix are now supported.
@daveshanley daveshanley merged commit c579fac into main Jan 23, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants