Skip to content

Commit

Permalink
chore: ignore TS in a few places... why though
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 11, 2023
1 parent b6eaa4c commit c7ba220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cmds/openapi/reduce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ({
Expand Down
2 changes: 2 additions & 0 deletions src/lib/prepareOas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit c7ba220

Please sign in to comment.