@nestjs/swagger
Version:
Nest - modern, fast, powerful node.js web framework (@swagger)
18 lines (17 loc) • 1.11 kB
TypeScript
import { ApiResponseSchemaHost } from '../decorators';
export declare class ResponseObjectMapper {
private readonly mimetypeContentWrapper;
toArrayRefObject(response: Record<string, any>, name: string, produces: string[]): {
content: Record<string, import("../interfaces/open-api-spec.interface").MediaTypeObject>;
};
toRefObject(response: Record<string, any>, name: string, produces: string[]): {
content: Record<string, import("../interfaces/open-api-spec.interface").MediaTypeObject>;
};
wrapSchemaWithContent(response: ApiResponseSchemaHost, produces: string[]): ApiResponseSchemaHost | {
content: Record<string, import("../interfaces/open-api-spec.interface").MediaTypeObject>;
description?: string;
headers?: Record<string, import("../interfaces/open-api-spec.interface").ReferenceObject | import("../interfaces/open-api-spec.interface").HeaderObject>;
links?: Record<string, import("../interfaces/open-api-spec.interface").ReferenceObject | import("../interfaces/open-api-spec.interface").LinkObject>;
status?: number;
};
}