summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-11-12 01:43:56 +0800
committertechknowlogick <hello@techknowlogick.com>2018-11-11 12:43:56 -0500
commit8670decafbf00291c3a2d203925b5d73a49e78a6 (patch)
tree4b0ad790433c1a4f603c0997d12421234d200a0a /templates
parent297e619074d8578866d207b44f00771d0bfc0bc0 (diff)
downloadgitea-8670decafbf00291c3a2d203925b5d73a49e78a6.tar.gz
gitea-8670decafbf00291c3a2d203925b5d73a49e78a6.zip
Fix create team, update team missing units (#5188) (#5313)
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl48
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index efeabd6efb..d000c0ab1f 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -6128,6 +6128,22 @@
"admin"
],
"x-go-name": "Permission"
+ },
+ "units": {
+ "type": "array",
+ "enum": [
+ "repo.code",
+ "repo.issues",
+ "repo.ext_issues",
+ "repo.wiki",
+ "repo.pulls",
+ "repo.releases",
+ "repo.ext_wiki"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Units"
}
},
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
@@ -6503,6 +6519,22 @@
"admin"
],
"x-go-name": "Permission"
+ },
+ "units": {
+ "type": "array",
+ "enum": [
+ "repo.code",
+ "repo.issues",
+ "repo.ext_issues",
+ "repo.wiki",
+ "repo.pulls",
+ "repo.releases",
+ "repo.ext_wiki"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Units"
}
},
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
@@ -7550,6 +7582,22 @@
"owner"
],
"x-go-name": "Permission"
+ },
+ "units": {
+ "type": "array",
+ "enum": [
+ "repo.code",
+ "repo.issues",
+ "repo.ext_issues",
+ "repo.wiki",
+ "repo.pulls",
+ "repo.releases",
+ "repo.ext_wiki"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Units"
}
},
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"