-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new invalid asyncapi template (#524)
Co-authored-by: Maciej Urbańczyk <[email protected]>
- Loading branch information
1 parent
1524ad3
commit a70b60e
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
asyncapi: '1.0.0' | ||
info: | ||
title: Streetlights API | ||
version: '1.0.0' | ||
license: | ||
name: Apache 2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0' | ||
servers: | ||
mosquitto: | ||
url: mqtt://test.mosquitto.org | ||
protocol: mqtt | ||
channels: | ||
light/measured: | ||
publish: | ||
summary: Inform about environmental lighting conditions for a particular streetlight. | ||
operationId: onLightMeasured | ||
message: | ||
name: LightMeasured | ||
payload: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
minimum: true | ||
description: Id of the streetlight. | ||
lumens: | ||
type: integer | ||
minimum: 0 | ||
description: Light intensity measured in lumens. | ||
sentAt: | ||
type: integer | ||
format: date-time | ||
description: Date and time when the message was sent. |