mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
Fix compare api swagger (#30648)
The swagger format on #30349 is not right. This PR will fix it. (cherry picked from commit 8924d9b2efd52132876fcd106c625a2a2db7a295)
This commit is contained in:
parent
f619b96228
commit
4e6e63dca2
2 changed files with 3 additions and 5 deletions
|
@ -16,7 +16,7 @@ import (
|
||||||
|
|
||||||
// CompareDiff compare two branches or commits
|
// CompareDiff compare two branches or commits
|
||||||
func CompareDiff(ctx *context.APIContext) {
|
func CompareDiff(ctx *context.APIContext) {
|
||||||
// swagger:operation GET /repos/{owner}/{repo}/compare/{basehead} Get commit comparison information
|
// swagger:operation GET /repos/{owner}/{repo}/compare/{basehead} repository repoCompareDiff
|
||||||
// ---
|
// ---
|
||||||
// summary: Get commit comparison information
|
// summary: Get commit comparison information
|
||||||
// produces:
|
// produces:
|
||||||
|
|
6
templates/swagger/v1_json.tmpl
generated
6
templates/swagger/v1_json.tmpl
generated
|
@ -5216,12 +5216,10 @@
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"Get",
|
"repository"
|
||||||
"commit",
|
|
||||||
"comparison"
|
|
||||||
],
|
],
|
||||||
"summary": "Get commit comparison information",
|
"summary": "Get commit comparison information",
|
||||||
"operationId": "information",
|
"operationId": "repoCompareDiff",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
Loading…
Reference in a new issue