openapi-types
Advanced tools
Comparing version 1.3.5 to 7.0.0
@@ -5,3 +5,3 @@ export declare namespace OpenAPI { | ||
type Parameter = OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject | OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter; | ||
type Parameters = Array<OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject> | Array<OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter>; | ||
type Parameters = (OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject)[] | (OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter)[]; | ||
interface Request { | ||
@@ -24,2 +24,4 @@ body?: any; | ||
externalDocs?: ExternalDocumentationObject; | ||
'x-express-openapi-additional-middleware'?: (((request: any, response: any, next: any) => Promise<void>) | ((request: any, response: any, next: any) => void))[]; | ||
'x-express-openapi-validation-strict'?: boolean; | ||
} | ||
@@ -71,3 +73,3 @@ interface InfoObject { | ||
servers?: ServerObject[]; | ||
parameters?: Array<ReferenceObject | ParameterObject>; | ||
parameters?: (ReferenceObject | ParameterObject)[]; | ||
} | ||
@@ -80,3 +82,3 @@ interface OperationObject { | ||
operationId?: string; | ||
parameters?: Array<ReferenceObject | ParameterObject>; | ||
parameters?: (ReferenceObject | ParameterObject)[]; | ||
requestBody?: ReferenceObject | RequestBodyObject; | ||
@@ -118,3 +120,3 @@ responses?: ResponsesObject; | ||
} | ||
type NonArraySchemaObjectType = 'null' | 'boolean' | 'object' | 'number' | 'string' | 'integer'; | ||
type NonArraySchemaObjectType = 'boolean' | 'object' | 'number' | 'string' | 'integer'; | ||
type ArraySchemaObjectType = 'array'; | ||
@@ -127,3 +129,3 @@ type SchemaObject = ArraySchemaObject | NonArraySchemaObject; | ||
interface NonArraySchemaObject extends BaseSchemaObject { | ||
type: NonArraySchemaObjectType; | ||
type?: NonArraySchemaObjectType; | ||
} | ||
@@ -154,5 +156,5 @@ interface BaseSchemaObject { | ||
}; | ||
allOf?: Array<ReferenceObject | SchemaObject>; | ||
oneOf?: Array<ReferenceObject | SchemaObject>; | ||
anyOf?: Array<ReferenceObject | SchemaObject>; | ||
allOf?: (ReferenceObject | SchemaObject)[]; | ||
oneOf?: (ReferenceObject | SchemaObject)[]; | ||
anyOf?: (ReferenceObject | SchemaObject)[]; | ||
not?: ReferenceObject | SchemaObject; | ||
@@ -351,2 +353,4 @@ nullable?: boolean; | ||
tags?: TagObject[]; | ||
'x-express-openapi-additional-middleware'?: (((request: any, response: any, next: any) => Promise<void>) | ((request: any, response: any, next: any) => void))[]; | ||
'x-express-openapi-validation-strict'?: boolean; | ||
} | ||
@@ -375,2 +379,3 @@ interface TagObject { | ||
interface SecuritySchemeOauth2Base extends SecuritySchemeObjectBase { | ||
type: 'oauth2'; | ||
flow: 'implicit' | 'password' | 'application' | 'accessCode'; | ||
@@ -448,5 +453,5 @@ scopes: ScopesObject; | ||
[index: string]: Response | any; | ||
default: Response; | ||
default?: Response; | ||
} | ||
type Parameters = Array<ReferenceObject | Parameter>; | ||
type Parameters = (ReferenceObject | Parameter)[]; | ||
type Parameter = InBodyParameterObject | GeneralParameterObject; | ||
@@ -453,0 +458,0 @@ interface InBodyParameterObject extends ParameterObject { |
{ | ||
"name": "openapi-types", | ||
"version": "1.3.5", | ||
"version": "7.0.0", | ||
"description": "Types for OpenAPI documents.", | ||
@@ -8,5 +8,4 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"prepare": "tsc", | ||
"test-watch": "tsc", | ||
"travis-test": "tsc" | ||
"prepare": "../../bin/tsc", | ||
"test-watch": "../../bin/tsc" | ||
}, | ||
@@ -25,3 +24,4 @@ "keywords": [ | ||
"homepage": "https://github.com/kogosoftwarellc/open-api/tree/master/packages/openapi-types#readme", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "f5ec9959092d45193e9b6464501c143cb17aaaf7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117286
8
589