interface IDocument {
    basePath?: string;
    consumes?: string[];
    definitions?: Record<string, SwaggerV2.IJsonSchema>;
    host?: string;
    info?: SwaggerV2.IDocument.IInfo;
    parameters?: Record<string, SwaggerV2.IOperation.IParameter>;
    paths?: Record<string, SwaggerV2.IPath>;
    produces?: string[];
    responses?: Record<string, SwaggerV2.IOperation.IResponse>;
    security?: Record<string, string[]>[];
    securityDefinitions?: Record<string, SwaggerV2.ISecurityDefinition>;
    swagger: `2.0.${number}` | "2.0";
    tags?: SwaggerV2.IDocument.ITag[];
}

Properties

basePath?: string
consumes?: string[]
definitions?: Record<string, SwaggerV2.IJsonSchema>
host?: string
parameters?: Record<string, SwaggerV2.IOperation.IParameter>
paths?: Record<string, SwaggerV2.IPath>
produces?: string[]
responses?: Record<string, SwaggerV2.IOperation.IResponse>
security?: Record<string, string[]>[]
securityDefinitions?: Record<string, SwaggerV2.ISecurityDefinition>
swagger: `2.0.${number}` | "2.0"