summaryrefslogtreecommitdiff
path: root/internal/api
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2025-01-26 00:51:28 -0800
committerLibravatar GitHub <noreply@github.com>2025-01-26 09:51:28 +0100
commit3ab2d8621b9d6bca1739eec93fd8ce885185a5bc (patch)
tree9daf5dd085f11fcdf387fef19df0ed37893d4e45 /internal/api
parent[bugfix] Rename domain perm sub migration to unique date (#3679) (diff)
downloadgotosocial-3ab2d8621b9d6bca1739eec93fd8ce885185a5bc.tar.xz
[docs] Swagger: fix filter context params by moving enum list from the list type to the item type (#3684)
Reported by `@modulus:matrix.org`
Diffstat (limited to 'internal/api')
-rw-r--r--internal/api/client/filters/v1/filterpost.go12
-rw-r--r--internal/api/client/filters/v1/filterput.go12
-rw-r--r--internal/api/client/filters/v2/filterpost.go12
-rw-r--r--internal/api/client/filters/v2/filterput.go12
4 files changed, 24 insertions, 24 deletions
diff --git a/internal/api/client/filters/v1/filterpost.go b/internal/api/client/filters/v1/filterpost.go
index 95a810f8b..a58f2273d 100644
--- a/internal/api/client/filters/v1/filterpost.go
+++ b/internal/api/client/filters/v1/filterpost.go
@@ -63,16 +63,16 @@ import (
// The contexts in which the filter should be applied.
//
// Sample: home, public
-// enum:
-// - home
-// - notifications
-// - public
-// - thread
-// - account
// type: array
// items:
// type:
// string
+// enum:
+// - home
+// - notifications
+// - public
+// - thread
+// - account
// collectionFormat: multi
// minItems: 1
// uniqueItems: true
diff --git a/internal/api/client/filters/v1/filterput.go b/internal/api/client/filters/v1/filterput.go
index 60915624e..edaf8104d 100644
--- a/internal/api/client/filters/v1/filterput.go
+++ b/internal/api/client/filters/v1/filterput.go
@@ -69,16 +69,16 @@ import (
// The contexts in which the filter should be applied.
//
// Sample: home, public
-// enum:
-// - home
-// - notifications
-// - public
-// - thread
-// - account
// type: array
// items:
// type:
// string
+// enum:
+// - home
+// - notifications
+// - public
+// - thread
+// - account
// collectionFormat: multi
// minItems: 1
// uniqueItems: true
diff --git a/internal/api/client/filters/v2/filterpost.go b/internal/api/client/filters/v2/filterpost.go
index ad6e83060..5e87df617 100644
--- a/internal/api/client/filters/v2/filterpost.go
+++ b/internal/api/client/filters/v2/filterpost.go
@@ -65,16 +65,16 @@ import (
// The contexts in which the filter should be applied.
//
// Sample: home, public
-// enum:
-// - home
-// - notifications
-// - public
-// - thread
-// - account
// type: array
// items:
// type:
// string
+// enum:
+// - home
+// - notifications
+// - public
+// - thread
+// - account
// collectionFormat: multi
// minItems: 1
// uniqueItems: true
diff --git a/internal/api/client/filters/v2/filterput.go b/internal/api/client/filters/v2/filterput.go
index 9c1b56dd6..58d3f4a22 100644
--- a/internal/api/client/filters/v2/filterput.go
+++ b/internal/api/client/filters/v2/filterput.go
@@ -98,16 +98,16 @@ import (
// The contexts in which the filter should be applied.
//
// Sample: home, public
-// enum:
-// - home
-// - notifications
-// - public
-// - thread
-// - account
// type: array
// items:
// type:
// string
+// enum:
+// - home
+// - notifications
+// - public
+// - thread
+// - account
// collectionFormat: multi
// minItems: 1
// uniqueItems: true