UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

17 lines (16 loc) 715 B
import type { OpenApiSchema } from "../schema/OpenApiSchema"; import { type BaseInterface } from "./base"; import type { OpenApiEncoding } from "./OpenApiEncoding"; import type { OpenApiExample } from "./OpenApiExample"; import type { OpenApiReferenceObject } from "./OpenApiReferenceObject"; export interface OpenApiMediaType extends BaseInterface { addSchema(schema: OpenApiSchema | OpenApiReferenceObject): this; addExample(example: any): this; addExamples(mappings: Partial<{ [K in string]: OpenApiExample | OpenApiReferenceObject; }>): this; addEncodings(mappings: Partial<{ [K in string]: OpenApiEncoding; }>): this; } export declare const MediaType: OpenApiMediaType;