From 104affbd67adc023e92979bee8bd21379458e6ed Mon Sep 17 00:00:00 2001 From: Franco Cassar Manghi Date: Mon, 13 May 2024 12:08:58 +0100 Subject: [PATCH] As per issue raised in https://github.com/APIDevTools/json-schema-ref-parser/issues/349 this scope of this PR will ignore the extra component block --- .../integration/bundle/final-asyncapiv3-with-xorigin.yaml | 8 +++++++- test/integration/bundle/final-asyncapiv3.yaml | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/test/integration/bundle/final-asyncapiv3-with-xorigin.yaml b/test/integration/bundle/final-asyncapiv3-with-xorigin.yaml index 9afca33e260..0ab16bbc637 100644 --- a/test/integration/bundle/final-asyncapiv3-with-xorigin.yaml +++ b/test/integration/bundle/final-asyncapiv3-with-xorigin.yaml @@ -21,7 +21,7 @@ channels: type: string format: email description: Email of the user - x-origin: ./test/integration/bundle/messages.yaml#/messages/UserSignedUp + x-origin: ./test/integration/bundle/messages.yaml#/messages/UserSignedUp test: address: /test messages: @@ -42,3 +42,9 @@ operations: $ref: '#/channels/test' messages: - $ref: '#/channels/test/messages/testMessage' +components: + messages: + TestMessage: + payload: + type: string + x-origin: '#/components/messages/TestMessage' diff --git a/test/integration/bundle/final-asyncapiv3.yaml b/test/integration/bundle/final-asyncapiv3.yaml index 5d0af90e951..a1751b6f4de 100644 --- a/test/integration/bundle/final-asyncapiv3.yaml +++ b/test/integration/bundle/final-asyncapiv3.yaml @@ -39,3 +39,8 @@ operations: $ref: '#/channels/test' messages: - $ref: '#/channels/test/messages/testMessage' +components: + messages: + TestMessage: + payload: + type: string