summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-03-07 02:28:57 -0800
committerLibravatar GitHub <noreply@github.com>2024-03-07 11:28:57 +0100
commit74e84cf8fad85c698299768b0b444dd074f62604 (patch)
tree6d46c9aeee6e9b5f168fb7d354f70cccbd3e529b /docs/api
parent[chore] Fix a Swagger warning that only manifests during Go client code gener... (diff)
downloadgotosocial-74e84cf8fad85c698299768b0b444dd074f62604.tar.xz
[docs/chore] Swagger fixes for filters (#2730)
* Swagger: filtersV1Get should return an array * Swagger: context must use multi format
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml14
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index be833cf51..0fe932daa 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -5296,7 +5296,9 @@ paths:
"200":
description: Requested filters.
schema:
- $ref: '#/definitions/filterV1'
+ items:
+ $ref: '#/definitions/filterV1'
+ type: array
"400":
description: bad request
"401":
@@ -5329,7 +5331,8 @@ paths:
name: phrase
required: true
type: string
- - description: |-
+ - collectionFormat: multi
+ description: |-
The contexts in which the filter should be applied.
Sample: home, public
@@ -5343,7 +5346,7 @@ paths:
items:
type: string
minItems: 1
- name: context
+ name: context[]
required: true
type: array
uniqueItems: true
@@ -5477,7 +5480,8 @@ paths:
name: phrase
required: true
type: string
- - description: |-
+ - collectionFormat: multi
+ description: |-
The contexts in which the filter should be applied.
Sample: home, public
@@ -5491,7 +5495,7 @@ paths:
items:
type: string
minItems: 1
- name: context
+ name: context[]
required: true
type: array
uniqueItems: true