openapi3-ts
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71678
1745