From efbc8151db611a051deaf9aa068814331eb6ba89 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Fri, 15 Mar 2024 03:31:58 -0700 Subject: [PATCH] [chore] Swagger: correct names and formats for several array params (#2758) No code changes. --- docs/api/swagger.yaml | 15 +++++++++------ internal/api/client/accounts/relationships.go | 3 ++- internal/api/client/lists/listaccountsadd.go | 3 ++- internal/api/client/lists/listaccountsremove.go | 3 ++- 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 @@ // // 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 @@ // in: path // required: true // - -// name: account_ids +// name: account_ids[] // type: array // items: // type: string @@ -61,6 +61,7 @@ // 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 @@ // in: path // required: true // - -// name: account_ids +// name: account_ids[] // type: array // items: // type: string @@ -61,6 +61,7 @@ // Each accountID must correspond to an account // that the requesting account follows. // in: formData +// collectionFormat: multi // required: true // // security: