diff --git a/test/input/2.6.0/for-3.0.0-with-mixed-parameters.yml b/test/input/2.6.0/for-3.0.0-with-mixed-parameters.yml new file mode 100644 index 00000000..522c919c --- /dev/null +++ b/test/input/2.6.0/for-3.0.0-with-mixed-parameters.yml @@ -0,0 +1,54 @@ +asyncapi: 2.6.0 +channels: + '{enum}/{default}/{description}/{examples}/{location}/{mixed}': + publish: + operationId: lightMeasured + message: + payload: + type: string + parameters: + enum: + $ref: '#/components/parameters/enum' + default: + $ref: '#/components/parameters/default' + description: + $ref: '#/components/parameters/description' + examples: + $ref: '#/components/parameters/examples' + location: + $ref: '#/components/parameters/location' + mixed: + $ref: '#/components/parameters/mixed' +components: + parameters: + enum: + schema: + type: string + enum: ["test"] + default: + schema: + type: string + default: "test" + description: + description: Just a test description + schema: + description: Just a test description 2 + type: string + examples: + schema: + type: string + examples: ["test"] + location: + location: "$message.payload" + schema: + type: string + mixed: + location: "$message.payload" + description: Just a test description + schema: + type: string + enum: ["test"] + default: "test" + description: Just a test description 2 + examples: ["test"] + x-custom-extension: "test" \ No newline at end of file diff --git a/test/output/3.0.0/from-2.6.0-with-mixed-parameters.yml b/test/output/3.0.0/from-2.6.0-with-mixed-parameters.yml new file mode 100644 index 00000000..44d40cbd --- /dev/null +++ b/test/output/3.0.0/from-2.6.0-with-mixed-parameters.yml @@ -0,0 +1,40 @@ +asyncapi: 3.0.0 +channels: + '{enum}/{default}/{description}/{examples}/{location}/{mixed}': + address: '{enum}/{default}/{description}/{examples}/{location}/{mixed}' + messages: + lightMeasured.message: + payload: + type: string + parameters: + enum: + $ref: '#/components/parameters/enum' + default: + $ref: '#/components/parameters/default' + description: + $ref: '#/components/parameters/description' + examples: + $ref: '#/components/parameters/examples' + location: + $ref: '#/components/parameters/location' + mixed: + $ref: '#/components/parameters/mixed' +components: + parameters: + enum: + enum: ["test"] + default: + default: "test" + description: + description: Just a test description + examples: + examples: ["test"] + location: + location: "$message.payload" + mixed: + enum: ["test"] + default: "test" + description: Just a test description + examples: ["test"] + location: "$message.payload" + x-custom-extension: "test" \ No newline at end of file