aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-12-13 11:34:11 +0000
committerGitHub <noreply@github.com>2020-12-13 11:34:11 +0000
commit825efa2605421a54ad1c5960de9e121a34d68d1a (patch)
tree8442728c795f4c9cf4116526258e9db38e0bb90f /templates/swagger
parentcf6f8b22caa64c95a96b16881aa19a95c0edb7c1 (diff)
downloadgitea-825efa2605421a54ad1c5960de9e121a34d68d1a.tar.gz
gitea-825efa2605421a54ad1c5960de9e121a34d68d1a.zip
[API] Add Ref to Issue (#13946)
* Add Ref to api.Issue This PR adds Ref to api.Issue and adds the backend parts to the migrator. Fix #13918 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index bf8467ff27..e77651b15e 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -13831,6 +13831,10 @@
"pull_request": {
"$ref": "#/definitions/PullRequestMeta"
},
+ "ref": {
+ "type": "string",
+ "x-go-name": "Ref"
+ },
"repository": {
"$ref": "#/definitions/RepositoryMeta"
},