Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update examples owned by CLI to v3 #888

Merged
merged 4 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'