interface Spec2 {
    basePath?: string;
    consumes?: string[];
    definitions?: {
        [name: string]: Swagger.Schema2;
    };
    externalDocs?: Swagger.ExternalDocs;
    host?: string;
    info: Swagger.Info;
    parameters?: {
        [name: string]: Swagger.Parameter;
    };
    paths: {
        [name: string]: Swagger.Path;
    };
    produces?: string[];
    responses?: {
        [name: string]: Swagger.Response;
    };
    schemes?: Swagger.Protocol[];
    security?: Swagger.Security[];
    securityDefinitions?: {
        [name: string]: Swagger.SecuritySchemes;
    };
    swagger: "2.0";
    tags?: Swagger.Tag[];
}

Hierarchy (view full)

Properties

basePath?: string
consumes?: string[]
definitions?: {
    [name: string]: Swagger.Schema2;
}

Type declaration

externalDocs?: Swagger.ExternalDocs
host?: string
parameters?: {
    [name: string]: Swagger.Parameter;
}

Type declaration

paths: {
    [name: string]: Swagger.Path;
}

Type declaration

produces?: string[]
responses?: {
    [name: string]: Swagger.Response;
}

Type declaration

schemes?: Swagger.Protocol[]
security?: Swagger.Security[]
securityDefinitions?: {
    [name: string]: Swagger.SecuritySchemes;
}

Type declaration

swagger: "2.0"
tags?: Swagger.Tag[]

Generated using TypeDoc