summaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-26 20:13:10 +0200
committerGitHub <noreply@github.com>2019-08-26 20:13:10 +0200
commit954fe0e4e0ab61516f200a171cf9a3bfb49c8906 (patch)
treea5b4dacce7847f40a98a208fd384151f885efbb0 /modules/structs
parent042089fbaf8a818042405a75bee08dea8db347c0 (diff)
downloadgitea-954fe0e4e0ab61516f200a171cf9a3bfb49c8906.tar.gz
gitea-954fe0e4e0ab61516f200a171cf9a3bfb49c8906.zip
swagger/fix: []string are not enum by swagger definition (#7916)
* []string are not enum by swagger definition * apply suggestion of @guillep2k * re-generate swagger file
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/org_team.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go
index b8b5090225..bea4a10ad4 100644
--- a/modules/structs/org_team.go
+++ b/modules/structs/org_team.go
@@ -13,7 +13,7 @@ type Team struct {
Organization *Organization `json:"organization"`
// enum: none,read,write,admin,owner
Permission string `json:"permission"`
- // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki
+ // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
Units []string `json:"units"`
}
@@ -24,7 +24,7 @@ type CreateTeamOption struct {
Description string `json:"description" binding:"MaxSize(255)"`
// enum: read,write,admin
Permission string `json:"permission"`
- // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki
+ // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
Units []string `json:"units"`
}
@@ -35,6 +35,6 @@ type EditTeamOption struct {
Description string `json:"description" binding:"MaxSize(255)"`
// enum: read,write,admin
Permission string `json:"permission"`
- // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki
+ // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
Units []string `json:"units"`
}