summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/swagger/misc.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-06-04 11:16:53 +0200
committerGitHub <noreply@github.com>2020-06-04 12:16:53 +0300
commitb534a5164fe13dc41aa2996239c2dff4f109dee0 (patch)
treed790711e74321cb0344eafa33f2eeb594e68cb07 /routers/api/v1/swagger/misc.go
parent2842f6cf42ab984a7f533a51a050425ebaa2313b (diff)
downloadgitea-b534a5164fe13dc41aa2996239c2dff4f109dee0.tar.gz
gitea-b534a5164fe13dc41aa2996239c2dff4f109dee0.zip
[API] Expose allowed Reactions (#11735)
* [API] Expose allowed Reactions * dont be in soutch a rush * add TEST * use ElementsMatch Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers/api/v1/swagger/misc.go')
-rw-r--r--routers/api/v1/swagger/misc.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go
index 9fd0ab5b00..1d3c257efa 100644
--- a/routers/api/v1/swagger/misc.go
+++ b/routers/api/v1/swagger/misc.go
@@ -14,3 +14,10 @@ type swaggerResponseServerVersion struct {
// in:body
Body api.ServerVersion `json:"body"`
}
+
+// StringSlice
+// swagger:response StringSlice
+type swaggerResponseStringSlice struct {
+ // in:body
+ Body []string `json:"body"`
+}