Skip to content

Commit

Permalink
update implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Oct 9, 2023
1 parent a733e44 commit afe9d47
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/input/2.6.0/for-3.0.0-with-reference-parameter.yml
Original file line number Diff line number Diff line change
@@ -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.
30 changes: 30 additions & 0 deletions test/output/3.0.0/from-2.6.0-with-reference-parameter.yml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit afe9d47

Please sign in to comment.