Skip to content

Commit 820e80f

Browse files
derbergKhudaDad414
andauthored
fix: update official invalid example to match tutorial (#848)
Co-authored-by: Khuda Dad Nomani <32505158+KhudaDad414@users.noreply.github.com>
1 parent ba785e1 commit 820e80f

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed
Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
# This invalid file exists solely for educational purposes, and if you come across it, here is the tutorial: https://www.asyncapi.com/docs/tutorials/studio-document-validation
22

3-
asyncapi: '1.0.0'
3+
asyncapi: 3.0.0
44
info:
55
title: Streetlights API
66
version: '1.0.0'
7+
description: |
8+
The Smartylighting Streetlights API allows you
9+
to remotely manage the city lights.
710
license:
811
name: Apache 2.0
912
url: 'https://www.apache.org/licenses/LICENSE-2.0'
13+
1014
servers:
1115
mosquitto:
12-
url: mqtt://test.mosquitto.org
16+
url: test.mosquitto.org
1317
protocol: mqtt
18+
1419
channels:
15-
light/measured:
16-
publish:
17-
summary: Inform about environmental lighting conditions for a particular streetlight.
18-
operationId: onLightMeasured
19-
message:
20+
lightMeasured:
21+
address: 'light/measured'
22+
messages:
23+
lightMeasuredMessage:
2024
name: LightMeasured
2125
payload:
2226
type: object
@@ -30,6 +34,13 @@ channels:
3034
minimum: 0
3135
description: Light intensity measured in lumens.
3236
sentAt:
33-
type: integer
37+
type: string
3438
format: date-time
3539
description: Date and time when the message was sent.
40+
41+
operations:
42+
onLightMeasured:
43+
action: 'receive'
44+
summary: Inform about environmental lighting conditions for a particular streetlight.
45+
channel:
46+
$ref: '#/channels/lightMeasured'

0 commit comments

Comments
 (0)