From 2b1fbe79aceea39e25c19a030e3ad13b07a24073 Mon Sep 17 00:00:00 2001 From: Andriy Zaleskyy Date: Mon, 11 Oct 2021 12:53:37 +0300 Subject: [PATCH] test: update test --- demo/openapi-3-1.yaml | 25 +++++++------ .../loadAndBundleSpec.test.ts.snap | 35 +++++++++++-------- 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/demo/openapi-3-1.yaml b/demo/openapi-3-1.yaml index ace99f7b..ac89619d 100644 --- a/demo/openapi-3-1.yaml +++ b/demo/openapi-3-1.yaml @@ -384,17 +384,6 @@ paths: type: array items: $ref: '#/components/schemas/Pet' - application/xml-dtd: - schema: - type: array - maxItems: 999 - minItems: 0 - items: - type: array - maxItems: 777 - minItems: 111 - items: - type: number '400': description: Invalid tag value security: @@ -544,6 +533,20 @@ paths: subscriptionId: type: string example: AAA-123-BBB-456 + '200': + description: Successful operation + content: + application/json: + schema: + type: array + maxItems: 999 + minItems: 0 + items: + type: array + maxItems: 777 + minItems: 111 + items: + type: number callbacks: orderInProgress: '{$request.body#/callbackUrl}?event={$request.body#/eventName}': diff --git a/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap b/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap index 4c9a1d11..6cd0a034 100644 --- a/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap +++ b/src/utils/__tests__/__snapshots__/loadAndBundleSpec.test.ts.snap @@ -2564,21 +2564,6 @@ try { "type": "array", }, }, - "application/xml-dtd": Object { - "schema": Object { - "items": Object { - "items": Object { - "type": "number", - }, - "maxItems": 777, - "minItems": 111, - "type": "array", - }, - "maxItems": 999, - "minItems": 0, - "type": "array", - }, - }, }, "description": "successful operation", }, @@ -3262,6 +3247,26 @@ culpa qui officia deserunt mollit anim id est laborum. }, }, "responses": Object { + "200": Object { + "content": Object { + "application/json": Object { + "schema": Object { + "items": Object { + "items": Object { + "type": "number", + }, + "maxItems": 777, + "minItems": 111, + "type": "array", + }, + "maxItems": 999, + "minItems": 0, + "type": "array", + }, + }, + }, + "description": "Successful operation", + }, "201": Object { "content": Object { "application/json": Object {