UNPKG

openapi-route-expander

Version:

A utility for resolving $ref in OpenAPI YAML routes, generating new YAML files without $ref, ready for OpenAPI processing.

6 lines (5 loc) 521 B
export declare function extractFileName(filePath: string): string; export declare function replaceRelativeToAbsolutePath<T extends Record<string, unknown>>(json: T, basePath: string, fileName: string): T; export declare function mergeNestedPaths<T extends Record<string, unknown>>(paths: T, filePath: string, pathPrefix?: string): T; export declare function fixOpenApiAbsoluteRoute<T extends Record<string, unknown>>(json: T, basePath: string): T; export declare function fixOpenApiYamlStringIssue(yaml: string): string;