Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 13:16:10 +01:00

[BUG] Fix header name in swagger response

- This was incorrectly copied from the `swaggerCommitList` struct, which
on the other hand does set `X-Total`, but the API handler that uses this
response only sets `X-Total-Count`.
This commit is contained in:
Gusted 2024-02-29 12:03:40 +01:00
parent d0e5af7079
commit 42ae3d3d81
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ type swaggerChangedFileList struct {
PerPage int `json:"X-PerPage"` PerPage int `json:"X-PerPage"`
// Total commit count // Total commit count
Total int `json:"X-Total"` Total int `json:"X-Total-Count"`
// Total number of pages // Total number of pages
PageCount int `json:"X-PageCount"` PageCount int `json:"X-PageCount"`

View file

@ -24170,7 +24170,7 @@
"format": "int64", "format": "int64",
"description": "Commits per page" "description": "Commits per page"
}, },
"X-Total": { "X-Total-Count": {
"type": "integer", "type": "integer",
"format": "int64", "format": "int64",
"description": "Total commit count" "description": "Total commit count"