express-openapi: fix definition for OpenAPI definition

fix exclusiveMaximuma property is now optional
fix Parameters Object is now array of union type of InBodyParameter,
GeneralParameter and Reference Object
This commit is contained in:
MugeSo
2016-02-16 18:03:17 +09:00
parent c2fe3f9af3
commit cbe236ec27

View File

@@ -180,7 +180,7 @@ declare module "express-openapi" {
collectionFormat?: string
'default'?: any
maximum?: number
exclusiveMaximum: boolean
exclusiveMaximum?: boolean
minimum?: number
exclusiveMinimum?: boolean
maxLength?: number
@@ -197,9 +197,11 @@ declare module "express-openapi" {
[index: string]: ParameterObject
}
type Parameters = (ParameterObject|ReferenceObject)[]
type Parameters = (ReferenceObject|Parameter)[]
export interface ParameterObject {
type Parameter = (InBodyParameterObject|GeneralParameterObject);
interface ParameterObject {
name: string
'in': string
description?: string