summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-03-15 03:31:58 -0700
committerLibravatar GitHub <noreply@github.com>2024-03-15 11:31:58 +0100
commitefbc8151db611a051deaf9aa068814331eb6ba89 (patch)
treeaf93429f4f8a190c3b01c5150716997e83079ce7
parent[docs] Add database maintenance section; update info message on ANALYZE run (... (diff)
downloadgotosocial-efbc8151db611a051deaf9aa068814331eb6ba89.tar.xz
[chore] Swagger: correct names and formats for several array params (#2758)
No code changes.
-rw-r--r--docs/api/swagger.yaml15
-rw-r--r--internal/api/client/accounts/relationships.go3
-rw-r--r--internal/api/client/lists/listaccountsadd.go3
-rw-r--r--internal/api/client/lists/listaccountsremove.go3
4 files changed, 15 insertions, 9 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 8bd6e3725..ad23d9e84 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -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:
@@ -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:
@@ -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:
diff --git a/internal/api/client/accounts/relationships.go b/internal/api/client/accounts/relationships.go
index dfe8c1721..30d7dd666 100644
--- a/internal/api/client/accounts/relationships.go
+++ b/internal/api/client/accounts/relationships.go
@@ -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:
diff --git a/internal/api/client/lists/listaccountsadd.go b/internal/api/client/lists/listaccountsadd.go
index e20056502..168c5e3fe 100644
--- a/internal/api/client/lists/listaccountsadd.go
+++ b/internal/api/client/lists/listaccountsadd.go
@@ -52,7 +52,7 @@ import (
// in: path
// required: true
// -
-// name: account_ids
+// name: account_ids[]
// type: array
// items:
// type: string
@@ -61,6 +61,7 @@ import (
// Each accountID must correspond to an account
// that the requesting account follows.
// in: formData
+// collectionFormat: multi
// required: true
//
// security:
diff --git a/internal/api/client/lists/listaccountsremove.go b/internal/api/client/lists/listaccountsremove.go
index 50e53a3a3..96f8b809d 100644
--- a/internal/api/client/lists/listaccountsremove.go
+++ b/internal/api/client/lists/listaccountsremove.go
@@ -52,7 +52,7 @@ import (
// in: path
// required: true
// -
-// name: account_ids
+// name: account_ids[]
// type: array
// items:
// type: string
@@ -61,6 +61,7 @@ import (
// Each accountID must correspond to an account
// that the requesting account follows.
// in: formData
+// collectionFormat: multi
// required: true
//
// security: