@nestia/sdk
Version:
Nestia SDK and Swagger generator
42 lines (41 loc) • 1.43 kB
TypeScript
import { IJsDocTagInfo } from "typia";
import { IMetadata } from "typia/lib/schemas/metadata/IMetadata";
import { IMetadataComponents } from "typia/lib/schemas/metadata/IMetadataComponents";
import { ValidationPipe } from "typia/lib/typings/ValidationPipe";
import { IReflectType } from "../structures/IReflectType";
import { IReflectTypeImport } from "../structures/IReflectTypeImport";
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: IReflectTypeImport[];
primitive: ValidationPipe<ISchema, IError>;
resolved: ValidationPipe<ISchema, IError>;
}
interface IException {
type: IReflectType | null;
imports: IReflectTypeImport[];
primitive: ValidationPipe<ISchema, IError>;
}
interface ISchema {
components: IMetadataComponents;
metadata: IMetadata;
}
interface IError {
name: string;
accessor: string | null;
messages: string[];
}
}