Skip to content

Commit

Permalink
Fix swagger doc by rename repoAddTopíc to repoAddTopic (#16580)
Browse files Browse the repository at this point in the history
* Swagger API: rename repoAddTopíc to repoAddTopic

This changes the operationId to only contain 7 bit ascii, note "í" instead of "i"
  • Loading branch information
larshp authored Aug 1, 2021
1 parent e3b6526 commit d686d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9651,7 +9651,7 @@
"repository"
],
"summary": "Add a topic to a repository",
"operationId": "repoAddTopíc",
"operationId": "repoAddTopic",
"parameters": [
{
"type": "string",
Expand Down

0 comments on commit d686d7b

Please sign in to comment.