Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit053f918

Browse files
Fix the response format foractions/workflows. (#35009) (#35016)
Backport#35009This PR fixes the response format for the OpenAPI Spec of`ActionsListRepositoryWorkflows`.It was specified in the OpenAPI spec as returning a `[]*ActionWorkflow`,but it actually should return a `api.ActionWorkflowResponse`.The test already expects an `api.ActionWorkflowResponse` like expected.Co-authored-by: Scion <Filiecs2@gmail.com>
1 parent68fcdb6 commit053f918

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

‎routers/api/v1/swagger/action.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ type swaggerResponseActionWorkflow struct {
4444
// swagger:response ActionWorkflowList
4545
typeswaggerResponseActionWorkflowListstruct {
4646
// in:body
47-
Body[]api.ActionWorkflow`json:"body"`
47+
Body api.ActionWorkflowResponse`json:"body"`
4848
}

‎templates/swagger/v1_json.tmpl‎

Lines changed: 20 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp