Skip to content

Commit 5c31226

Browse files
chore: add sample asyncAPI document
1 parent bc9b8f3 commit 5c31226

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,8 @@ jobs:
147147
with:
148148
submodules: recursive
149149
fetch-depth: 0
150-
- name: Validate asyncAPI document
151-
uses: WaleedAshraf/[email protected]
152-
with:
153-
filepath: './docs/async-api/async-api.yml'
154150
- name: Generating HTML from AsyncAPI document
155-
uses: docker://asyncapi/github-action-for-generator:2.0.0
151+
uses: docker://asyncapi/github-action-for-generator:2.1.11
156152
with:
157153
template: '@asyncapi/[email protected]'
158154
filepath: ./docs/async-api/async-api.yml

docs/async-api/async-api.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
asyncapi: 2.0.0
1+
asyncapi: 2.6.0
22
info:
33
title: Digital Twins Event Gateway
4-
version: '1.0.0'
4+
version: 1.0.0
55
description: The Gateway between Azure Digital Twins and the application microservices.
6-
license:
7-
name: MIT
8-
url: https://opensource.org/licenses/MIT
6+
7+
channels:
8+
user/signedup:
9+
subscribe:
10+
message:
11+
$ref: '#/components/messages/UserSignedUp'
12+
components:
13+
messages:
14+
UserSignedUp:
15+
payload:
16+
type: object
17+
properties:
18+
displayName:
19+
type: string
20+
description: Name of the user
21+
email:
22+
type: string
23+
format: email
24+
description: Email of the user

0 commit comments

Comments
 (0)