@redocly/openapi-core
Advanced tools
Comparing version 1.0.0-beta.129 to 1.0.0-beta.130
@@ -52,2 +52,3 @@ "use strict"; | ||
'spec-strict-refs': 'error', | ||
'component-name-unique': 'error', | ||
}, | ||
@@ -54,0 +55,0 @@ oas3_0Rules: { |
@@ -35,2 +35,3 @@ "use strict"; | ||
'spec-strict-refs': 'off', | ||
'component-name-unique': 'off', | ||
}, | ||
@@ -37,0 +38,0 @@ oas3_0Rules: { |
@@ -35,2 +35,3 @@ "use strict"; | ||
'spec-strict-refs': 'off', | ||
'component-name-unique': 'off', | ||
}, | ||
@@ -37,0 +38,0 @@ oas3_0Rules: { |
@@ -56,2 +56,3 @@ "use strict"; | ||
const spec_strict_refs_1 = require("../common/spec-strict-refs"); | ||
const component_name_unique_1 = require("./component-name-unique"); | ||
exports.rules = { | ||
@@ -111,3 +112,4 @@ spec: spec_1.OasSpec, | ||
'spec-strict-refs': spec_strict_refs_1.SpecStrictRefs, | ||
'component-name-unique': component_name_unique_1.ComponentNameUnique, | ||
}; | ||
exports.preprocessors = {}; |
@@ -75,2 +75,4 @@ "use strict"; | ||
function getSuggest(given, variants) { | ||
if (given === null) | ||
return variants; | ||
if (typeof given !== 'string' || !variants.length) | ||
@@ -131,3 +133,3 @@ return []; | ||
} | ||
if (!schemaEnum.includes(propertyValue === null ? 'null' : propertyValue)) { | ||
if (!schemaEnum.includes(propertyValue)) { | ||
report({ | ||
@@ -134,0 +136,0 @@ location, |
@@ -61,2 +61,3 @@ "use strict"; | ||
'spec-strict-refs', | ||
'component-name-unique', | ||
]; | ||
@@ -63,0 +64,0 @@ const nodeTypesList = [ |
{ | ||
"name": "@redocly/openapi-core", | ||
"version": "1.0.0-beta.129", | ||
"version": "1.0.0-beta.130", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
567908
252
13852