oas-linter
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -94,2 +94,9 @@ 'use strict'; | ||
} | ||
if (rule.if) { | ||
let property = (rule.if.property === '$key') ? key : object[rule.if.property]; | ||
if (property) { | ||
let thenProp = (rule.if.then.property === '$key') ? key : object[rule.if.then.property]; | ||
should(thenProp).equal(rule.if.then.value); | ||
} | ||
} | ||
// TODO speccy defines a maxLength rule { property: string, value: integer } | ||
@@ -96,0 +103,0 @@ } |
{ | ||
"name": "oas-linter", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Default linter plugin for oas-validator", | ||
@@ -18,6 +18,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"js-yaml": "^3.11.0", | ||
"js-yaml": "^3.12.0", | ||
"should": "^13.2.1" | ||
}, | ||
"gitHead": "c0080cde40d45cde9a972918668aec899b49834b" | ||
"gitHead": "4862e159745d6ca06044bc3ebabe57a2ad8b7152" | ||
} |
Sorry, the diff of this file is not supported yet
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
9674
104
Updatedjs-yaml@^3.12.0