forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
274 lines (274 loc) · 8.21 KB
/
schema.json
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "AsyncAPI Case Study Schema",
"type": "object",
"required": [
"id",
"company",
"challenges",
"solution",
"technical",
"schemas",
"asyncapi",
"additionalResources"
],
"properties": {
"id": {
"type": "string",
"examples": ["adeogroup"],
"pattern": "^[a-z]+$"
},
"company": {
"type": "object",
"required": ["name", "logo", "contact"],
"properties": {
"name": {
"type": "string",
"examples": ["Adeo Group"]
},
"description": {
"type": "string",
"examples": [
"Adeo owns different brands in retail industry focused on home improvement and DIY markets, like Leroy Merlin."
]
},
"customers": {
"type": "string",
"examples": ["500M"]
},
"industry": {
"type": "string",
"examples": ["Retail"]
},
"revenue": {
"type": "string",
"examples": ["25.6B EURO turnover, including 768M EURO online."]
},
"website": {
"type": "string",
"examples": ["https://www.adeo.com/"]
},
"logo": {
"type": "string",
"examples": ["/img/casestudies/adeo/logo.svg"]
},
"contact": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "link"],
"properties": {
"name": {
"type": "string",
"examples": ["Ludovic Dussart"]
},
"link": {
"type": "string",
"format": "uri",
"examples": ["https://twitter.com/ldussart"]
}
}
}
}
}
},
"challenges": {
"type": "string",
"examples": [
"Cost Component Repository product, part of the ADEO tech products, is used to calculate and publish transfer prices between different internal locations on the globe. Different business units use different information systems. It is hard to learn how each business unit share information about their systems, their API and accuracy."
]
},
"solution": {
"type": "string",
"examples": [
"The API is now described with AsyncAPI. AsyncAPI file, stored together with the source code, is used to generate HTML documentation in the same release pipeline for the product. Documentation is exposed as part of the product internally for other company units depending on the API."
]
},
"technical": {
"type": "object",
"required": [
"languages",
"frameworks",
"protocols",
"brokers",
"testing",
"architecture",
"codegen"
],
"properties": {
"languages": {
"type": "array",
"items": {
"type": "string",
"examples": ["Java"]
}
},
"frameworks": {
"type": "array",
"items": {
"type": "string",
"examples": ["Spring"]
}
},
"protocols": {
"type": "array",
"items": {
"type": "string",
"examples": ["Kafka"]
}
},
"brokers": {
"type": "string",
"examples": [
"Kafka with Kafka Connect component. There are 15 production brokers with 47 topics."
]
},
"testing": {
"type": "string",
"examples": [
"For Kafka e2e tests are done with [Zerocode](https://github.com/authorjapps/zerocode). Load tests are handled with [JMeter](https://jmeter.apache.org/) with [kloadgen](https://github.com/corunet/kloadgen) plugin that supports Kafka and Avro."
]
},
"architecture": {
"type": "string",
"examples": [
"The following [enterprise integration patterns](https://www.enterpriseintegrationpatterns.com/patterns/messaging) are applied."
]
},
"codegen": {
"type": "string",
"examples": ["Java models generation. Avro schemas used as a source."]
}
}
},
"schemas": {
"type": "object",
"required": [
"description",
"storage",
"registry",
"versioning",
"validation"
],
"properties": {
"description": {
"type": "string",
"examples": ["Avro 1.9"]
},
"storage": {
"type": "string",
"examples": [
"Git repository where source code is. During release they are published to Confluent Schema Registry."
]
},
"registry": {
"type": "string",
"examples": ["Confluent Schema Registry."]
},
"versioning": {
"type": "string",
"examples": [
"Versioning is based on git tags. Schema version pushed to Confluent Schema Registry match the git tag version of the product. Every schema has a `version` information, that match with product tag version."
]
},
"validation": {
"type": "string",
"examples": ["Based on validation using Confluent Schema Registry."]
}
}
},
"asyncapi": {
"type": "object",
"required": [
"usecase",
"versions",
"storage",
"editing",
"maintainers",
"audience",
"extensions",
"documentation",
"bindings",
"tools",
"fullExample"
],
"properties": {
"usecase": {
"type": "string",
"examples": [
"Document the API of the product so its users know how it works and how to use it. AsyncAPI was selected as the standard that allows you to generate documentation from machine-readable document that describes the API."
]
},
"versions": {
"type": "array",
"items": {
"type": "string",
"examples": ["2.4.0"]
}
},
"storage": {
"type": "string",
"examples": ["Git repository where source code is."]
},
"editing": {
"type": "string",
"examples": [
"IntelliJ without any special plugins. Sometimes people use AsyncAPI Studio, but not regularly because of lack of support for references to local drive."
]
},
"maintainers": {
"type": "string",
"examples": ["Developers"]
},
"audience": {
"type": "object",
"required": ["internal", "external"],
"properties": {
"internal": {
"type": "boolean",
"examples": [false]
},
"external": {
"type": "boolean",
"examples": [false]
}
}
},
"extensions": {
"type": "string",
"examples": [
"Extensions are used to describe details about custom security."
]
},
"documentation": {
"type": "string",
"examples": [
"Documentation generated from AsyncAPI is hosted as part of the product on dedicated endpoint using Spring controller."
]
},
"bindings": {
"type": "string",
"examples": [
"All Kafka bindings are used. Server, channel, operation and message bindings."
]
},
"tools": {
"type": "string",
"examples": [
"[AsyncAPI Generator](https://github.com/asyncapi/generator) and [HTML Template](https://github.com/asyncapi/html-template) with parameters like `sidebarOrganization=byTags` and `version`."
]
},
"fullExample": {
"type": "string",
"examples": ["resources/casestudies/adeo/asyncapi.yaml"]
}
}
},
"additionalResources": {
"type": "string",
"examples": [
"Watch [this video presentation about AsyncAPI case study](https://www.youtube.com/watch?v=WwhRbvrf6Rs) from Ludovic Dussart, Ineat & Antoine Delequeuche, Adeo. - better for data interchange"
]
}
}
}