Skip to content

Read-Only Swagger UI#159

Draft
bakhterets wants to merge 49 commits intomainfrom
feature/swagger_ui
Draft

Read-Only Swagger UI#159
bakhterets wants to merge 49 commits intomainfrom
feature/swagger_ui

Conversation

@bakhterets
Copy link
Copy Markdown
Contributor

What it does:

  • Serves Swagger UI at /swagger/*any using gin-swagger
  • Dynamically filters openapi.yaml to expose only GET methods
  • Strips /auth/* paths, security block, securitySchemes, and Token* schemas
  • Removes RBAC-only fields (creator, contact_email, version) from response schemas
  • Overrides servers.url from the incoming request host (supports X-Forwarded-Proto)
  • Fixes openapi.yaml: realistic date examples, limit enum [10, 20, 50]

Limitations:

  • Swagger UI operates without authentication — all requests are anonymous
  • Only GET endpoints are visible; no mutation operations exposed
  • RBAC-filtered statuses (e.g. pending_review) are not returned for anonymous users

bakhterets and others added 30 commits February 2, 2026 15:54
hierarcy;
403 resp;
v2 created_by added for events and statuses;
TestValidateStatusesPatches relocated to v2_validation_test.go;
06 migration changed;
new errores for maintenance validation;
Incident model changed;
TestValidateEventCreationTimes added;
TestValidateEventCreationImpact added;
implemented SetJWTClaims.
go version updated
@bakhterets bakhterets self-assigned this Apr 17, 2026
@bakhterets bakhterets requested a review from sgmv April 17, 2026 15:21
@bakhterets bakhterets marked this pull request as draft April 17, 2026 15:22
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