Skip to content

Regenerate the Swagger spec so main goes green - #229

Merged
ssavutu merged 1 commit into
mainfrom
cleanup-language
Sep 3, 2026
Merged

Regenerate the Swagger spec so main goes green#229
ssavutu merged 1 commit into
mainfrom
cleanup-language

Conversation

@ssavutu

@ssavutu ssavutu commented Sep 3, 2026

Copy link
Copy Markdown
Member

main is red. #228 was merged about a minute after it opened, while CI was
still running, and its swagger-docs job then failed:

server/docs is stale. Run 'swag init --parseDependency --parseInternal' in
server/ and commit the result.

Publish Images and Deploy Delta are gated on a successful CI run, so both
were skipped: the merge is on main but nothing has deployed.

Cause

swaggo copies Go doc comments into the generated spec. #228 shortened the
WindowHours comment on models.BreakingNewsState, which changes the
window_hours description in docs.go, swagger.json and swagger.yaml.
The Docker build regenerates the spec, so the shipped binary was always
correct; the committed copy that pages.yml publishes was the stale one.

Fix

Regenerated with the pinned swag v1.16.6 from server/Dockerfile. One
description string changes, in all three generated files. Nothing else.

Verified locally: swag init --parseDependency --parseInternal now produces no
diff, and go build, go vet and go test ./... pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L4qBhBdQto1yNp1zP7VLYc

swaggo copies Go doc comments into the spec, so shortening the WindowHours
comment on BreakingNewsState left server/docs stale and ci.yml's swagger-docs
job failed on the diff.

Regenerated with the pinned swag v1.16.6 from server/Dockerfile. Only that
one description changes, in all three generated files.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L4qBhBdQto1yNp1zP7VLYc
@ssavutu
ssavutu merged commit 6a49bfe into main Sep 3, 2026
7 checks passed
@ssavutu
ssavutu deleted the cleanup-language branch September 3, 2026 16:01
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.

1 participant