fluid-oas
Version:
Build declarative OpenApiv3.* specifications.
22 lines (21 loc) • 865 B
TypeScript
import type { OpenApiMediaContentType } from "../types";
import { type BaseInterface } from "./base";
import type { OpenApiHeader } from "./OpenApiHeader";
import type { OpenApiLink } from "./OpenApiLink";
import type { OpenApiMediaType } from "./OpenApiMedia";
import type { OpenApiReferenceObject } from "./OpenApiReferenceObject";
export interface OpenApiResponse extends BaseInterface {
addDescription(description: string): this;
addHeaders(mappings: Partial<{
[K in string]: OpenApiHeader | OpenApiReferenceObject;
}>): this;
addContents(mappings: Partial<{
[K in OpenApiMediaContentType]: OpenApiMediaType;
}>): this;
addLinks(mappings: Partial<{
[K in string]: OpenApiLink | OpenApiReferenceObject;
}>): this;
}
export declare const Response: {
addDescription(description: string): OpenApiResponse;
};