1 | import { Type } from '@nestjs/common';
|
2 | import { ExamplesObject, ReferenceObject, RequestBodyObject, SchemaObject } from '../interfaces/open-api-spec.interface';
|
3 | import { SwaggerEnumType } from '../types/swagger-enum.type';
|
4 | type RequestBodyOptions = Omit<RequestBodyObject, 'content'>;
|
5 | interface ApiBodyMetadata extends RequestBodyOptions {
|
6 | type?: Type<unknown> | Function | [Function] | string;
|
7 | isArray?: boolean;
|
8 | enum?: SwaggerEnumType;
|
9 | }
|
10 | interface ApiBodySchemaHost extends RequestBodyOptions {
|
11 | schema: SchemaObject | ReferenceObject;
|
12 | examples?: ExamplesObject;
|
13 | }
|
14 | export type ApiBodyOptions = ApiBodyMetadata | ApiBodySchemaHost;
|
15 | export declare function ApiBody(options: ApiBodyOptions): MethodDecorator;
|
16 | export {};
|