diff --git a/package.json b/package.json index de15628a12..a95f44e4cf 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "openapi-workspaces", "license": "MIT", "private": true, - "version": "0.53.10-3", + "version": "0.53.10-4", "workspaces": [ "projects/json-pointer-helpers", "projects/openapi-io", diff --git a/projects/fastify-capture/package.json b/projects/fastify-capture/package.json index 19e87c3595..15ca811204 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.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "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 15a8eef75a..c387b48f51 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.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "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 2554bb27d0..768ae8e60b 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.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "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 804bed9151..4a04e27b7f 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.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/optic/package.json b/projects/optic/package.json index 5d67b5d5e8..dfd983b63b 100644 --- a/projects/optic/package.json +++ b/projects/optic/package.json @@ -2,7 +2,7 @@ "name": "@useoptic/optic", "license": "MIT", "packageManager": "yarn@4.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/rulesets-base/package.json b/projects/rulesets-base/package.json index 7a413a6cf1..db6e2a5cdb 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.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "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 a3488dad78..50d8bbf276 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.0.2", - "version": "0.53.10-3", + "version": "0.53.10-4", "main": "build/index.js", "types": "build/index.d.ts", "files": [ diff --git a/projects/standard-rulesets/src/lintgpt/__tests__/__snapshots__/prepare-openapi.test.ts.snap b/projects/standard-rulesets/src/lintgpt/__tests__/__snapshots__/prepare-openapi.test.ts.snap index 951b7d3dd0..a1505ab0ae 100644 --- a/projects/standard-rulesets/src/lintgpt/__tests__/__snapshots__/prepare-openapi.test.ts.snap +++ b/projects/standard-rulesets/src/lintgpt/__tests__/__snapshots__/prepare-openapi.test.ts.snap @@ -1,6 +1,37 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`can reduce size of operations by removing nested schemas 1`] = `undefined`; +exports[`can reduce size of operations by removing nested schemas 1`] = ` +{ + "description": "delete all the orders for this user", + "parameters": [ + { + "description": "123", + "example": "123", + "in": "query", + "name": "a", + }, + ], + "requestBody": { + "content": { + "application/json": { + "schema": undefined, + }, + }, + "description": "what to send", + "required": true, + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": undefined, + }, + }, + "description": "The response", + }, + }, +} +`; exports[`can reduce size of responses by deleting descriptions + examples 1`] = ` {