openapi3-ts
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -98,4 +98,4 @@ import { ISpecificationExtension } from "./SpecificationExtension"; | ||
operationId?: string; | ||
parameters?: [ParameterObject | ReferenceObject]; | ||
requestBody?: [RequestBodyObject | ReferenceObject]; | ||
parameters?: (ParameterObject | ReferenceObject)[]; | ||
requestBody?: RequestBodyObject | ReferenceObject; | ||
responses: ResponsesObject; | ||
@@ -122,4 +122,6 @@ callbacks?: CallbacksObject; | ||
schema?: SchemaObject | ReferenceObject; | ||
examples?: [ExampleObject | ReferenceObject]; | ||
example?: ExampleObject | ReferenceObject; | ||
examples?: { | ||
[param: string]: ExampleObject | ReferenceObject; | ||
}; | ||
example?: any; | ||
content?: ContentObject; | ||
@@ -155,3 +157,3 @@ } | ||
export interface ResponsesObject extends ISpecificationExtension { | ||
default: ResponseObject | ReferenceObject; | ||
default?: ResponseObject | ReferenceObject; | ||
[statuscode: string]: ResponseObject | ReferenceObject | any; | ||
@@ -158,0 +160,0 @@ } |
{ | ||
"name": "openapi3-ts", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "TS Model & utils for OpenAPI 3.0.x specification.", | ||
@@ -16,2 +16,3 @@ "main": "dist/index.js", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"prepare": "npm run build", | ||
"test:tdd": "mocha --recursive --reporter min --compilers ts:ts-node/register --require source-map-support/register \"src/**/*.spec.ts\" --watch", | ||
@@ -18,0 +19,0 @@ "test": "mocha --recursive --compilers ts:ts-node/register --require source-map-support/register \"src/**/*.spec.ts\"", |
@@ -79,4 +79,4 @@ // Typed interfaces for OpenAPI 3.0.0-RC | ||
operationId?: string; | ||
parameters?: [ ParameterObject | ReferenceObject ]; | ||
requestBody?: [ RequestBodyObject | ReferenceObject ]; | ||
parameters?: (ParameterObject | ReferenceObject)[]; | ||
requestBody?: RequestBodyObject | ReferenceObject; | ||
responses: ResponsesObject; | ||
@@ -104,4 +104,4 @@ callbacks?: CallbacksObject; | ||
schema?: SchemaObject | ReferenceObject; | ||
examples?: [ ExampleObject | ReferenceObject ]; | ||
example?: ExampleObject | ReferenceObject; | ||
examples?: { [param: string]: ExampleObject | ReferenceObject }; | ||
example?: any; | ||
content?: ContentObject; | ||
@@ -136,3 +136,3 @@ } | ||
export interface ResponsesObject extends ISpecificationExtension { | ||
default: ResponseObject | ReferenceObject; | ||
default?: ResponseObject | ReferenceObject; | ||
@@ -139,0 +139,0 @@ // [statuscode: string]: ResponseObject | ReferenceObject; |
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
124761
1463