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

openapi-police

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-police - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

57

dist/types.d.ts

@@ -59,3 +59,3 @@ export declare namespace OpenAPIV3 {

servers?: ServerObject[];
parameters?: Array<ParameterObject>;
parameters?: Array<ReferenceObject | ParameterObject>;
}

@@ -68,7 +68,7 @@ interface OperationObject {

operationId?: string;
parameters?: Array<ParameterObject>;
requestBody?: RequestBodyObject;
parameters?: Array<ReferenceObject | ParameterObject>;
requestBody?: ReferenceObject | RequestBodyObject;
responses?: ResponsesObject;
callbacks?: {
[callback: string]: CallbackObject;
[callback: string]: ReferenceObject | CallbackObject;
};

@@ -97,6 +97,6 @@ deprecated?: boolean;

allowReserved?: boolean;
schema?: SchemaObject;
schema?: ReferenceObject | SchemaObject;
example?: any;
examples?: {
[media: string]: ExampleObject;
[media: string]: ReferenceObject | ExampleObject;
};

@@ -122,3 +122,3 @@ content?: {

pattern?: string;
additionalProperties?: SchemaObject;
additionalProperties?: ReferenceObject | SchemaObject;
maxItems?: number;

@@ -133,8 +133,8 @@ minItems?: number;

properties?: {
[name: string]: SchemaObject;
[name: string]: ReferenceObject | SchemaObject;
};
allOf?: Array<SchemaObject>;
oneOf?: Array<SchemaObject>;
anyOf?: Array<SchemaObject>;
not?: SchemaObject;
allOf?: Array<ReferenceObject | SchemaObject>;
oneOf?: Array<ReferenceObject | SchemaObject>;
anyOf?: Array<ReferenceObject | SchemaObject>;
not?: ReferenceObject | SchemaObject;
nullable?: boolean;

@@ -162,2 +162,5 @@ discriminator?: DiscriminatorObject;

}
interface ReferenceObject {
$ref: string;
}
interface ExampleObject {

@@ -170,6 +173,6 @@ summary?: string;

interface MediaTypeObject {
schema?: SchemaObject;
schema?: ReferenceObject | SchemaObject;
example?: any;
examples?: {
[media: string]: ExampleObject;
[media: string]: ReferenceObject | ExampleObject;
};

@@ -183,3 +186,3 @@ encoding?: {

headers?: {
[header: string]: HeaderObject;
[header: string]: ReferenceObject | HeaderObject;
};

@@ -198,3 +201,3 @@ style?: string;

interface ResponsesObject {
[code: string]: ResponseObject;
[code: string]: ReferenceObject | ResponseObject;
}

@@ -204,3 +207,3 @@ interface ResponseObject {

headers?: {
[header: string]: HeaderObject;
[header: string]: ReferenceObject | HeaderObject;
};

@@ -211,3 +214,3 @@ content?: {

links?: {
[link: string]: LinkObject;
[link: string]: ReferenceObject | LinkObject;
};

@@ -233,27 +236,27 @@ }

schemas?: {
[key: string]: SchemaObject;
[key: string]: ReferenceObject | SchemaObject;
};
responses?: {
[key: string]: ResponseObject;
[key: string]: ReferenceObject | ResponseObject;
};
parameters?: {
[key: string]: ParameterObject;
[key: string]: ReferenceObject | ParameterObject;
};
examples?: {
[key: string]: ExampleObject;
[key: string]: ReferenceObject | ExampleObject;
};
requestBodies?: {
[key: string]: RequestBodyObject;
[key: string]: ReferenceObject | RequestBodyObject;
};
headers?: {
[key: string]: HeaderObject;
[key: string]: ReferenceObject | HeaderObject;
};
securitySchemes?: {
[key: string]: SecuritySchemeObject;
[key: string]: ReferenceObject | SecuritySchemeObject;
};
links?: {
[key: string]: LinkObject;
[key: string]: ReferenceObject | LinkObject;
};
callbacks?: {
[key: string]: CallbackObject;
[key: string]: ReferenceObject | CallbackObject;
};

@@ -260,0 +263,0 @@ }

{
"name": "openapi-police",
"version": "1.0.1",
"version": "1.0.2",
"description": "OpenAPI v3 validators and utilities",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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