Skip to content

Feature/auto generate swagger - #12

Merged
ravilock merged 6 commits into
tsuru:mainfrom
ravilock:feature/auto-generate-swagger
Nov 11, 2026
Merged

ravilock merged 6 commits into
tsuru:mainfrom
ravilock:feature/auto-generate-swagger

Conversation

@ravilock

Copy link
Copy Markdown
Contributor

No description provided.

@ravilock
ravilock force-pushed the feature/auto-generate-swagger branch from 2b518c4 to c3b39b6 Compare September 24, 2026 17:01
@crgisch
crgisch requested a balanced review from Copilot September 25, 2026 20:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The declared Go minimum is incompatible with Echo v4.13.3, and the served API version remains a placeholder.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Adds generated Swagger 2.0 documentation and a public Swagger UI.

Changes:

  • Adds Swag annotations and generated specifications.
  • Serves Swagger UI and validates generated files in CI.
  • Migrates Echo from v3 to v4.
File Description
README.md Documents Swagger usage.
Makefile Adds generation/check targets.
go.mod Adds Swagger and Echo v4 dependencies.
go.sum Updates dependency checksums.
docs/​swagger.yaml Generated YAML specification.
docs/​swagger.json Generated JSON specification.
docs/​docs.go Embeds the generated specification.
api/​api.go Registers Swagger and updates Echo setup.
api/​api_test.go Tests public Swagger access.
api/​apps.go Documents application endpoints.
api/​docs_types.go Adds documentation response types.
api/​jobs.go Documents job endpoints.
api/​observability.go Migrates Echo import.
api/​rule.go Documents rule endpoints.
api/​service.go Documents service endpoints.
api/​service_test.go Migrates Echo test import.
.github/​workflows/​ci.yaml Checks generated documentation.
Files not reviewed (1)
  • docs/docs.go: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread api/api.go Resolved
Comment thread go.mod Outdated
github.com/evanphx/json-patch/v5 v5.6.0
github.com/google/gops v0.3.3-0.20171222022621-e09130d89827
github.com/labstack/echo v3.2.5+incompatible
github.com/labstack/echo/v4 v4.13.3
Comment thread api/api.go
msg = he.Message
if he.Inner != nil {
msg = fmt.Sprintf("%v, %v", err, he.Inner)
if he.Internal != nil {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Echo V4 supposedly includes internal already
Might be worth checking if its not being duplicated? (idt we have tests covering this atm)

@ravilock
ravilock merged commit 1827bb9 into tsuru:main Nov 11, 2026
2 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.

3 participants