mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
Merge pull request '[BUG] Fix header name in swagger response' (#2526) from gusted/forgejo-header into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2526 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
3f68525ae4
|
@ -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"`
|
||||||
|
|
2
templates/swagger/v1_json.tmpl
generated
2
templates/swagger/v1_json.tmpl
generated
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue