UNPKG

openapi-ts-json-schema

Version:

Generate TypeScript-first JSON schemas from OpenAPI definitions

12 lines (11 loc) 456 B
import type { JSONSchema, OpenApiObject, SchemaMetaDataMap } from '../types.js'; export declare function addSchemaToMetaData({ id, $id, schemaMetaDataMap, openApiDefinition, jsonSchema, isRef, shouldBeGenerated, outputPath, }: { id: string; $id: string; schemaMetaDataMap: SchemaMetaDataMap; openApiDefinition: OpenApiObject; jsonSchema: JSONSchema; isRef: boolean; shouldBeGenerated: boolean; outputPath: string; }): void;