From c4ce3559d576711d24897a010d315c46f71c234c Mon Sep 17 00:00:00 2001 From: Patrick McLaughlin <88669932+bitgopatmcl@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:58:10 -0500 Subject: [PATCH] --- packages/openapi-generator/src/codec.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/openapi-generator/src/codec.ts b/packages/openapi-generator/src/codec.ts index 2bcce2d3..8e1aecfc 100644 --- a/packages/openapi-generator/src/codec.ts +++ b/packages/openapi-generator/src/codec.ts @@ -369,14 +369,17 @@ function parseTemplateLiteral( } const quasis = template.quasis.map((quasi) => quasi.cooked); - const result = quasis.reduce((acc, quasi, index) => { - if (index < literals.length) { - acc.push(quasi ?? '', literals[index]!); - } else { - acc.push(quasi ?? ''); - } - return acc; - }, [] as (string | Schema)[]); + const result = quasis.reduce( + (acc, quasi, index) => { + if (index < literals.length) { + acc.push(quasi ?? '', literals[index]!); + } else { + acc.push(quasi ?? ''); + } + return acc; + }, + [] as (string | Schema)[], + ); return E.right({ type: 'string',