openapi-enforcer
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -29,2 +29,3 @@ /** | ||
if (this.hasOwnProperty('examples') && this.hasOwnProperty('schema')) { | ||
const child = exception.at('examples'); | ||
Object.keys(this.examples) | ||
@@ -37,3 +38,3 @@ .forEach(contentType => { | ||
if (!error) error = this.schema.validate(value); | ||
if (error) exception.at(contentType).push(error); | ||
if (error) child.at(contentType).push(error); | ||
Object.defineProperty(this.examples, contentType, { | ||
@@ -40,0 +41,0 @@ configurable: true, |
{ | ||
"name": "openapi-enforcer", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Library for validating, parsing, and formatting data against open api schemas.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15544
735181
84