Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleh Shumov committed Dec 19, 2024
1 parent 304072d commit ec3768a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/commands/openapi/refs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable no-param-reassign */
/* eslint-disable camelcase */
import type { OASDocument } from 'oas/types';
import type { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types';
import type { OpenAPIV3_1 as OpenAPIV31 } from 'openapi-types';

import fs from 'node:fs';
import path from 'node:path';
Expand All @@ -19,11 +18,7 @@ import prepareOas from '../../lib/prepareOas.js';
import promptTerminal from '../../lib/promptWrapper.js';
import { validateFilePath } from '../../lib/validatePromptInput.js';

type Schema =
| OpenAPIV3_1.ReferenceObject
| OpenAPIV3_1.SchemaObject
| OpenAPIV3.ReferenceObject
| OpenAPIV3.SchemaObject;
type Schema = OpenAPIV31.ReferenceObject | OpenAPIV31.SchemaObject;

type SchemaCollection = Record<string, Schema>;

Expand Down

0 comments on commit ec3768a

Please sign in to comment.