UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

16 lines (15 loc) 580 B
import type { OpenApiMediaContentType } from "../types"; import { type BaseInterface } from "./base"; import type { OpenApiMediaType } from "./OpenApiMedia"; export interface OpenApiRequestBody extends BaseInterface { addDescription(description: string): this; addContents(mappings: Partial<{ [K in OpenApiMediaContentType]: OpenApiMediaType; }>): this; addRequired(required: boolean): this; } export declare const RequestBody: { addContents(mappings: Partial<{ [K in OpenApiMediaContentType]: OpenApiMediaType; }>): OpenApiRequestBody; };