Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@redocly/openapi-core

Package Overview
Dependencies
Maintainers
9
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redocly/openapi-core - npm Package Compare versions

Comparing version 1.0.0-beta.129 to 1.0.0-beta.130

lib/rules/oas3/component-name-unique.d.ts

1

lib/config/all.js

@@ -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 = {};

4

lib/rules/utils.js

@@ -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",

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