Skip to content

Commit d686d7b

Browse files
authored
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"
1 parent e3b6526 commit d686d7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/api/v1/repo/topic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func UpdateTopics(ctx *context.APIContext) {
126126

127127
// AddTopic adds a topic name to a repo
128128
func AddTopic(ctx *context.APIContext) {
129-
// swagger:operation PUT /repos/{owner}/{repo}/topics/{topic} repository repoAddTopíc
129+
// swagger:operation PUT /repos/{owner}/{repo}/topics/{topic} repository repoAddTopic
130130
// ---
131131
// summary: Add a topic to a repository
132132
// produces:

templates/swagger/v1_json.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9651,7 +9651,7 @@
96519651
"repository"
96529652
],
96539653
"summary": "Add a topic to a repository",
9654-
"operationId": "repoAddTopíc",
9654+
"operationId": "repoAddTopic",
96559655
"parameters": [
96569656
{
96579657
"type": "string",

0 commit comments

Comments
 (0)