UNPKG

@imgly/plugin-ai-generation-web

Version:

AI generation plugin for the CE.SDK editor

15 lines (14 loc) 645 B
import { type OpenAPIV3 } from 'openapi-types'; /** * Resolves a JSON reference path within a document * @param document The OpenAPI document * @param refPath The reference path (e.g. "#/components/schemas/MySchema") * @returns The resolved object from the document */ export declare function resolveReference(document: OpenAPIV3.Document, refPath: string): unknown; /** * Dereferences all $ref properties in an OpenAPI document * @param document The OpenAPI document to dereference * @returns A new document with all references resolved */ export default function dereferenceDocument(document: OpenAPIV3.Document): OpenAPIV3.Document;