Skip to content

Fix api documentation for scheduled job#2280

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Jan 20, 2026
Merged

Fix api documentation for scheduled job#2280
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

add

// @failure 422 {object} model.SimpleMsg "Invalid registration options"

to the docs.

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings January 20, 2026 05:37
Copy link
Copy Markdown
Contributor

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 PR adds API documentation for the HTTP 422 error response to the scheduled CSP resource registration endpoint, which was previously missing from the API documentation.

Changes:

  • Added @Failure 422 annotation to document "Invalid registration options" error response

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/interface/rest/server/infra/schedule.go Added Swagger annotation for 422 error response in the POST /registerCspResources/schedule endpoint
src/interface/rest/docs/swagger.yaml Updated OpenAPI specification with 422 response definition
src/interface/rest/docs/docs.go Updated generated documentation with 422 response definition

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

@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Jan 20, 2026
@cb-github-robot cb-github-robot merged commit da1a38b into cloud-barista:main Jan 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants