From 82df6bc38d78550575a4a7b0bcce3b539a0af92c Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Sun, 13 Aug 2017 22:36:03 +0200 Subject: [PATCH] Improving swagger doc @ Feature/timetracker (#69) * Changing swagger:response to swagger:parameters * Moving in:body to Time --- gitea/issue_tracked_time.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitea/issue_tracked_time.go b/gitea/issue_tracked_time.go index 8b8b766..67b8a9b 100644 --- a/gitea/issue_tracked_time.go +++ b/gitea/issue_tracked_time.go @@ -45,8 +45,9 @@ func (c *Client) GetMyTrackedTimes() (TrackedTimes, error) { } // AddTimeOption adds time manually to an issue -// swagger:response AddTimeOption +// swagger:parameters addTime type AddTimeOption struct { + // in: body Time int64 `json:"time" binding:"Required"` }