diff --git a/src/api.ts b/src/api.ts index fbb25d8..c0cfbba 100644 --- a/src/api.ts +++ b/src/api.ts @@ -179,7 +179,7 @@ export class API implements Swagger { consumes?: string[]; produces?: string[]; definitions?: Swagger.Definitions; - parameters?: Swagger.Parameters; + parameters?: Swagger.ParameterDefinitionObject; responses?: Swagger.Responses; security?: Swagger.Security[]; securityDefinitions?: Swagger.SecurityDefinitions; diff --git a/src/swagger.ts b/src/swagger.ts index a2dba87..bfe5d3b 100644 --- a/src/swagger.ts +++ b/src/swagger.ts @@ -8,7 +8,7 @@ export interface Swagger { consumes?: string[]; produces?: string[]; definitions?: Swagger.Definitions; - parameters?: Swagger.Parameters; + parameters?: Swagger.ParameterDefinitionObject; responses?: Swagger.Responses; security?: Swagger.Security[]; securityDefinitions?: Swagger.SecurityDefinitions; @@ -46,6 +46,10 @@ export namespace Swagger { [key:string]: Swagger.Schema } + export interface ParameterDefinitionObject { + [id: string]: Parameter; + } + export type Parameters = (Parameter | Reference)[]; export interface Path {