mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00: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:
8
express-openapi/express-openapi.d.ts
vendored
8
express-openapi/express-openapi.d.ts
vendored
@@ -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