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 1.1.0 to 1.2.0

6

dist/model/OpenApi.d.ts

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

schema?: SchemaObject | ReferenceObject;
examples?: [ExampleObject | ReferenceObject];
example?: ExampleObject | ReferenceObject;
examples?: ExamplesObject;
example?: any;
encoding?: EncodingObject;

@@ -209,3 +209,3 @@ }

export interface ExamplesObject {
[name: string]: any;
[name: string]: ExampleObject | ReferenceObject;
}

@@ -212,0 +212,0 @@ export interface ReferenceObject {

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

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

@@ -231,5 +231,7 @@ import "mocha";

},
"examples": [{
"$ref": "http://foo.bar/examples/user-example.json"
}]
"examples": {
user: {
"$ref": "http://foo.bar/examples/user-example.json"
}
}
}

@@ -236,0 +238,0 @@ },

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

schema?: SchemaObject | ReferenceObject;
examples?: [ ExampleObject | ReferenceObject ];
example?: ExampleObject | ReferenceObject;
examples?: ExamplesObject;
example?: any;
encoding?: EncodingObject;

@@ -247,3 +247,3 @@ }

export interface ExamplesObject {
[name: string]: any;
[name: string]: ExampleObject | ReferenceObject;
}

@@ -250,0 +250,0 @@ export interface 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