From 3c903c50c7c98b523db98fd754c31296bddcabd6 Mon Sep 17 00:00:00 2001 From: andurairaj Date: Thu, 2 May 2024 18:46:41 +0530 Subject: [PATCH] Fix failing tests --- .../src/test/resources/callbacks-issue/domain.yaml | 13 ++++++++++++- .../src/test/resources/issue-2071/definitions.yaml | 7 ++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/modules/swagger-parser-v3/src/test/resources/callbacks-issue/domain.yaml b/modules/swagger-parser-v3/src/test/resources/callbacks-issue/domain.yaml index 4d6c85518c..f4fb27c4bc 100644 --- a/modules/swagger-parser-v3/src/test/resources/callbacks-issue/domain.yaml +++ b/modules/swagger-parser-v3/src/test/resources/callbacks-issue/domain.yaml @@ -31,4 +31,15 @@ components: $ref: '#/components/schemas/WebhookVerification' responses: '202': - description: Your server returns this code if it accepts the message it was sent \ No newline at end of file + description: Your server returns this code if it accepts the message it was sent + schemas: + WebhookVerification: + type: string + parameters: + x-api-key: + name: Correlation-Id + in: header + description: description + required: false + schema: + type: string \ No newline at end of file diff --git a/modules/swagger-parser-v3/src/test/resources/issue-2071/definitions.yaml b/modules/swagger-parser-v3/src/test/resources/issue-2071/definitions.yaml index 3d0068dfb0..deef68cfa2 100644 --- a/modules/swagger-parser-v3/src/test/resources/issue-2071/definitions.yaml +++ b/modules/swagger-parser-v3/src/test/resources/issue-2071/definitions.yaml @@ -5,9 +5,10 @@ components: items: oneOf: - $ref: '#/components/schemas/ProductRow' - properties: - orderRow: - $ref: '#/components/schemas/OrderRow' + - type: object + properties: + orderRow: + $ref: '#/components/schemas/OrderRow' discriminator: propertyName: type mapping: