Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-types

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-types - npm Package Compare versions

Comparing version 1.3.5 to 7.0.0

dist/tsconfig.tsbuildinfo

25

dist/index.d.ts

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

10

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