Skip to content

Commit

Permalink
docs: changes in document create-asyncapi-document (#2860)
Browse files Browse the repository at this point in the history
Co-authored-by: Quetzalli <[email protected]>
  • Loading branch information
sharmaachintya08 and quetzalliwrites authored Apr 13, 2024
1 parent 726d621 commit dcf6fdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/docs/tutorials/create-asyncapi-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You want to build a system that can turn streetlights on and off based on their

- You will implement an event-driven architecture (EDA) with a message broker in its "center."

- The Streetlights application will receive information about environmental lighting.
- The Streetlights application will receive information about environmental lighting conditions.

- The Streetlights application will connect to the broker and receive a stream of events from all the streetlights devices reporting their conditions.

Expand Down Expand Up @@ -73,7 +73,7 @@ channels:
id:
type: integer
minimum: 0
description: Id of the streetlight.
description: ID of the streetlight.
lumens:
type: integer
minimum: 0
Expand All @@ -90,7 +90,7 @@ operations:
$ref: '#/channels/lightMeasured'`}
</CodeBlock>

Let's break it down into pieces:
Let's break the above code snippet down into pieces:

<CodeBlock>
{`asyncapi: 3.0.0
Expand Down Expand Up @@ -134,7 +134,7 @@ Now, let's move on to the `channels` section. In the `servers` section, you spec

In this example, `light/measured` is the channel address. From the Streetlight application example perspective, it means that `light/measured` is the topic's name in the MQTT broker.

Next is the `payload` property, which is used to understand how the event should look like when transfered over the specific channel:
Next is the payload property. It is used to understand how the event should look like when publishing to that channel

<CodeBlock>
{` payload:
Expand Down

0 comments on commit dcf6fdb

Please sign in to comment.