From 3ab2d8621b9d6bca1739eec93fd8ce885185a5bc Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Sun, 26 Jan 2025 00:51:28 -0800 Subject: [docs] Swagger: fix filter context params by moving enum list from the list type to the item type (#3684) Reported by `@modulus:matrix.org` --- internal/api/client/filters/v1/filterpost.go | 12 ++++++------ internal/api/client/filters/v1/filterput.go | 12 ++++++------ internal/api/client/filters/v2/filterpost.go | 12 ++++++------ internal/api/client/filters/v2/filterput.go | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) (limited to 'internal') 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 -- cgit v1.2.3