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 7.2.2 to 7.2.3

66

dist/index.d.ts
export declare namespace OpenAPI {
type Document = OpenAPIV2.Document | OpenAPIV3.Document;
type Operation = OpenAPIV2.OperationObject | OpenAPIV3.OperationObject;
type Document<T extends {} = {}> = OpenAPIV2.Document<T> | OpenAPIV3.Document<T>;
type Operation<T extends {} = {}> = OpenAPIV2.OperationObject<T> | OpenAPIV3.OperationObject<T>;
type Parameter = OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject | OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter;

@@ -14,7 +14,7 @@ type Parameters = (OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject)[] | (OpenAPIV2.ReferenceObject | OpenAPIV2.Parameter)[];

export declare namespace OpenAPIV3 {
interface Document {
interface Document<T extends {} = {}> {
openapi: string;
info: InfoObject;
servers?: ServerObject[];
paths: PathsObject;
paths: PathsObject<T>;
components?: ComponentsObject;

@@ -56,21 +56,21 @@ security?: SecurityRequirementObject[];

}
interface PathsObject {
[pattern: string]: PathItemObject | undefined;
interface PathsObject<T extends {} = {}> {
[pattern: string]: PathItemObject<T> | undefined;
}
interface PathItemObject {
interface PathItemObject<T extends {} = {}> {
$ref?: string;
summary?: string;
description?: string;
get?: OperationObject;
put?: OperationObject;
post?: OperationObject;
delete?: OperationObject;
options?: OperationObject;
head?: OperationObject;
patch?: OperationObject;
trace?: OperationObject;
get?: OperationObject<T>;
put?: OperationObject<T>;
post?: OperationObject<T>;
delete?: OperationObject<T>;
options?: OperationObject<T>;
head?: OperationObject<T>;
patch?: OperationObject<T>;
trace?: OperationObject<T>;
servers?: ServerObject[];
parameters?: (ReferenceObject | ParameterObject)[];
}
interface OperationObject {
type OperationObject<T extends {} = {}> = {
tags?: string[];

@@ -90,4 +90,3 @@ summary?: string;

servers?: ServerObject[];
[extension: string]: unknown;
}
} & T;
interface ExternalDocumentationObject {

@@ -334,3 +333,3 @@ description?: string;

export declare namespace OpenAPIV2 {
interface Document {
interface Document<T extends {} = {}> {
basePath?: string;

@@ -343,3 +342,3 @@ consumes?: MimeTypes;

parameters?: ParametersDefinitionsObject;
paths: PathsObject;
paths: PathsObject<T>;
produces?: MimeTypes;

@@ -433,3 +432,3 @@ responses?: ResponsesDefinitionsObject;

}
interface OperationObject {
type OperationObject<T extends {} = {}> = {
tags?: string[];

@@ -447,4 +446,3 @@ summary?: string;

security?: SecurityRequirementObject[];
[index: string]: any;
}
} & T;
interface ResponsesObject {

@@ -462,16 +460,16 @@ [index: string]: Response | any;

}
interface PathItemObject {
interface PathItemObject<T extends {} = {}> {
$ref?: string;
get?: OperationObject;
put?: OperationObject;
post?: OperationObject;
del?: OperationObject;
delete?: OperationObject;
options?: OperationObject;
head?: OperationObject;
patch?: OperationObject;
get?: OperationObject<T>;
put?: OperationObject<T>;
post?: OperationObject<T>;
del?: OperationObject<T>;
delete?: OperationObject<T>;
options?: OperationObject<T>;
head?: OperationObject<T>;
patch?: OperationObject<T>;
parameters?: Parameters;
}
interface PathsObject {
[index: string]: PathItemObject | any;
interface PathsObject<T extends {} = {}> {
[index: string]: PathItemObject<T> | any;
}

@@ -478,0 +476,0 @@ interface ParametersDefinitionsObject {

{
"name": "openapi-types",
"version": "7.2.2",
"version": "7.2.3",
"description": "Types for OpenAPI documents.",

@@ -24,3 +24,3 @@ "main": "./dist/index.js",

"license": "MIT",
"gitHead": "db26bb847dabc2a17ac4f4f548d8cc47d48aaab7"
"gitHead": "25d0114680050efe3b4f9b7d0cca9f9e88057daa"
}
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