diff --git a/src/cmds/openapi/reduce.ts b/src/cmds/openapi/reduce.ts index aef3121bb..2aafc5fc6 100644 --- a/src/cmds/openapi/reduce.ts +++ b/src/cmds/openapi/reduce.ts @@ -116,6 +116,7 @@ export default class OpenAPIReduceCommand extends Command { message: 'Choose which tags to reduce by:', min: 1, choices: () => { + // @ts-expect-error yikes why const tags = new Oas(parsedPreparedSpec).getTags(); return tags.map(tag => ({ diff --git a/src/lib/prepareOas.ts b/src/lib/prepareOas.ts index a18578496..1b0438cde 100644 --- a/src/lib/prepareOas.ts +++ b/src/lib/prepareOas.ts @@ -96,6 +96,7 @@ export default async function prepareOas( await Promise.all( jsonAndYamlFiles.map(file => { debug(`attempting to oas-normalize ${file}`); + // @ts-expect-error yikes why const oas = new OASNormalize(file, { enablePaths: true }); return oas .version() @@ -154,6 +155,7 @@ export default async function prepareOas( const spinner = ora({ text: `Validating the API definition located at ${specPath}...`, ...oraOptions() }).start(); debug(`about to normalize spec located at ${specPath}`); + // @ts-expect-error yikes why const oas = new OASNormalize(specPath, { colorizeErrors: true, enablePaths: true }); debug('spec normalized');