Skip to content

Commit

Permalink
fix: update examples owned by CLI to v3 (#888)
Browse files Browse the repository at this point in the history
Co-authored-by: souvik <souvikde.ns@gmail.com>
  • Loading branch information
derberg and Souvikns authored Dec 4, 2023
1 parent 4539ab6 commit c771e7b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
18 changes: 13 additions & 5 deletions assets/examples/default-example.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
asyncapi: '2.2.0'
asyncapi: 3.0.0
info:
title: Account Service
version: 1.0.0
description: This service is in charge of processing user signups
channels:
user/signedup:
subscribe:
message:
userSignedUp:
address: user/signedup
messages:
UserSignedUp:
$ref: '#/components/messages/UserSignedUp'
operations:
onUserSignUp:
action: receive
channel:
$ref: '#/channels/userSignedUp'
messages:
- $ref: '#/channels/userSignedUp/messages/UserSignedUp'
components:
messages:
UserSignedUp:
Expand All @@ -20,4 +28,4 @@ components:
email:
type: string
format: email
description: Email of the user
description: Email of the user
32 changes: 18 additions & 14 deletions assets/examples/tutorial.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
asyncapi: 2.5.0
asyncapi: 3.0.0
info:
title: Streetlights API Simplified
version: 1.0.0
title: Streetlights App
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
This is a simplified version of the Streetlights API from other examples. This version is used in AsyncAPI documentation.
The Smartylighting Streetlights application allows you
to remotely manage the city lights.
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
servers:
mosquitto:
url: mqtt://test.mosquitto.org
host: test.mosquitto.org
protocol: mqtt
channels:
light/measured:
publish:
summary: Inform about environmental lighting conditions for a particular streetlight.
operationId: onLightMeasured
message:
lightMeasured:
address: 'light/measured'
messages:
lightMeasuredMessage:
name: LightMeasured
payload:
type: object
Expand All @@ -34,4 +32,10 @@ channels:
sentAt:
type: string
format: date-time
description: Date and time when the message was sent.
description: Date and time when the message was sent.
operations:
onLightMeasured:
action: receive
summary: Information about environmental lighting conditions for a particular streetlight.
channel:
$ref: '#/channels/lightMeasured'

0 comments on commit c771e7b

Please sign in to comment.