openapi-types
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -7,2 +7,6 @@ # openapi-types Changelog | ||
## 1.3.3 - 2019-01-22 | ||
### Fixed | ||
- Allowing to set a property of BaseSchemaObject as a reference to another SchemaObject (#312) | ||
## 1.3.2 - 2018-10-17 | ||
@@ -9,0 +13,0 @@ ### Added |
@@ -52,3 +52,3 @@ export declare namespace OpenAPI { | ||
enum?: string[]; | ||
'default': string; | ||
default: string; | ||
description?: string; | ||
@@ -72,3 +72,3 @@ } | ||
servers?: ServerObject[]; | ||
parameters?: (ReferenceObject | ParameterObject)[]; | ||
parameters?: Array<ReferenceObject | ParameterObject>; | ||
} | ||
@@ -81,4 +81,4 @@ interface OperationObject { | ||
operationId?: string; | ||
parameters?: (ReferenceObject | ParameterObject)[]; | ||
requestBody?: (ReferenceObject | RequestBodyObject); | ||
parameters?: Array<ReferenceObject | ParameterObject>; | ||
requestBody?: ReferenceObject | RequestBodyObject; | ||
responses?: ResponsesObject; | ||
@@ -133,3 +133,3 @@ callbacks?: { | ||
format?: string; | ||
'default'?: any; | ||
default?: any; | ||
multipleOf?: number; | ||
@@ -150,10 +150,10 @@ maximum?: number; | ||
required?: string[]; | ||
'enum'?: any[]; | ||
enum?: any[]; | ||
properties?: { | ||
[name: string]: SchemaObject; | ||
[name: string]: ReferenceObject | SchemaObject; | ||
}; | ||
allOf?: (ReferenceObject | SchemaObject)[]; | ||
oneOf?: (ReferenceObject | SchemaObject)[]; | ||
anyOf?: (ReferenceObject | SchemaObject)[]; | ||
not?: (ReferenceObject | SchemaObject); | ||
allOf?: Array<ReferenceObject | SchemaObject>; | ||
oneOf?: Array<ReferenceObject | SchemaObject>; | ||
anyOf?: Array<ReferenceObject | SchemaObject>; | ||
not?: ReferenceObject | SchemaObject; | ||
nullable?: boolean; | ||
@@ -217,3 +217,3 @@ discriminator?: DiscriminatorObject; | ||
interface ResponsesObject { | ||
[code: string]: (ReferenceObject | ResponseObject); | ||
[code: string]: ReferenceObject | ResponseObject; | ||
} | ||
@@ -450,6 +450,6 @@ interface ResponseObject { | ||
[index: string]: Response | any; | ||
'default': Response; | ||
default: Response; | ||
} | ||
type Parameters = (ReferenceObject | Parameter)[]; | ||
type Parameter = (InBodyParameterObject | GeneralParameterObject); | ||
type Parameters = Array<ReferenceObject | Parameter>; | ||
type Parameter = InBodyParameterObject | GeneralParameterObject; | ||
interface InBodyParameterObject extends ParameterObject { | ||
@@ -467,3 +467,3 @@ schema: Schema; | ||
del?: OperationObject; | ||
'delete'?: OperationObject; | ||
delete?: OperationObject; | ||
options?: OperationObject; | ||
@@ -482,3 +482,3 @@ head?: OperationObject; | ||
name: string; | ||
'in': string; | ||
in: string; | ||
description?: string; | ||
@@ -515,3 +515,3 @@ required?: boolean; | ||
collectionFormat?: string; | ||
'default'?: any; | ||
default?: any; | ||
maximum?: number; | ||
@@ -527,3 +527,3 @@ exclusiveMaximum?: boolean; | ||
uniqueItems?: boolean; | ||
'enum'?: any[]; | ||
enum?: any[]; | ||
multipleOf?: number; | ||
@@ -592,3 +592,3 @@ $ref?: string; | ||
}; | ||
'enum'?: any[]; | ||
enum?: any[]; | ||
type?: string | string[]; | ||
@@ -595,0 +595,0 @@ allOf?: IJsonSchema[]; |
{ | ||
"name": "openapi-types", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Types for OpenAPI documents.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
21365