Skip to content

fix: add missing closing quote in GetUser swagger annotation#140

Merged
asdek merged 1 commit intovxcontrol:feature/project_improvementsfrom
mason5052:fix/swagger-missing-quote
Feb 23, 2026
Merged

fix: add missing closing quote in GetUser swagger annotation#140
asdek merged 1 commit intovxcontrol:feature/project_improvementsfrom
mason5052:fix/swagger-missing-quote

Conversation

@mason5052
Copy link
Contributor

Description of the Change

Problem

The @Failure 403 swagger comment for GetUser is missing the closing double-quote on its description string:

// BEFORE
// @Failure 403 {object} response.errorResp "getting user not permitted

This causes malformed Swagger/OpenAPI documentation output.

Solution

Add the missing closing quote:

// AFTER
// @Failure 403 {object} response.errorResp "getting user not permitted"

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Areas Affected

  • Core Services (Frontend UI/Backend API)

Testing and Verification

Test Steps

  1. Run swag init — no longer produces a malformed annotation warning for this line
  2. Generated Swagger JSON correctly includes the 403 description string

Security Considerations

No security implications. Comment-only change.

Checklist

Code Quality

  • My code follows the project's coding standards
  • All new and existing tests pass
  • I have run go fmt and go vet (for Go code)

Security

  • I have considered security implications
  • Changes maintain or improve the security model

Compatibility

  • Changes are backward compatible

The @failure 403 swagger comment for GetUser was missing
the closing double-quote on its description string, which
causes malformed Swagger/OpenAPI documentation output.
Copilot AI review requested due to automatic review settings February 23, 2026 20:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes a syntax error in a Swagger annotation comment for the GetUser function. The @Failure 403 annotation was missing a closing double-quote in its description string, which would cause malformed Swagger/OpenAPI documentation output.

Changes:

  • Added missing closing double-quote to the @Failure 403 Swagger annotation in the GetUser function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@asdek asdek changed the base branch from master to feature/project_improvements February 23, 2026 22:05
@asdek asdek merged commit 7a85ebc into vxcontrol:feature/project_improvements Feb 23, 2026
3 of 4 checks passed
@asdek
Copy link
Contributor

asdek commented Feb 23, 2026

LGTM

thank you for contribution!

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