mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[docs/chore] Swagger fixes for filters (#2730)
* Swagger: filtersV1Get should return an array * Swagger: context must use multi format
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user