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

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 0.4.1 to 0.5.0

12

dist/model/OpenApi.d.ts

@@ -98,4 +98,4 @@ import { ISpecificationExtension } from "./SpecificationExtension";

operationId?: string;
parameters?: [ParameterObject | ReferenceObject];
requestBody?: [RequestBodyObject | ReferenceObject];
parameters?: (ParameterObject | ReferenceObject)[];
requestBody?: RequestBodyObject | ReferenceObject;
responses: ResponsesObject;

@@ -122,4 +122,6 @@ callbacks?: CallbacksObject;

schema?: SchemaObject | ReferenceObject;
examples?: [ExampleObject | ReferenceObject];
example?: ExampleObject | ReferenceObject;
examples?: {
[param: string]: ExampleObject | ReferenceObject;
};
example?: any;
content?: ContentObject;

@@ -155,3 +157,3 @@ }

export interface ResponsesObject extends ISpecificationExtension {
default: ResponseObject | ReferenceObject;
default?: ResponseObject | ReferenceObject;
[statuscode: string]: ResponseObject | ReferenceObject | any;

@@ -158,0 +160,0 @@ }

{
"name": "openapi3-ts",
"version": "0.4.1",
"version": "0.5.0",
"description": "TS Model & utils for OpenAPI 3.0.x specification.",

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

"lint": "tslint -c tslint.json 'src/**/*.ts'",
"prepare": "npm run build",
"test:tdd": "mocha --recursive --reporter min --compilers ts:ts-node/register --require source-map-support/register \"src/**/*.spec.ts\" --watch",

@@ -18,0 +19,0 @@ "test": "mocha --recursive --compilers ts:ts-node/register --require source-map-support/register \"src/**/*.spec.ts\"",

@@ -79,4 +79,4 @@ // Typed interfaces for OpenAPI 3.0.0-RC

operationId?: string;
parameters?: [ ParameterObject | ReferenceObject ];
requestBody?: [ RequestBodyObject | ReferenceObject ];
parameters?: (ParameterObject | ReferenceObject)[];
requestBody?: RequestBodyObject | ReferenceObject;
responses: ResponsesObject;

@@ -104,4 +104,4 @@ callbacks?: CallbacksObject;

schema?: SchemaObject | ReferenceObject;
examples?: [ ExampleObject | ReferenceObject ];
example?: ExampleObject | ReferenceObject;
examples?: { [param: string]: ExampleObject | ReferenceObject };
example?: any;
content?: ContentObject;

@@ -136,3 +136,3 @@ }

export interface ResponsesObject extends ISpecificationExtension {
default: ResponseObject | ReferenceObject;
default?: ResponseObject | ReferenceObject;

@@ -139,0 +139,0 @@ // [statuscode: string]: ResponseObject | ReferenceObject;

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