aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-11-11 03:45:32 +0800
committertechknowlogick <hello@techknowlogick.com>2018-11-10 14:45:32 -0500
commitb3000ae623c30a58d3eb25c9fd7104db274381b7 (patch)
tree9905bc54b6d151baf2de69b4a9b3d41935f1e8be /templates
parentd487a76ee2843cc94ec6185dfdb676b4482dc8d8 (diff)
downloadgitea-b3000ae623c30a58d3eb25c9fd7104db274381b7.tar.gz
gitea-b3000ae623c30a58d3eb25c9fd7104db274381b7.zip
Fix create team, update team missing units (#5188)
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 56a169c295..5c8c666041 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -6322,6 +6322,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"
@@ -6697,6 +6713,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"
@@ -7744,6 +7776,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"