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: