Skip to content

Commit

Permalink
Merge pull request #5 from asyncapi/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
ayushnau authored Dec 11, 2023
2 parents fe226df + 215ae20 commit 4b35b4c
Show file tree
Hide file tree
Showing 9 changed files with 238 additions and 387 deletions.
114 changes: 57 additions & 57 deletions assets/create-glee-app/templates/default/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/create-glee-app/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/asyncapi/glee-hello-world#readme",
"dependencies": {
"@asyncapi/glee": "^0.32.3"
"@asyncapi/glee": "^0.32.8"
},
"devDependencies": {
"@types/node": "^20.5.9"
Expand Down
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'
Loading

0 comments on commit 4b35b4c

Please sign in to comment.