From d1da8923e500bdd693ccac23436d0659b268b7e6 Mon Sep 17 00:00:00 2001 From: Nicholas Lim <18374483+niclim@users.noreply.github.com> Date: Mon, 25 Mar 2024 09:29:10 -0400 Subject: [PATCH] Fix/error report spec (#2803) --- package.json | 2 +- projects/fastify-capture/package.json | 2 +- projects/json-pointer-helpers/package.json | 2 +- projects/openapi-io/package.json | 2 +- projects/openapi-utilities/package.json | 2 +- projects/optic/package.json | 2 +- projects/optic/src/commands/run.ts | 3 +++ projects/rulesets-base/package.json | 2 +- projects/standard-rulesets/package.json | 2 +- 9 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d0d5befd33..604bad2285 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "openapi-workspaces", "license": "MIT", "private": true, - "version": "0.54.11", + "version": "0.54.12", "workspaces": [ "projects/json-pointer-helpers", "projects/openapi-io", diff --git a/projects/fastify-capture/package.json b/projects/fastify-capture/package.json index 680af1a01c..b5f06cf420 100644 --- a/projects/fastify-capture/package.json +++ b/projects/fastify-capture/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/fastify-capture", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/json-pointer-helpers/package.json b/projects/json-pointer-helpers/package.json index da9ffae3fc..3bb598cfe5 100644 --- a/projects/json-pointer-helpers/package.json +++ b/projects/json-pointer-helpers/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/json-pointer-helpers", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/openapi-io/package.json b/projects/openapi-io/package.json index 00e03ef3af..e1b05613d4 100644 --- a/projects/openapi-io/package.json +++ b/projects/openapi-io/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/openapi-io", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/openapi-utilities/package.json b/projects/openapi-utilities/package.json index 9a347a87aa..ab305bd523 100644 --- a/projects/openapi-utilities/package.json +++ b/projects/openapi-utilities/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/openapi-utilities", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/optic/package.json b/projects/optic/package.json index 0c7678aae2..603c89b0f1 100644 --- a/projects/optic/package.json +++ b/projects/optic/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/optic", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/optic/src/commands/run.ts b/projects/optic/src/commands/run.ts index 516e9e4acd..cf8aaa8b72 100644 --- a/projects/optic/src/commands/run.ts +++ b/projects/optic/src/commands/run.ts @@ -766,6 +766,7 @@ export const getRunAction = error: `Invalid specification: ${e}`, path: specPath, }; + specReports.push(specReport); reportSpec(specReport); continue; } @@ -778,6 +779,7 @@ export const getRunAction = error: `Failed to load specification from Optic: ${e}`, path: specPath, }; + specReports.push(specReport); reportSpec(specReport); continue; } @@ -786,6 +788,7 @@ export const getRunAction = error: `Could not load specification from Optic ${opticUrl}`, path: specPath, }; + specReports.push(specReport); reportSpec(specReport); continue; } diff --git a/projects/rulesets-base/package.json b/projects/rulesets-base/package.json index f58b0ae549..f9cfd8cc37 100644 --- a/projects/rulesets-base/package.json +++ b/projects/rulesets-base/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/rulesets-base", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/standard-rulesets/package.json b/projects/standard-rulesets/package.json index 9c05f92b84..a44cb426e0 100644 --- a/projects/standard-rulesets/package.json +++ b/projects/standard-rulesets/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/standard-rulesets", "license": "MIT", "packageManager": "yarn@4.1.1", - "version": "0.54.11", + "version": "0.54.12", "main": "build/index.js", "types": "build/index.d.ts", "files": [