Add Swagger annotations for registry auth endpoints#4243
Merged
ChrisJBurns merged 1 commit intomainfrom Mar 19, 2026
Merged
Conversation
The registryAuthLogin and registryAuthLogout handlers were missing swag annotations, so they did not appear in the generated OpenAPI spec. Add the standard @summary, @description, @tags, @router, etc. comment blocks and regenerate the swagger docs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4243 +/- ##
==========================================
+ Coverage 69.11% 69.12% +0.01%
==========================================
Files 470 470
Lines 47387 47388 +1
==========================================
+ Hits 32752 32758 +6
- Misses 12091 12092 +1
+ Partials 2544 2538 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sanskarzz
pushed a commit
to Sanskarzz/toolhive
that referenced
this pull request
Mar 23, 2026
Add Swagger annotations for registry auth login/logout endpoints The registryAuthLogin and registryAuthLogout handlers were missing swag annotations, so they did not appear in the generated OpenAPI spec. Add the standard @summary, @description, @tags, @router, etc. comment blocks and regenerate the swagger docs. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
registryAuthLoginandregistryAuthLogouthandlers were missing swag annotations, so they did not appear in the generated OpenAPI spec. This adds the standard@Summary,@Description,@Tags,@Router, etc. comment blocks and regenerates the swagger docs.Type of change
Test plan
task lint-fix)Verified
task docsregenerates successfully and the new endpoints appear indocs/server/swagger.jsonanddocs/server/swagger.yamlunder/api/v1beta/registry/auth/loginand/api/v1beta/registry/auth/logout.Does this introduce a user-facing change?
No code behavior change. The login/logout endpoints now appear in the Swagger/OpenAPI documentation.
Generated with Claude Code