summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Hvam <larshp@hotmail.com>2021-08-01 18:28:05 +0200
committerGitHub <noreply@github.com>2021-08-01 18:28:05 +0200
commitd686d7b05231ee43d6901317208c1dd851dacfa9 (patch)
tree5691c1913fc0acd9186d9be10b5b5a76998339ba
parente3b6526922367db57698025f4e11066f3ecff32c (diff)
downloadgitea-d686d7b05231ee43d6901317208c1dd851dacfa9.tar.gz
gitea-d686d7b05231ee43d6901317208c1dd851dacfa9.zip
Fix swagger doc by rename repoAddTopíc to repoAddTopic (#16580)
* Swagger API: rename repoAddTopíc to repoAddTopic This changes the operationId to only contain 7 bit ascii, note "í" instead of "i"
-rw-r--r--routers/api/v1/repo/topic.go2
-rw-r--r--templates/swagger/v1_json.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go
index 14712f536f..7646eaf82e 100644
--- a/routers/api/v1/repo/topic.go
+++ b/routers/api/v1/repo/topic.go
@@ -126,7 +126,7 @@ func UpdateTopics(ctx *context.APIContext) {
// AddTopic adds a topic name to a repo
func AddTopic(ctx *context.APIContext) {
- // swagger:operation PUT /repos/{owner}/{repo}/topics/{topic} repository repoAddTopíc
+ // swagger:operation PUT /repos/{owner}/{repo}/topics/{topic} repository repoAddTopic
// ---
// summary: Add a topic to a repository
// produces:
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 238265fd7e..d97ec5ff2d 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -9651,7 +9651,7 @@
"repository"
],
"summary": "Add a topic to a repository",
- "operationId": "repoAddTopíc",
+ "operationId": "repoAddTopic",
"parameters": [
{
"type": "string",