aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 284e1c71a0..16e3a34856 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -13127,6 +13127,9 @@
"type": "string",
"x-go-name": "SHA"
},
+ "stats": {
+ "$ref": "#/definitions/CommitStats"
+ },
"url": {
"type": "string",
"x-go-name": "URL"
@@ -13182,6 +13185,28 @@
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
+ "CommitStats": {
+ "description": "CommitStats is statistics for a RepoCommit",
+ "type": "object",
+ "properties": {
+ "additions": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "Additions"
+ },
+ "deletions": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "Deletions"
+ },
+ "total": {
+ "type": "integer",
+ "format": "int64",
+ "x-go-name": "Total"
+ }
+ },
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
+ },
"CommitStatus": {
"description": "CommitStatus holds a single status of a single Commit",
"type": "object",
@@ -17137,6 +17162,9 @@
"url": {
"type": "string",
"x-go-name": "URL"
+ },
+ "verification": {
+ "$ref": "#/definitions/PayloadCommitVerification"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"