Skip to content

fix: resolve swagger 500 error from swag v1/v2 registry mismatch#1265

Merged
gyuho merged 1 commit into
leptonai:mainfrom
JoonsooWon:fix/swagger-v1-v2-version-mismatch
Jul 9, 2026
Merged

fix: resolve swagger 500 error from swag v1/v2 registry mismatch#1265
gyuho merged 1 commit into
leptonai:mainfrom
JoonsooWon:fix/swagger-v1-v2-version-mismatch

Conversation

@JoonsooWon

Copy link
Copy Markdown
Contributor

This is a very minor fix
The docs.json endpoint returned HTTP 500 because swaggo/swag v2 is incompatible with gin-swagger v1.

Changes

  • Pin swaggo/swag to v1.16.x in go.mod and regenrate docs
  • Pin the swag cli in scripts/swag-gen.sh to prevent future drift

before
Screenshot 2026-07-09 at 12 28 25 AM

after
Screenshot 2026-07-09 at 12 27 11 AM

related issue - #1260

Signed-off-by: JoonsooWon <wonjs0116@gmail.com>
@gyuho gyuho self-assigned this Jul 9, 2026
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.60%. Comparing base (013dbdd) to head (deb8dbb).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1265      +/-   ##
==========================================
+ Coverage   90.56%   90.60%   +0.04%     
==========================================
  Files         349      349              
  Lines       26429    26429              
==========================================
+ Hits        23935    23946      +11     
+ Misses       1693     1684       -9     
+ Partials      801      799       -2     

☔ View full report in Codecov by Harness.
📢 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.

@gyuho
gyuho merged commit 02f1279 into leptonai:main Jul 9, 2026
12 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