diff --git a/test/input/2.6.0/for-3.0.0-with-reference-parameter.yml b/test/input/2.6.0/for-3.0.0-with-reference-parameter.yml new file mode 100644 index 00000000..c023e104 --- /dev/null +++ b/test/input/2.6.0/for-3.0.0-with-reference-parameter.yml @@ -0,0 +1,27 @@ +asyncapi: 2.6.0 + +info: + title: AsyncAPI Sample App + version: 1.0.1 + +channels: + 'lightingMeasured/{parameter}': + parameters: + parameter: + schema: + $ref: '#/components/schemas/sentAt' + publish: + operationId: lightMeasured + message: + payload: + type: object + properties: + someProperty: + type: string + +components: + schemas: + sentAt: + type: string + format: date-time + description: Date and time when the message was sent. \ No newline at end of file diff --git a/test/output/3.0.0/from-2.6.0-with-reference-parameter.yml b/test/output/3.0.0/from-2.6.0-with-reference-parameter.yml new file mode 100644 index 00000000..c6039177 --- /dev/null +++ b/test/output/3.0.0/from-2.6.0-with-reference-parameter.yml @@ -0,0 +1,30 @@ +asyncapi: 3.0.0 +info: + title: AsyncAPI Sample App + version: 1.0.1 +channels: + 'lightingMeasured/{parameter}': + address: 'lightingMeasured/{parameter}' + messages: + lightMeasured.message: + payload: + type: object + properties: + someProperty: + type: string + parameters: + parameter: {} +operations: + lightMeasured: + action: receive + channel: + $ref: '#/channels/lightingMeasured~1{parameter}' + messages: + - $ref: >- + #/channels/lightingMeasured~1{parameter}/messages/lightMeasured.message +components: + schemas: + sentAt: + type: string + format: date-time + description: Date and time when the message was sent. \ No newline at end of file