mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-09 11:40:16 +08:00
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:
1 parent
c2fe3f9af3
commit
cbe236ec27
1 file changed
+5
-3
Vendored
+5
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user