diff options
author | Lucas Queiroz <me@lucasqueiroz.dev> | 2020-10-05 01:07:54 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 12:07:54 +0800 |
commit | 67a5573310cf23726e3c2ef4651221c6dc150075 (patch) | |
tree | add7af9497a8d421fedaec36f1638fb70ab3b5ad /templates | |
parent | 48703c3c68ff3d948b406c422bc4f663da783d87 (diff) | |
download | gitea-67a5573310cf23726e3c2ef4651221c6dc150075.tar.gz gitea-67a5573310cf23726e3c2ef4651221c6dc150075.zip |
[#13004] Add Timestamp to Tag list API (#13026)
* Add Timestamp to Tag list API
* Add unit test for ToCommitMeta
* Rename timestamp to created
* Reformat files
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index e54f40d670..837705682a 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -11297,6 +11297,11 @@ "committer": { "$ref": "#/definitions/User" }, + "created": { + "type": "string", + "format": "date-time", + "x-go-name": "Created" + }, "html_url": { "type": "string", "x-go-name": "HTMLURL" @@ -11340,6 +11345,11 @@ "type": "object", "title": "CommitMeta contains meta information of a commit in terms of API.", "properties": { + "created": { + "type": "string", + "format": "date-time", + "x-go-name": "Created" + }, "sha": { "type": "string", "x-go-name": "SHA" @@ -13065,6 +13075,11 @@ "committer": { "$ref": "#/definitions/CommitUser" }, + "created": { + "type": "string", + "format": "date-time", + "x-go-name": "Created" + }, "html_url": { "type": "string", "x-go-name": "HTMLURL" |