From e790dec66cd970ffb429c4a0437c1e08d8ee9bc3 Mon Sep 17 00:00:00 2001 From: Oleh Shumov <“oleh@readme.io”> Date: Mon, 9 Dec 2024 13:01:21 +0100 Subject: [PATCH] chore: cleanup --- src/commands/openapi/refs.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/commands/openapi/refs.ts b/src/commands/openapi/refs.ts index 01b05e5c9..ac28f03c5 100644 --- a/src/commands/openapi/refs.ts +++ b/src/commands/openapi/refs.ts @@ -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; + export default class OpenAPIRefsCommand extends BaseCommand { static summary = 'Resolves circular and recursive references in OpenAPI by replacing them with object schemas.';