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, );