aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-07-01 12:51:24 +0200
committerGitHub <noreply@github.com>2021-07-01 12:51:24 +0200
commitdfa18a8b1c8614f0827d6d2b91171a540a2ca3be (patch)
treea99960ca7b9f0d35e2ccd80cd421899655fea6c3 /templates/swagger
parentce286f9d9c00ceb24fb4eab4cab56c0b0678765a (diff)
downloadgitea-dfa18a8b1c8614f0827d6d2b91171a540a2ca3be.tar.gz
gitea-dfa18a8b1c8614f0827d6d2b91171a540a2ca3be.zip
Introduce NotifySubjectType (#16320)
* Introduce NotifySubjectType * update swagger docs
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 40dddb06a0..dfd08bcc68 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -15241,8 +15241,7 @@
"x-go-name": "Title"
},
"type": {
- "type": "string",
- "x-go-name": "Type"
+ "$ref": "#/definitions/NotifySubjectType"
},
"url": {
"type": "string",
@@ -15286,6 +15285,11 @@
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
+ "NotifySubjectType": {
+ "description": "NotifySubjectType represent type of notification subject",
+ "type": "string",
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
+ },
"OAuth2Application": {
"type": "object",
"title": "OAuth2Application represents an OAuth2 application.",