mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 10:32:25 -05: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:
parent
5159664a51
commit
74e84cf8fa
4 changed files with 17 additions and 9 deletions
|
|
@ -55,7 +55,7 @@ import (
|
|||
// maxLength: 40
|
||||
// type: string
|
||||
// -
|
||||
// name: context
|
||||
// name: context[]
|
||||
// in: formData
|
||||
// required: true
|
||||
// description: |-
|
||||
|
|
@ -72,6 +72,7 @@ import (
|
|||
// items:
|
||||
// type:
|
||||
// string
|
||||
// collectionFormat: multi
|
||||
// minItems: 1
|
||||
// uniqueItems: true
|
||||
// -
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ import (
|
|||
// maxLength: 40
|
||||
// type: string
|
||||
// -
|
||||
// name: context
|
||||
// name: context[]
|
||||
// in: formData
|
||||
// required: true
|
||||
// description: |-
|
||||
|
|
@ -78,6 +78,7 @@ import (
|
|||
// items:
|
||||
// type:
|
||||
// string
|
||||
// collectionFormat: multi
|
||||
// minItems: 1
|
||||
// uniqueItems: true
|
||||
// -
|
||||
|
|
|
|||
|
|
@ -43,10 +43,12 @@ import (
|
|||
//
|
||||
// responses:
|
||||
// '200':
|
||||
// name: filter
|
||||
// name: filters
|
||||
// description: Requested filters.
|
||||
// schema:
|
||||
// "$ref": "#/definitions/filterV1"
|
||||
// type: array
|
||||
// items:
|
||||
// "$ref": "#/definitions/filterV1"
|
||||
// '400':
|
||||
// description: bad request
|
||||
// '401':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue