summaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2019-01-30 18:33:00 +0200
committertechknowlogick <matti@mdranta.net>2019-01-30 11:33:00 -0500
commitfada6968a847f628a6d32ac546e1228838809498 (patch)
treeb0f8c8cd14a5c6e7bbffbc170e52527865a58462 /templates/swagger
parent8b5f6ced22d510a399bf304915ad77c61d6ce7b3 (diff)
downloadgitea-fada6968a847f628a6d32ac546e1228838809498.tar.gz
gitea-fada6968a847f628a6d32ac546e1228838809498.zip
Fix new release creation API to allow empty target (#5870)
* Fix new release creation API to allow empty target * Add more test cases * Update swagger
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 6989a05073..801bab51f6 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -7570,6 +7570,13 @@
"description": "PayloadCommit represents a commit",
"type": "object",
"properties": {
+ "added": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Added"
+ },
"author": {
"$ref": "#/definitions/PayloadUser"
},
@@ -7585,6 +7592,20 @@
"type": "string",
"x-go-name": "Message"
},
+ "modified": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Modified"
+ },
+ "removed": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "x-go-name": "Removed"
+ },
"timestamp": {
"type": "string",
"format": "date-time",