@mintlify/validation
Version:
Validates mint.json files
13 lines (12 loc) • 1.12 kB
TypeScript
import { OpenAPIV3_1 } from 'openapi-types';
import { SimpleSchema } from './IncrementalEvaluator.js';
import { DataSchema } from './types/endpoint.js';
export declare const stringFileFormats: string[];
export declare const structuredDataContentTypes: string[];
type ComponentsSection = keyof OpenAPIV3_1.ComponentsObject;
export declare function dereference<S extends ComponentsSection>(section: S, $ref: string, components: Record<string, NonNullable<OpenAPIV3_1.ComponentsObject[S]>[string]> | undefined, maxDepth?: number): NonNullable<OpenAPIV3_1.ComponentsObject[S]>[string] | undefined;
export declare const addKeyIfDefined: <D, K extends keyof D>(key: K, value: D[K] | undefined, destination: D) => void;
export declare const copyKeyIfDefined: <D, K extends keyof D>(key: K, source: Pick<D, K>, destination: D) => void;
export declare const copyExampleIfDefined: (source: Pick<OpenAPIV3_1.SchemaObject, "example" | "examples">, destination: Pick<DataSchema, "example">) => void;
export declare function recursivelyFindDescription(schema: SimpleSchema, name: string | undefined): string | undefined;
export {};