summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-12-31 05:11:15 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-31 12:11:15 +0800
commit655aea13a5ad5dd51bcaafd1b96ecce2673f0312 (patch)
treeb9cf101ae33e17e7aae75c52d27baaada6ada7ed /templates
parent27757714d0420192e6139d1e4206446dcefe6531 (diff)
downloadgitea-655aea13a5ad5dd51bcaafd1b96ecce2673f0312.tar.gz
gitea-655aea13a5ad5dd51bcaafd1b96ecce2673f0312.zip
update swagger info (#9558)
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl19
1 files changed, 13 insertions, 6 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 7f08b939cc..77def7aeab 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -8609,11 +8609,7 @@
"x-go-name": "BranchFilter"
},
"config": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-go-name": "Config"
+ "$ref": "#/definitions/CreateHookOptionConfig"
},
"events": {
"type": "array",
@@ -8625,16 +8621,27 @@
"type": {
"type": "string",
"enum": [
+ "dingtalk",
+ "discord",
"gitea",
"gogs",
+ "msteams",
"slack",
- "discord"
+ "telegram"
],
"x-go-name": "Type"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
+ "CreateHookOptionConfig": {
+ "description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
+ },
"CreateIssueCommentOption": {
"description": "CreateIssueCommentOption options for creating a comment on an issue",
"type": "object",