From 47addb31cb6800bbd075626bc43c339e6934dd41 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Tue, 9 Aug 2022 13:13:05 +0200 Subject: [PATCH] fix: parameter naming (#1899) --- src/lib/openapi/util/standard-responses.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/openapi/util/standard-responses.ts b/src/lib/openapi/util/standard-responses.ts index 2abba82af7..26082e8e0c 100644 --- a/src/lib/openapi/util/standard-responses.ts +++ b/src/lib/openapi/util/standard-responses.ts @@ -33,9 +33,9 @@ export const getStandardResponses = ( ...statusCodes: (keyof StandardResponses)[] ): Partial => statusCodes.reduce( - (acc, n) => ({ + (acc, statusCode) => ({ ...acc, - [n]: standardResponses[n], + [statusCode]: standardResponses[statusCode], }), {} as Partial, );