Skip to content

Commit

Permalink
fix param for social media example
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg committed Oct 10, 2023
1 parent 413f452 commit c0407a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/social-media/backend/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ channels:
servers:
- $ref: '#/servers/mosquitto'
parameters:
commentId: {}
commentId:
$ref: '../common/parameters.yaml#/commentId'
updateCommentsCount:
address: update/comment/likes
messages:
Expand Down
3 changes: 2 additions & 1 deletion examples/social-media/comments-service/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions examples/social-media/common/parameters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
commentId:
description: ID of the comment

0 comments on commit c0407a1

Please sign in to comment.