parse-openapi
Version:
OpenAPI v3 parser
8 lines (7 loc) • 309 B
TypeScript
import type { Dictionary } from '../types';
import type { OpenApi, OpenApiMediaType, OpenApiSchema } from '../OpenApi';
export interface Content {
mediaType: string;
schema: OpenApiSchema;
}
export declare const getContent: (openApi: OpenApi, content: Dictionary<OpenApiMediaType>) => Content | null;