-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasyncApi.yaml
87 lines (84 loc) · 1.88 KB
/
asyncApi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
asyncapi: 2.2.0
info:
title: JAM Comments
version: 1.0.0
defaultContentType: 'application/json'
channels:
comment-events:
subscribe:
message:
oneOf:
- $ref: '#/components/messages/CommentPosted'
components:
messages:
CommentPosted:
headers:
allOf:
- $ref: '#/components/schemas/MessageProperties'
type: object
payload:
$ref: '#/components/schemas/CommentPosted'
schemas:
MessageProperties:
type: object
additionalProperties:
oneOf:
- type: string
- type: number
- type: boolean
properties:
'type':
type: string
CommentPosted:
type: object
required:
- account
- comment
additionalProperties: false
properties:
account:
type: object
required:
- id
- email
properties:
id:
type: string
format: guid
email:
type: string
format: email
comment:
type: object
required:
- id
- postUrl
- postedAt
- text
- author
additionalProperties: false
properties:
id:
type: string
format: guid
postUrl:
type: string
postedAt:
type: string
format: datetime
postTitle:
type: string
text:
type: string
author:
type: object
required:
-name
additionalProperties: false
properties:
name:
type: string
email:
type: string
website:
type: string