Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger: correct names and formats for several array params #2758

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3353,11 +3353,12 @@ paths:
get:
operationId: accountRelationships
parameters:
- description: Account IDs.
- collectionFormat: multi
description: Account IDs.
in: query
items:
type: string
name: id
name: id[]
required: true
type: array
produces:
Expand Down Expand Up @@ -6067,11 +6068,12 @@ paths:
name: id
required: true
type: string
- description: Array of accountIDs to modify. Each accountID must correspond to an account that the requesting account follows.
- collectionFormat: multi
description: Array of accountIDs to modify. Each accountID must correspond to an account that the requesting account follows.
in: formData
items:
type: string
name: account_ids
name: account_ids[]
required: true
type: array
produces:
Expand Down Expand Up @@ -6171,11 +6173,12 @@ paths:
name: id
required: true
type: string
- description: Array of accountIDs to modify. Each accountID must correspond to an account that the requesting account follows.
- collectionFormat: multi
description: Array of accountIDs to modify. Each accountID must correspond to an account that the requesting account follows.
in: formData
items:
type: string
name: account_ids
name: account_ids[]
required: true
type: array
produces:
Expand Down
3 changes: 2 additions & 1 deletion internal/api/client/accounts/relationships.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ import (
//
// parameters:
// -
// name: id
// name: id[]
// type: array
// items:
// type: string
// description: Account IDs.
// in: query
// collectionFormat: multi
// required: true
//
// security:
Expand Down
3 changes: 2 additions & 1 deletion internal/api/client/lists/listaccountsadd.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import (
// in: path
// required: true
// -
// name: account_ids
// name: account_ids[]
// type: array
// items:
// type: string
Expand All @@ -61,6 +61,7 @@ import (
// Each accountID must correspond to an account
// that the requesting account follows.
// in: formData
// collectionFormat: multi
// required: true
//
// security:
Expand Down
3 changes: 2 additions & 1 deletion internal/api/client/lists/listaccountsremove.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import (
// in: path
// required: true
// -
// name: account_ids
// name: account_ids[]
// type: array
// items:
// type: string
Expand All @@ -61,6 +61,7 @@ import (
// Each accountID must correspond to an account
// that the requesting account follows.
// in: formData
// collectionFormat: multi
// required: true
//
// security:
Expand Down