@asyncapi/cli 2.0.2 → 2.0.4
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.
- package/assets/create-glee-app/templates/default/package-lock.json +47 -47
- package/assets/create-glee-app/templates/default/package.json +1 -1
- package/assets/create-glee-app/templates/tutorial/package-lock.json +46 -46
- package/assets/create-glee-app/templates/tutorial/package.json +1 -1
- package/assets/examples/examples.json +4 -0
- package/lib/commands/generate/models.d.ts +2 -0
- package/lib/commands/generate/models.js +0 -3
- package/lib/core/flags/generate/models.flags.d.ts +2 -0
- package/oclif.manifest.json +23 -3
- package/package.json +11 -10
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@asyncapi/glee": "^0.37.
|
|
12
|
+
"@asyncapi/glee": "^0.37.4"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^20.5.9"
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"node_modules/@asyncapi/generator-react-sdk": {
|
|
93
|
-
"version": "1.0.
|
|
94
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.
|
|
95
|
-
"integrity": "sha512-
|
|
93
|
+
"version": "1.0.20",
|
|
94
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.20.tgz",
|
|
95
|
+
"integrity": "sha512-9ShFK5RK2tprRD8NvP1SQf2wN2tUOilYFnQgBiPD5AwKmlJqjR3nZUQydfuRTHmHe5pz5lzypFx5ey3f1Mvjgg==",
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@asyncapi/parser": "^3.0
|
|
97
|
+
"@asyncapi/parser": "^3.1.0",
|
|
98
98
|
"@babel/core": "7.12.9",
|
|
99
99
|
"@babel/preset-env": "^7.12.7",
|
|
100
100
|
"@babel/preset-react": "^7.12.7",
|
|
@@ -178,14 +178,14 @@
|
|
|
178
178
|
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
|
|
179
179
|
},
|
|
180
180
|
"node_modules/@asyncapi/glee": {
|
|
181
|
-
"version": "0.37.
|
|
182
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.
|
|
183
|
-
"integrity": "sha512-
|
|
181
|
+
"version": "0.37.4",
|
|
182
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.4.tgz",
|
|
183
|
+
"integrity": "sha512-C42lSw31LYnycpSpmDNA/akxwa7xfyeKj4myuiHwd6K9GNgAd4pa//i4hks5IOoeAnjW+/+XbVJ42Z4vuoOMPA==",
|
|
184
184
|
"dependencies": {
|
|
185
185
|
"@asyncapi/generator": "^1.17.25",
|
|
186
|
-
"@asyncapi/html-template": "^2.3.
|
|
187
|
-
"@asyncapi/markdown-template": "^1.6.
|
|
188
|
-
"@asyncapi/parser": "^3.0
|
|
186
|
+
"@asyncapi/html-template": "^2.3.9",
|
|
187
|
+
"@asyncapi/markdown-template": "^1.6.3",
|
|
188
|
+
"@asyncapi/parser": "^3.1.0",
|
|
189
189
|
"@next/env": "^14.0.4",
|
|
190
190
|
"@types/jest": "^29.5.11",
|
|
191
191
|
"@types/qs": "^6.9.7",
|
|
@@ -225,12 +225,12 @@
|
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
"node_modules/@asyncapi/html-template": {
|
|
228
|
-
"version": "2.3.
|
|
229
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.
|
|
230
|
-
"integrity": "sha512-
|
|
228
|
+
"version": "2.3.9",
|
|
229
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.9.tgz",
|
|
230
|
+
"integrity": "sha512-Asf+cdJoP/LkcLgU/8sl5donf8pfiVMJ2ZNcdzrjl4YHQHGJv6EEABlU3UKjDT5B96I7tFI4UjI3rSN4psseEA==",
|
|
231
231
|
"dependencies": {
|
|
232
|
-
"@asyncapi/generator-react-sdk": "^1.0.
|
|
233
|
-
"@asyncapi/parser": "^3.0
|
|
232
|
+
"@asyncapi/generator-react-sdk": "^1.0.20",
|
|
233
|
+
"@asyncapi/parser": "^3.1.0",
|
|
234
234
|
"@asyncapi/react-component": "^1.2.13",
|
|
235
235
|
"highlight.js": "10.7.3",
|
|
236
236
|
"puppeteer": "^14.1.0",
|
|
@@ -240,11 +240,11 @@
|
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
"node_modules/@asyncapi/markdown-template": {
|
|
243
|
-
"version": "1.6.
|
|
244
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.
|
|
245
|
-
"integrity": "sha512-
|
|
243
|
+
"version": "1.6.3",
|
|
244
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.3.tgz",
|
|
245
|
+
"integrity": "sha512-Ccm+O89hMA/JxvXM+kD/N2s7ziLz805tSHIqPwydBhryYpnLzKp6NmM+yXhO8MfVgYaHvhlt8maYf3tNFLtBbQ==",
|
|
246
246
|
"dependencies": {
|
|
247
|
-
"@asyncapi/generator-react-sdk": "^1.0.
|
|
247
|
+
"@asyncapi/generator-react-sdk": "^1.0.20",
|
|
248
248
|
"openapi-sampler": "^1.3.0",
|
|
249
249
|
"yaml": "^1.10.2"
|
|
250
250
|
}
|
|
@@ -290,11 +290,11 @@
|
|
|
290
290
|
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
|
|
291
291
|
},
|
|
292
292
|
"node_modules/@asyncapi/parser": {
|
|
293
|
-
"version": "3.0
|
|
294
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.
|
|
295
|
-
"integrity": "sha512-
|
|
293
|
+
"version": "3.1.0",
|
|
294
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.1.0.tgz",
|
|
295
|
+
"integrity": "sha512-rUd+fsPRE68o+F3gLqk7OaBj5J5VgBiLk9eJBGEXolNmKbVd45mxJm2aBpMkphQEmYHuBvxZyiNYlSCyr1D2fA==",
|
|
296
296
|
"dependencies": {
|
|
297
|
-
"@asyncapi/specs": "^6.
|
|
297
|
+
"@asyncapi/specs": "^6.7.1",
|
|
298
298
|
"@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
|
|
299
299
|
"@stoplight/json": "^3.20.2",
|
|
300
300
|
"@stoplight/json-ref-readers": "^1.2.2",
|
|
@@ -455,9 +455,9 @@
|
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
457
|
"node_modules/@asyncapi/specs": {
|
|
458
|
-
"version": "6.7.
|
|
459
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.
|
|
460
|
-
"integrity": "sha512-
|
|
458
|
+
"version": "6.7.1",
|
|
459
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.1.tgz",
|
|
460
|
+
"integrity": "sha512-jEaW2vgAwD9GboCdO/TI1zN2k+iowL8YFYwiZwTIr4U4KDmsgo3BLypScl6Jl4+IvY9RdsWE67nuzVX7jooiqQ==",
|
|
461
461
|
"dependencies": {
|
|
462
462
|
"@types/json-schema": "^7.0.11"
|
|
463
463
|
}
|
|
@@ -4956,11 +4956,11 @@
|
|
|
4956
4956
|
}
|
|
4957
4957
|
},
|
|
4958
4958
|
"node_modules/braces": {
|
|
4959
|
-
"version": "3.0.
|
|
4960
|
-
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.
|
|
4961
|
-
"integrity": "sha512-
|
|
4959
|
+
"version": "3.0.3",
|
|
4960
|
+
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
|
4961
|
+
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
|
4962
4962
|
"dependencies": {
|
|
4963
|
-
"fill-range": "^7.
|
|
4963
|
+
"fill-range": "^7.1.1"
|
|
4964
4964
|
},
|
|
4965
4965
|
"engines": {
|
|
4966
4966
|
"node": ">=8"
|
|
@@ -5830,9 +5830,9 @@
|
|
|
5830
5830
|
}
|
|
5831
5831
|
},
|
|
5832
5832
|
"node_modules/dompurify": {
|
|
5833
|
-
"version": "2.5.
|
|
5834
|
-
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.
|
|
5835
|
-
"integrity": "sha512-
|
|
5833
|
+
"version": "2.5.5",
|
|
5834
|
+
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.5.tgz",
|
|
5835
|
+
"integrity": "sha512-FgbqnEPiv5Vdtwt6Mxl7XSylttCC03cqP5ldNT2z+Kj0nLxPHJH4+1Cyf5Jasxhw93Rl4Oo11qRoUV72fmya2Q=="
|
|
5836
5836
|
},
|
|
5837
5837
|
"node_modules/dotenv": {
|
|
5838
5838
|
"version": "10.0.0",
|
|
@@ -6854,9 +6854,9 @@
|
|
|
6854
6854
|
}
|
|
6855
6855
|
},
|
|
6856
6856
|
"node_modules/fill-range": {
|
|
6857
|
-
"version": "7.
|
|
6858
|
-
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.
|
|
6859
|
-
"integrity": "sha512-
|
|
6857
|
+
"version": "7.1.1",
|
|
6858
|
+
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
|
6859
|
+
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
|
6860
6860
|
"dependencies": {
|
|
6861
6861
|
"to-regex-range": "^5.0.1"
|
|
6862
6862
|
},
|
|
@@ -9385,9 +9385,9 @@
|
|
|
9385
9385
|
}
|
|
9386
9386
|
},
|
|
9387
9387
|
"node_modules/nwsapi": {
|
|
9388
|
-
"version": "2.2.
|
|
9389
|
-
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.
|
|
9390
|
-
"integrity": "sha512-
|
|
9388
|
+
"version": "2.2.10",
|
|
9389
|
+
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz",
|
|
9390
|
+
"integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ=="
|
|
9391
9391
|
},
|
|
9392
9392
|
"node_modules/object-assign": {
|
|
9393
9393
|
"version": "4.1.1",
|
|
@@ -9517,9 +9517,9 @@
|
|
|
9517
9517
|
}
|
|
9518
9518
|
},
|
|
9519
9519
|
"node_modules/openapi-sampler": {
|
|
9520
|
-
"version": "1.5.
|
|
9521
|
-
"resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.
|
|
9522
|
-
"integrity": "sha512-
|
|
9520
|
+
"version": "1.5.1",
|
|
9521
|
+
"resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.1.tgz",
|
|
9522
|
+
"integrity": "sha512-tIWIrZUKNAsbqf3bd9U1oH6JEXo8LNYuDlXw26By67EygpjT+ArFnsxxyTMjFWRfbqo5ozkvgSQDK69Gd8CddA==",
|
|
9523
9523
|
"dependencies": {
|
|
9524
9524
|
"@types/json-schema": "^7.0.7",
|
|
9525
9525
|
"json-pointer": "0.6.2"
|
|
@@ -10417,7 +10417,7 @@
|
|
|
10417
10417
|
"version": "14.4.1",
|
|
10418
10418
|
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-14.4.1.tgz",
|
|
10419
10419
|
"integrity": "sha512-+H0Gm84aXUvSLdSiDROtLlOofftClgw2TdceMvvCU9UvMryappoeS3+eOLfKvoy4sm8B8MWnYmPhWxVFudAOFQ==",
|
|
10420
|
-
"deprecated": "<
|
|
10420
|
+
"deprecated": "< 22.6.4 is no longer supported",
|
|
10421
10421
|
"hasInstallScript": true,
|
|
10422
10422
|
"dependencies": {
|
|
10423
10423
|
"cross-fetch": "3.1.5",
|
|
@@ -12247,9 +12247,9 @@
|
|
|
12247
12247
|
}
|
|
12248
12248
|
},
|
|
12249
12249
|
"node_modules/tough-cookie": {
|
|
12250
|
-
"version": "4.1.
|
|
12251
|
-
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.
|
|
12252
|
-
"integrity": "sha512-
|
|
12250
|
+
"version": "4.1.4",
|
|
12251
|
+
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
|
|
12252
|
+
"integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
|
|
12253
12253
|
"dependencies": {
|
|
12254
12254
|
"psl": "^1.1.33",
|
|
12255
12255
|
"punycode": "^2.1.1",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@asyncapi/glee": "^0.37.
|
|
12
|
+
"@asyncapi/glee": "^0.37.4"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14.15.1"
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"node_modules/@asyncapi/generator-react-sdk": {
|
|
90
|
-
"version": "1.0.
|
|
91
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.
|
|
92
|
-
"integrity": "sha512-
|
|
90
|
+
"version": "1.0.20",
|
|
91
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.20.tgz",
|
|
92
|
+
"integrity": "sha512-9ShFK5RK2tprRD8NvP1SQf2wN2tUOilYFnQgBiPD5AwKmlJqjR3nZUQydfuRTHmHe5pz5lzypFx5ey3f1Mvjgg==",
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@asyncapi/parser": "^3.0
|
|
94
|
+
"@asyncapi/parser": "^3.1.0",
|
|
95
95
|
"@babel/core": "7.12.9",
|
|
96
96
|
"@babel/preset-env": "^7.12.7",
|
|
97
97
|
"@babel/preset-react": "^7.12.7",
|
|
@@ -155,14 +155,14 @@
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"node_modules/@asyncapi/glee": {
|
|
158
|
-
"version": "0.37.
|
|
159
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.
|
|
160
|
-
"integrity": "sha512-
|
|
158
|
+
"version": "0.37.4",
|
|
159
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.4.tgz",
|
|
160
|
+
"integrity": "sha512-C42lSw31LYnycpSpmDNA/akxwa7xfyeKj4myuiHwd6K9GNgAd4pa//i4hks5IOoeAnjW+/+XbVJ42Z4vuoOMPA==",
|
|
161
161
|
"dependencies": {
|
|
162
162
|
"@asyncapi/generator": "^1.17.25",
|
|
163
|
-
"@asyncapi/html-template": "^2.3.
|
|
164
|
-
"@asyncapi/markdown-template": "^1.6.
|
|
165
|
-
"@asyncapi/parser": "^3.0
|
|
163
|
+
"@asyncapi/html-template": "^2.3.9",
|
|
164
|
+
"@asyncapi/markdown-template": "^1.6.3",
|
|
165
|
+
"@asyncapi/parser": "^3.1.0",
|
|
166
166
|
"@next/env": "^14.0.4",
|
|
167
167
|
"@types/jest": "^29.5.11",
|
|
168
168
|
"@types/qs": "^6.9.7",
|
|
@@ -260,12 +260,12 @@
|
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
"node_modules/@asyncapi/html-template": {
|
|
263
|
-
"version": "2.3.
|
|
264
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.
|
|
265
|
-
"integrity": "sha512-
|
|
263
|
+
"version": "2.3.9",
|
|
264
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.9.tgz",
|
|
265
|
+
"integrity": "sha512-Asf+cdJoP/LkcLgU/8sl5donf8pfiVMJ2ZNcdzrjl4YHQHGJv6EEABlU3UKjDT5B96I7tFI4UjI3rSN4psseEA==",
|
|
266
266
|
"dependencies": {
|
|
267
|
-
"@asyncapi/generator-react-sdk": "^1.0.
|
|
268
|
-
"@asyncapi/parser": "^3.0
|
|
267
|
+
"@asyncapi/generator-react-sdk": "^1.0.20",
|
|
268
|
+
"@asyncapi/parser": "^3.1.0",
|
|
269
269
|
"@asyncapi/react-component": "^1.2.13",
|
|
270
270
|
"highlight.js": "10.7.3",
|
|
271
271
|
"puppeteer": "^14.1.0",
|
|
@@ -275,11 +275,11 @@
|
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
"node_modules/@asyncapi/markdown-template": {
|
|
278
|
-
"version": "1.6.
|
|
279
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.
|
|
280
|
-
"integrity": "sha512-
|
|
278
|
+
"version": "1.6.3",
|
|
279
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.3.tgz",
|
|
280
|
+
"integrity": "sha512-Ccm+O89hMA/JxvXM+kD/N2s7ziLz805tSHIqPwydBhryYpnLzKp6NmM+yXhO8MfVgYaHvhlt8maYf3tNFLtBbQ==",
|
|
281
281
|
"dependencies": {
|
|
282
|
-
"@asyncapi/generator-react-sdk": "^1.0.
|
|
282
|
+
"@asyncapi/generator-react-sdk": "^1.0.20",
|
|
283
283
|
"openapi-sampler": "^1.3.0",
|
|
284
284
|
"yaml": "^1.10.2"
|
|
285
285
|
}
|
|
@@ -297,11 +297,11 @@
|
|
|
297
297
|
}
|
|
298
298
|
},
|
|
299
299
|
"node_modules/@asyncapi/parser": {
|
|
300
|
-
"version": "3.0
|
|
301
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.
|
|
302
|
-
"integrity": "sha512-
|
|
300
|
+
"version": "3.1.0",
|
|
301
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.1.0.tgz",
|
|
302
|
+
"integrity": "sha512-rUd+fsPRE68o+F3gLqk7OaBj5J5VgBiLk9eJBGEXolNmKbVd45mxJm2aBpMkphQEmYHuBvxZyiNYlSCyr1D2fA==",
|
|
303
303
|
"dependencies": {
|
|
304
|
-
"@asyncapi/specs": "^6.
|
|
304
|
+
"@asyncapi/specs": "^6.7.1",
|
|
305
305
|
"@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
|
|
306
306
|
"@stoplight/json": "^3.20.2",
|
|
307
307
|
"@stoplight/json-ref-readers": "^1.2.2",
|
|
@@ -404,14 +404,14 @@
|
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
"node_modules/@asyncapi/react-component": {
|
|
407
|
-
"version": "1.4.
|
|
408
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.
|
|
409
|
-
"integrity": "sha512-
|
|
407
|
+
"version": "1.4.10",
|
|
408
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
|
|
409
|
+
"integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
|
|
410
410
|
"dependencies": {
|
|
411
|
-
"@asyncapi/avro-schema-parser": "^3.0.
|
|
412
|
-
"@asyncapi/openapi-schema-parser": "^3.0.
|
|
411
|
+
"@asyncapi/avro-schema-parser": "^3.0.22",
|
|
412
|
+
"@asyncapi/openapi-schema-parser": "^3.0.22",
|
|
413
413
|
"@asyncapi/parser": "^3.0.14",
|
|
414
|
-
"@asyncapi/protobuf-schema-parser": "^3.2.
|
|
414
|
+
"@asyncapi/protobuf-schema-parser": "^3.2.12",
|
|
415
415
|
"highlight.js": "^10.7.2",
|
|
416
416
|
"isomorphic-dompurify": "^0.13.0",
|
|
417
417
|
"marked": "^4.0.14",
|
|
@@ -424,9 +424,9 @@
|
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
426
|
"node_modules/@asyncapi/specs": {
|
|
427
|
-
"version": "6.
|
|
428
|
-
"resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.
|
|
429
|
-
"integrity": "sha512-
|
|
427
|
+
"version": "6.7.1",
|
|
428
|
+
"resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.1.tgz",
|
|
429
|
+
"integrity": "sha512-jEaW2vgAwD9GboCdO/TI1zN2k+iowL8YFYwiZwTIr4U4KDmsgo3BLypScl6Jl4+IvY9RdsWE67nuzVX7jooiqQ==",
|
|
430
430
|
"dependencies": {
|
|
431
431
|
"@types/json-schema": "^7.0.11"
|
|
432
432
|
}
|
|
@@ -5583,9 +5583,9 @@
|
|
|
5583
5583
|
}
|
|
5584
5584
|
},
|
|
5585
5585
|
"node_modules/dompurify": {
|
|
5586
|
-
"version": "2.5.
|
|
5587
|
-
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.
|
|
5588
|
-
"integrity": "sha512-
|
|
5586
|
+
"version": "2.5.5",
|
|
5587
|
+
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.5.tgz",
|
|
5588
|
+
"integrity": "sha512-FgbqnEPiv5Vdtwt6Mxl7XSylttCC03cqP5ldNT2z+Kj0nLxPHJH4+1Cyf5Jasxhw93Rl4Oo11qRoUV72fmya2Q=="
|
|
5589
5589
|
},
|
|
5590
5590
|
"node_modules/dotenv": {
|
|
5591
5591
|
"version": "10.0.0",
|
|
@@ -9108,9 +9108,9 @@
|
|
|
9108
9108
|
}
|
|
9109
9109
|
},
|
|
9110
9110
|
"node_modules/nwsapi": {
|
|
9111
|
-
"version": "2.2.
|
|
9112
|
-
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.
|
|
9113
|
-
"integrity": "sha512-
|
|
9111
|
+
"version": "2.2.10",
|
|
9112
|
+
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz",
|
|
9113
|
+
"integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ=="
|
|
9114
9114
|
},
|
|
9115
9115
|
"node_modules/object-assign": {
|
|
9116
9116
|
"version": "4.1.1",
|
|
@@ -9242,9 +9242,9 @@
|
|
|
9242
9242
|
}
|
|
9243
9243
|
},
|
|
9244
9244
|
"node_modules/openapi-sampler": {
|
|
9245
|
-
"version": "1.
|
|
9246
|
-
"resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.
|
|
9247
|
-
"integrity": "sha512-
|
|
9245
|
+
"version": "1.5.1",
|
|
9246
|
+
"resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.1.tgz",
|
|
9247
|
+
"integrity": "sha512-tIWIrZUKNAsbqf3bd9U1oH6JEXo8LNYuDlXw26By67EygpjT+ArFnsxxyTMjFWRfbqo5ozkvgSQDK69Gd8CddA==",
|
|
9248
9248
|
"dependencies": {
|
|
9249
9249
|
"@types/json-schema": "^7.0.7",
|
|
9250
9250
|
"json-pointer": "0.6.2"
|
|
@@ -9964,7 +9964,7 @@
|
|
|
9964
9964
|
"version": "14.4.1",
|
|
9965
9965
|
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-14.4.1.tgz",
|
|
9966
9966
|
"integrity": "sha512-+H0Gm84aXUvSLdSiDROtLlOofftClgw2TdceMvvCU9UvMryappoeS3+eOLfKvoy4sm8B8MWnYmPhWxVFudAOFQ==",
|
|
9967
|
-
"deprecated": "<
|
|
9967
|
+
"deprecated": "< 22.6.4 is no longer supported",
|
|
9968
9968
|
"hasInstallScript": true,
|
|
9969
9969
|
"dependencies": {
|
|
9970
9970
|
"cross-fetch": "3.1.5",
|
|
@@ -11760,9 +11760,9 @@
|
|
|
11760
11760
|
}
|
|
11761
11761
|
},
|
|
11762
11762
|
"node_modules/tough-cookie": {
|
|
11763
|
-
"version": "4.1.
|
|
11764
|
-
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.
|
|
11765
|
-
"integrity": "sha512-
|
|
11763
|
+
"version": "4.1.4",
|
|
11764
|
+
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
|
|
11765
|
+
"integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
|
|
11766
11766
|
"dependencies": {
|
|
11767
11767
|
"psl": "^1.1.33",
|
|
11768
11768
|
"punycode": "^2.1.1",
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
"name": "Account Service",
|
|
4
4
|
"value": "simple-asyncapi.yml"
|
|
5
5
|
},
|
|
6
|
+
{
|
|
7
|
+
"name": "Adeo AsyncAPI Case Study - (protocols: kafka,kafka,kafka)",
|
|
8
|
+
"value": "adeo-kafka-request-reply-asyncapi.yml"
|
|
9
|
+
},
|
|
6
10
|
{
|
|
7
11
|
"name": "AnyOf example",
|
|
8
12
|
"value": "anyof-asyncapi.yml"
|
|
@@ -7,9 +7,11 @@ export default class Models extends Command {
|
|
|
7
7
|
'diagnostics-format': import("@oclif/core/lib/interfaces").OptionFlag<import("@stoplight/spectral-cli/dist/services/config").OutputFormat, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
8
|
'fail-severity': import("@oclif/core/lib/interfaces").OptionFlag<"error" | "warn" | "info" | "hint", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
9
|
'no-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
pyDantic: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
11
|
javaIncludeComments: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
12
|
javaJackson: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
13
|
javaConstraints: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
javaArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
15
|
csharpAutoImplement: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
16
|
csharpNewtonsoft: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
17
|
csharpArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
@@ -23,9 +23,6 @@ class Models extends base_1.default {
|
|
|
23
23
|
output = parsedArgs.output;
|
|
24
24
|
}
|
|
25
25
|
const inputFile = (yield (0, SpecificationFile_1.load)(file)) || (yield (0, SpecificationFile_1.load)());
|
|
26
|
-
if (inputFile.isAsyncAPI3()) {
|
|
27
|
-
this.error('Generate Models command does not support AsyncAPI v3 yet, please checkout https://github.com/asyncapi/modelina/issues/1376');
|
|
28
|
-
}
|
|
29
26
|
const { document, diagnostics, status } = yield (0, parser_1.parse)(this, inputFile, flags);
|
|
30
27
|
if (!document || status === 'invalid') {
|
|
31
28
|
const severityErrors = diagnostics.filter((obj) => obj.severity === 0);
|
|
@@ -3,9 +3,11 @@ export declare const modelsFlags: () => {
|
|
|
3
3
|
'diagnostics-format': import("@oclif/core/lib/interfaces").OptionFlag<import("@stoplight/spectral-cli/dist/services/config").OutputFormat, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
4
4
|
'fail-severity': import("@oclif/core/lib/interfaces").OptionFlag<"error" | "warn" | "info" | "hint", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
5
5
|
'no-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
pyDantic: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
7
|
javaIncludeComments: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
8
|
javaJackson: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
9
|
javaConstraints: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
javaArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
11
|
csharpAutoImplement: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
12
|
csharpNewtonsoft: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
13
|
csharpArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
package/oclif.manifest.json
CHANGED
|
@@ -881,6 +881,26 @@
|
|
|
881
881
|
"allowNo": false,
|
|
882
882
|
"type": "boolean"
|
|
883
883
|
},
|
|
884
|
+
"javaArrayType": {
|
|
885
|
+
"description": "Java specific, define which type of array needs to be generated.",
|
|
886
|
+
"name": "javaArrayType",
|
|
887
|
+
"required": false,
|
|
888
|
+
"default": "Array",
|
|
889
|
+
"hasDynamicHelp": false,
|
|
890
|
+
"multiple": false,
|
|
891
|
+
"options": [
|
|
892
|
+
"Array",
|
|
893
|
+
"List"
|
|
894
|
+
],
|
|
895
|
+
"type": "option"
|
|
896
|
+
},
|
|
897
|
+
"pyDantic": {
|
|
898
|
+
"description": "Python specific, generate the Pydantic models.",
|
|
899
|
+
"name": "pyDantic",
|
|
900
|
+
"required": false,
|
|
901
|
+
"allowNo": false,
|
|
902
|
+
"type": "boolean"
|
|
903
|
+
},
|
|
884
904
|
"no-interactive": {
|
|
885
905
|
"description": "Disable interactive mode and run with the provided flags.",
|
|
886
906
|
"name": "no-interactive",
|
|
@@ -967,7 +987,7 @@
|
|
|
967
987
|
},
|
|
968
988
|
"example": {
|
|
969
989
|
"char": "e",
|
|
970
|
-
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
990
|
+
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - adeo-kafka-request-reply-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
971
991
|
"name": "example",
|
|
972
992
|
"hasDynamicHelp": false,
|
|
973
993
|
"multiple": false,
|
|
@@ -1097,7 +1117,7 @@
|
|
|
1097
1117
|
},
|
|
1098
1118
|
"example": {
|
|
1099
1119
|
"char": "e",
|
|
1100
|
-
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
1120
|
+
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - adeo-kafka-request-reply-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
1101
1121
|
"name": "example",
|
|
1102
1122
|
"hasDynamicHelp": false,
|
|
1103
1123
|
"multiple": false,
|
|
@@ -1477,5 +1497,5 @@
|
|
|
1477
1497
|
]
|
|
1478
1498
|
}
|
|
1479
1499
|
},
|
|
1480
|
-
"version": "2.0.
|
|
1500
|
+
"version": "2.0.4"
|
|
1481
1501
|
}
|
package/package.json
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/cli",
|
|
3
3
|
"description": "All in one CLI for all AsyncAPI tools",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run_bin"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/asyncapi/cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@asyncapi/avro-schema-parser": "^3.0.
|
|
12
|
-
"@asyncapi/bundler": "^0.5.
|
|
13
|
-
"@asyncapi/converter": "^1.4.
|
|
11
|
+
"@asyncapi/avro-schema-parser": "^3.0.23",
|
|
12
|
+
"@asyncapi/bundler": "^0.5.3",
|
|
13
|
+
"@asyncapi/converter": "^1.4.20",
|
|
14
14
|
"@asyncapi/diff": "^0.4.1",
|
|
15
15
|
"@asyncapi/generator": "^1.17.25",
|
|
16
|
+
"@asyncapi/modelina": "^3.6.0",
|
|
16
17
|
"@asyncapi/modelina-cli": "^4.0.0-next.48",
|
|
17
|
-
"@asyncapi/openapi-schema-parser": "^3.0.
|
|
18
|
+
"@asyncapi/openapi-schema-parser": "^3.0.24",
|
|
18
19
|
"@asyncapi/optimizer": "^1.0.2",
|
|
19
|
-
"@asyncapi/parser": "^3.0
|
|
20
|
-
"@asyncapi/protobuf-schema-parser": "^3.2.
|
|
21
|
-
"@asyncapi/raml-dt-schema-parser": "^4.0.
|
|
20
|
+
"@asyncapi/parser": "^3.1.0",
|
|
21
|
+
"@asyncapi/protobuf-schema-parser": "^3.2.13",
|
|
22
|
+
"@asyncapi/raml-dt-schema-parser": "^4.0.24",
|
|
22
23
|
"@asyncapi/studio": "^0.20.0",
|
|
23
24
|
"@clack/prompts": "^0.7.0",
|
|
24
25
|
"@oclif/core": "^3",
|
|
25
26
|
"@oclif/errors": "^1.3.6",
|
|
26
27
|
"@oclif/plugin-not-found": "^2.3.22",
|
|
27
|
-
"@smoya/asyncapi-adoption-metrics": "^2.4.
|
|
28
|
-
"@smoya/multi-parser": "^5.0.
|
|
28
|
+
"@smoya/asyncapi-adoption-metrics": "^2.4.9",
|
|
29
|
+
"@smoya/multi-parser": "^5.0.9",
|
|
29
30
|
"@stoplight/spectral-cli": "6.9.0",
|
|
30
31
|
"ajv": "^8.12.0",
|
|
31
32
|
"chalk": "^4.1.0",
|