@asyncapi/cli 0.8.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ asyncapi: '2.2.0'
2
+ id: 'urn:rpc:example:server'
3
+ defaultContentType: application/json
4
+
5
+ info:
6
+ title: RPC Server Example
7
+ description: This example demonstrates how to define an RPC server.
8
+ version: '1.0.0'
9
+
10
+ servers:
11
+ production:
12
+ url: rabbitmq.example.org
13
+ protocol: amqp
14
+
15
+ channels:
16
+ '{queue}':
17
+ parameters:
18
+ queue:
19
+ schema:
20
+ type: string
21
+ pattern: '^amq\\.gen\\-.+$'
22
+ bindings:
23
+ amqp:
24
+ is: queue
25
+ queue:
26
+ exclusive: true
27
+ subscribe:
28
+ operationId: sendSumResult
29
+ bindings:
30
+ amqp:
31
+ ack: true
32
+ message:
33
+ correlationId:
34
+ location: $message.header#/correlation_id
35
+ payload:
36
+ type: object
37
+ properties:
38
+ result:
39
+ type: number
40
+ examples:
41
+ - 7
42
+
43
+ rpc_queue:
44
+ bindings:
45
+ amqp:
46
+ is: queue
47
+ queue:
48
+ durable: false
49
+ publish:
50
+ operationId: sum
51
+ message:
52
+ bindings:
53
+ amqp:
54
+ replyTo:
55
+ type: string
56
+ correlationId:
57
+ location: $message.header#/correlation_id
58
+ payload:
59
+ type: object
60
+ properties:
61
+ numbers:
62
+ type: array
63
+ items:
64
+ type: number
65
+ examples:
66
+ - [4,3]
@@ -0,0 +1,23 @@
1
+ asyncapi: '2.2.0'
2
+ info:
3
+ title: Account Service
4
+ version: 1.0.0
5
+ description: This service is in charge of processing user signups
6
+ channels:
7
+ user/signedup:
8
+ subscribe:
9
+ message:
10
+ $ref: '#/components/messages/UserSignedUp'
11
+ components:
12
+ messages:
13
+ UserSignedUp:
14
+ payload:
15
+ type: object
16
+ properties:
17
+ displayName:
18
+ type: string
19
+ description: Name of the user
20
+ email:
21
+ type: string
22
+ format: email
23
+ description: Email of the user