summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSegev Finer <segev208@gmail.com>2019-03-26 21:41:17 +0200
committerLauris BH <lauris@nix.lv>2019-03-26 21:41:17 +0200
commitb4941f707b0fd950fc2a0b12b34fbc37206e23dd (patch)
treec471af0051f70eda99fff73f84c3e5856f63180f /templates
parent22d3d029e6f7e6359f3a6fbe8b7827b579ac7445 (diff)
downloadgitea-b4941f707b0fd950fc2a0b12b34fbc37206e23dd.tar.gz
gitea-b4941f707b0fd950fc2a0b12b34fbc37206e23dd.zip
Fix Hook & HookList in Swagger (#6432)
Signed-off-by: Segev Finer <segev@codeocean.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl51
1 files changed, 46 insertions, 5 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index c9ea1d56eb..550b2fc90a 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -7557,6 +7557,50 @@
},
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
},
+ "Hook": {
+ "description": "Hook a hook is a web hook when one repository changed",
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "boolean",
+ "x-go-name": "Active"
+ },
+ "config": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "x-go-name": "Config"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "x-go-name": "Created"
+ },
+ "events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Events"
+ },
+ "id": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "ID"
+ },
+ "type": {
+ "type": "string",
+ "x-go-name": "Type"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "x-go-name": "Updated"
+ }
+ },
+ "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
+ },
"Issue": {
"description": "Issue represents an issue in a repository",
"type": "object",
@@ -8825,10 +8869,7 @@
"Hook": {
"description": "Hook",
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Branch"
- }
+ "$ref": "#/definitions/Hook"
}
},
"HookList": {
@@ -8836,7 +8877,7 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/definitions/Branch"
+ "$ref": "#/definitions/Hook"
}
}
},