UNPKG

@nestia/sdk

Version:

Nestia SDK and Swagger generator

35 lines (34 loc) 1.11 kB
import { IMetadataComponents, IMetadataSchema, ValidationPipe } from "@typia/interface"; import { IJsDocTagInfo } from "typia"; import { IReflectImport } from "./IReflectImport"; import { IReflectType } from "./IReflectType"; export interface IOperationMetadata { parameters: IOperationMetadata.IParameter[]; success: IOperationMetadata.IResponse; exceptions: IOperationMetadata.IResponse[]; description: string | null; jsDocTags: IJsDocTagInfo[]; } export declare namespace IOperationMetadata { interface IParameter extends IResponse { name: string; index: number; description: string | null; jsDocTags: IJsDocTagInfo[]; } interface IResponse { type: IReflectType | null; imports: IReflectImport[]; primitive: ValidationPipe<ISchema, IError>; resolved: ValidationPipe<ISchema, IError>; } interface ISchema { components: IMetadataComponents; metadata: IMetadataSchema; } interface IError { name: string; accessor: string | null; messages: string[]; } }