aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2024-08-01 17:33:40 +0800
committerGitHub <noreply@github.com>2024-08-01 09:33:40 +0000
commit333c9ed8cab961b6dd58b04edc47a57dc4d6dbab (patch)
tree4423dec9f69306e54d9017dc7591e2558cb523a5 /templates
parenta33e74d40d356e8f628ac06a131cb203a3609dec (diff)
downloadgitea-333c9ed8cab961b6dd58b04edc47a57dc4d6dbab.tar.gz
gitea-333c9ed8cab961b6dd58b04edc47a57dc4d6dbab.zip
Add permission description for API to add repo collaborator (#31744)
Fix #31552.
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 18b9cdab3a..bfaa86428c 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -18484,6 +18484,11 @@
"properties": {
"permission": {
"type": "string",
+ "enum": [
+ "read",
+ "write",
+ "admin"
+ ],
"x-go-name": "Permission"
}
},