From cca886193682f66fdf5db8ff77e5bd28b1459407 Mon Sep 17 00:00:00 2001 From: Alex Varchuk Date: Thu, 23 Mar 2023 16:55:39 +0200 Subject: [PATCH] chore: update openapi-sampler (#2275) --- package-lock.json | 14 +++++++------- package.json | 2 +- .../__snapshots__/loadAndBundleSpec.test.ts.snap | 15 ++++++++++++++- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index e82121c4..df12a9b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "mark.js": "^8.11.1", "marked": "^4.0.15", "mobx-react": "^7.2.0", - "openapi-sampler": "^1.3.0", + "openapi-sampler": "^1.3.1", "path-browserify": "^1.0.1", "perfect-scrollbar": "^1.5.5", "polished": "^4.1.3", @@ -14378,9 +14378,9 @@ } }, "node_modules/openapi-sampler": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.3.0.tgz", - "integrity": "sha512-2QfjK1oM9Sv0q82Ae1RrUe3yfFmAyjF548+6eAeb+h/cL1Uj51TW4UezraBEvwEdzoBgfo4AaTLVFGTKj+yYDw==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.3.1.tgz", + "integrity": "sha512-Ert9mvc2tLPmmInwSyGZS+v4Ogu9/YoZuq9oP3EdUklg2cad6+IGndP9yqJJwbgdXwZibiq5fpv6vYujchdJFg==", "dependencies": { "@types/json-schema": "^7.0.7", "json-pointer": "0.6.2" @@ -30172,9 +30172,9 @@ } }, "openapi-sampler": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.3.0.tgz", - "integrity": "sha512-2QfjK1oM9Sv0q82Ae1RrUe3yfFmAyjF548+6eAeb+h/cL1Uj51TW4UezraBEvwEdzoBgfo4AaTLVFGTKj+yYDw==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.3.1.tgz", + "integrity": "sha512-Ert9mvc2tLPmmInwSyGZS+v4Ogu9/YoZuq9oP3EdUklg2cad6+IGndP9yqJJwbgdXwZibiq5fpv6vYujchdJFg==", "requires": { "@types/json-schema": "^7.0.7", "json-pointer": "0.6.2" diff --git a/package.json b/package.json index 2556710d..81d142c7 100644 --- a/package.json +++ b/package.json @@ -151,7 +151,7 @@ "mark.js": "^8.11.1", "marked": "^4.0.15", "mobx-react": "^7.2.0", - "openapi-sampler": "^1.3.0", + "openapi-sampler": "^1.3.1", "path-browserify": "^1.0.1", "perfect-scrollbar": "^1.5.5", "polished": "^4.1.3", diff --git a/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap b/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap index 3a3305d6..c1618ad3 100644 --- a/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap +++ b/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap @@ -4211,6 +4211,9 @@ culpa qui officia deserunt mollit anim id est laborum. }, ], "responses": Object { + "204": Object { + "description": "User is deleted", + }, "400": Object { "description": "Invalid username supplied", }, @@ -4270,7 +4273,7 @@ culpa qui officia deserunt mollit anim id est laborum. "operationId": "updateUser", "parameters": Array [ Object { - "description": "name that need to be deleted", + "description": "name that need to be updated", "in": "path", "name": "username", "required": true, @@ -4291,6 +4294,16 @@ culpa qui officia deserunt mollit anim id est laborum. "required": true, }, "responses": Object { + "200": Object { + "content": Object { + "application/json": Object { + "schema": Object { + "$ref": "#/components/schemas/User", + }, + }, + }, + "description": "User is updated successfully", + }, "400": Object { "description": "Invalid user supplied", },