]> source.dussan.org Git - gitea.git/commitdiff
Fix swagger doc by rename repoAddTopíc to repoAddTopic (#16580)
authorLars Hvam <larshp@hotmail.com>
Sun, 1 Aug 2021 16:28:05 +0000 (18:28 +0200)
committerGitHub <noreply@github.com>
Sun, 1 Aug 2021 16:28:05 +0000 (18:28 +0200)
* Swagger API: rename repoAddTopíc to repoAddTopic

This changes the operationId to only contain 7 bit ascii, note "í" instead of "i"

routers/api/v1/repo/topic.go
templates/swagger/v1_json.tmpl

index 14712f536f8f786c4b36400d61ae25da14bb08b8..7646eaf82e33a6fae1fdf4aefc7e1c24d99e77c5 100644 (file)
@@ -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:
index 238265fd7e0d66de91427a51cf7e3417bd657d05..d97ec5ff2d7be458c21616b7363318b976373f70 100644 (file)
           "repository"
         ],
         "summary": "Add a topic to a repository",
-        "operationId": "repoAddTopíc",
+        "operationId": "repoAddTopic",
         "parameters": [
           {
             "type": "string",