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
177
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.25.0 to 1.25.1

6

CHANGELOG.md
# @redocly/openapi-core
## 1.25.1
### Patch Changes
- Added additional checks to `criteria-unique` Arazzo rule.
## 1.25.0

@@ -4,0 +10,0 @@

2

lib/config/config.js

@@ -42,3 +42,3 @@ "use strict";

[oas_types_1.SpecVersion.Arazzo]: {
...rawConfig.arazzoRules,
...(rawConfig.arazzoRules || {}),
...(rawConfig.rules?.assertions ? { assertions: rawConfig.rules.assertions } : {}),

@@ -45,0 +45,0 @@ },

@@ -8,3 +8,6 @@ "use strict";

enter(action, { report, location }) {
const criterias = action.criteria;
const criterias = action?.criteria;
if (!Array.isArray(criterias)) {
return;
}
const seen = new Set();

@@ -27,3 +30,6 @@ for (const criteria of criterias) {

enter(action, { report, location }) {
const criterias = action.criteria;
const criterias = action?.criteria;
if (!Array.isArray(criterias)) {
return;
}
const seen = new Set();

@@ -46,6 +52,6 @@ for (const criteria of criterias) {

enter(step, { report, location }) {
if (!step.successCriteria) {
const successCriterias = step?.successCriteria;
if (!Array.isArray(successCriterias)) {
return;
}
const successCriterias = step.successCriteria;
const seen = new Set();

@@ -52,0 +58,0 @@ for (const criteria of successCriterias) {

{
"name": "@redocly/openapi-core",
"version": "1.25.0",
"version": "1.25.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -77,3 +77,3 @@ import * as fs from 'fs';

[SpecVersion.Arazzo]: {
...rawConfig.arazzoRules,
...(rawConfig.arazzoRules || {}),
...(rawConfig.rules?.assertions ? { assertions: rawConfig.rules.assertions } : {}),

@@ -80,0 +80,0 @@ },

@@ -8,3 +8,6 @@ import type { ArazzoRule } from '../../visitors';

enter(action, { report, location }: UserContext) {
const criterias = action.criteria;
const criterias = action?.criteria;
if (!Array.isArray(criterias)) {
return;
}
const seen = new Set<string>();

@@ -26,3 +29,6 @@ for (const criteria of criterias) {

enter(action, { report, location }: UserContext) {
const criterias = action.criteria;
const criterias = action?.criteria;
if (!Array.isArray(criterias)) {
return;
}
const seen = new Set<string>();

@@ -44,7 +50,8 @@ for (const criteria of criterias) {

enter(step, { report, location }: UserContext) {
if (!step.successCriteria) {
const successCriterias = step?.successCriteria;
if (!Array.isArray(successCriterias)) {
return;
}
const successCriterias = step.successCriteria;
const seen = new Set<string>();

@@ -51,0 +58,0 @@

Sorry, the diff of this file is not supported yet

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