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 9, 2024
1 parent 1d119f2 commit e790dec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/commands/openapi/refs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ import prepareOas from '../../lib/prepareOas.js';
import promptTerminal from '../../lib/promptWrapper.js';
import { validateFilePath } from '../../lib/validatePromptInput.js';

type SchemaCollection = Record<
string,
OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject | OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject
>;

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

type SchemaCollection = Record<string, Schema>;

export default class OpenAPIRefsCommand extends BaseCommand<typeof OpenAPIRefsCommand> {
static summary = 'Resolves circular and recursive references in OpenAPI by replacing them with object schemas.';

Expand Down

0 comments on commit e790dec

Please sign in to comment.