Skip to content

Add swagger dependency parsing for external types - #4125

Merged
rdimitrov merged 6 commits into
mainfrom
fix-swagger
Mar 13, 2026
Merged

rdimitrov merged 6 commits into
mainfrom
fix-swagger

Conversation

@rdimitrov

@rdimitrov rdimitrov commented Mar 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The move of registry and permission types to toolhive-core caused them to be excluded from the generated OpenAPI schema (via swaggerignore:"true" tags), which broke frontend SDK type generation.

  • Adding --parseDependencyLevel 1 to swag init lets it resolve types from Go module dependencies, so the swaggerignore workaround is no longer needed.

Note: to be merged after FE confirms this works for them 👍

Fixes #...

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe):

Test plan

  • Unit tests (task test)
  • E2E tests (task test-e2e)
  • Linting (task lint-fix)
  • Manual testing (describe below)

Changes

File Change

Does this introduce a user-facing change?

Special notes for reviewers

Large PR Justification

[Explain why this PR must be large, such as:]

  • Generated code that cannot be split

@github-actions github-actions Bot added the size/XL Extra large PR: 1000+ lines changed label Mar 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Large PR Detected

This PR exceeds 1000 lines of changes and requires justification before it can be reviewed.

How to unblock this PR:

Add a section to your PR description with the following format:

## Large PR Justification

[Explain why this PR must be large, such as:]
- Generated code that cannot be split
- Large refactoring that must be atomic
- Multiple related changes that would break if separated
- Migration or data transformation

Alternative:

Consider splitting this PR into smaller, focused changes (< 1000 lines each) for easier review and reduced risk.

See our Contributing Guidelines for more details.


This review will be automatically dismissed once you add the justification section.

@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Mar 13, 2026
@codecov

codecov Bot commented Mar 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.89%. Comparing base (b2cbbe1) to head (17c9314).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4125      +/-   ##
==========================================
+ Coverage   68.13%   68.89%   +0.76%     
==========================================
  Files         461      461              
  Lines       46704    46559     -145     
==========================================
+ Hits        31821    32078     +257     
+ Misses      12105    11983     -122     
+ Partials     2778     2498     -280     

☔ 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.

JAORMX
JAORMX previously approved these changes Mar 13, 2026
Signed-off-by: Radoslav Dimitrov <[email protected]>
Signed-off-by: Radoslav Dimitrov <[email protected]>
@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Mar 13, 2026
@github-actions
github-actions Bot dismissed their stale review March 13, 2026 11:42

Large PR justification has been provided. Thank you!

@github-actions

Copy link
Copy Markdown
Contributor

✅ Large PR justification has been provided. The size review has been dismissed and this PR can now proceed with normal review.

@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Mar 13, 2026
Signed-off-by: Radoslav Dimitrov <[email protected]>
@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Mar 13, 2026
@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Mar 13, 2026
@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Mar 13, 2026
@rdimitrov
rdimitrov merged commit ba38a12 into main Mar 13, 2026
54 of 55 checks passed
@rdimitrov
rdimitrov deleted the fix-swagger branch March 13, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Extra large PR: 1000+ lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants