UNPKG

@mintlify/validation

Version:

Validates mint.json files

17 lines (16 loc) 684 B
import type { OpenAPIV3, OpenAPIV3_1 } from 'openapi-types'; import type { SchemaGraphData } from './types/index.js'; type OpenAPIDocument = OpenAPIV3.Document | OpenAPIV3_1.Document; /** * Converts a SchemaGraphData back to an OpenAPI specification. * Optionally filters to a specific operation if path and method are provided. * * This is the inverse of openApiToSchemaGraph - it reconstructs the original * OpenAPI document from the graph representation. */ export declare function schemaGraphToOpenApi({ schemaGraphData, targetPath, targetMethod, }: { schemaGraphData: SchemaGraphData; targetPath?: string; targetMethod?: string; }): OpenAPIDocument; export {};