openapi3-ts
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -112,5 +112,3 @@ import { ISpecificationExtension } from "./SpecificationExtension"; | ||
export declare type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; | ||
export interface ParameterObject extends ISpecificationExtension { | ||
name: string; | ||
in: ParameterLocation; | ||
export interface BaseParameterObject extends ISpecificationExtension { | ||
description?: string; | ||
@@ -130,2 +128,6 @@ required?: boolean; | ||
} | ||
export interface ParameterObject extends BaseParameterObject { | ||
name: string; | ||
in: ParameterLocation; | ||
} | ||
export interface RequestBodyObject extends ISpecificationExtension { | ||
@@ -199,3 +201,3 @@ description?: string; | ||
} | ||
export interface HeaderObject extends ParameterObject { | ||
export interface HeaderObject extends BaseParameterObject { | ||
} | ||
@@ -202,0 +204,0 @@ export interface TagObject extends ISpecificationExtension { |
{ | ||
"name": "openapi3-ts", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "TS Model & utils for OpenAPI 3.0.x specification.", | ||
@@ -55,12 +55,12 @@ "main": "dist/index.js", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.11.4", | ||
"@types/node": "^10.11.7", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.2", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.0.1", | ||
"nyc": "^13.1.0", | ||
"rimraf": "^2.6.2", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.1.1" | ||
"typescript": "^3.1.3" | ||
} | ||
} |
@@ -215,5 +215,3 @@ import "mocha"; | ||
let h5: oa.HeaderObject = { | ||
name: "h5", | ||
description: "heaer 5", | ||
in: "header" | ||
description: "header 5" | ||
}; | ||
@@ -220,0 +218,0 @@ let sut = OpenApiBuilder.create().addHeader("h5", h5).rootDoc; |
@@ -147,5 +147,3 @@ // Typed interfaces for OpenAPI 3.0.0-RC | ||
export interface ParameterObject extends ISpecificationExtension { | ||
name: string; | ||
in: ParameterLocation; // "query" | "header" | "path" | "cookie"; | ||
export interface BaseParameterObject extends ISpecificationExtension { | ||
description?: string; | ||
@@ -164,2 +162,7 @@ required?: boolean; | ||
} | ||
export interface ParameterObject extends BaseParameterObject { | ||
name: string; | ||
in: ParameterLocation; // "query" | "header" | "path" | "cookie"; | ||
} | ||
export interface RequestBodyObject extends ISpecificationExtension { | ||
@@ -236,3 +239,3 @@ description?: string; | ||
} | ||
export interface HeaderObject extends ParameterObject { | ||
export interface HeaderObject extends BaseParameterObject { | ||
} | ||
@@ -239,0 +242,0 @@ export interface TagObject extends ISpecificationExtension { |
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
1680
68462
37