diff --git a/examples/social-media/backend/asyncapi.yaml b/examples/social-media/backend/asyncapi.yaml index ca4ed7ccd..0ff462f50 100644 --- a/examples/social-media/backend/asyncapi.yaml +++ b/examples/social-media/backend/asyncapi.yaml @@ -46,7 +46,8 @@ channels: servers: - $ref: '#/servers/mosquitto' parameters: - commentId: {} + commentId: + $ref: '../common/parameters.yaml#/commentId' updateCommentsCount: address: update/comment/likes messages: diff --git a/examples/social-media/comments-service/asyncapi.yaml b/examples/social-media/comments-service/asyncapi.yaml index 4c9fb309f..74085de8d 100644 --- a/examples/social-media/comments-service/asyncapi.yaml +++ b/examples/social-media/comments-service/asyncapi.yaml @@ -35,7 +35,8 @@ channels: Sends the new count to the broker after it has been updated in the database. parameters: - commentId: {} + commentId: + $ref: '../common/parameters.yaml#/commentId' operations: receiveCommentLiked: action: receive diff --git a/examples/social-media/common/parameters.yaml b/examples/social-media/common/parameters.yaml new file mode 100644 index 000000000..91948c25e --- /dev/null +++ b/examples/social-media/common/parameters.yaml @@ -0,0 +1,2 @@ +commentId: + description: ID of the comment \ No newline at end of file