Socket
Socket
Sign inDemoInstall

openapi3-ts

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi3-ts - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

dist/model/OpenApi.d.ts

@@ -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 {

8

package.json
{
"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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc