@botpress/cli 0.9.6 → 0.11.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.
Files changed (43) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/dist/code-generation/integration-implementation.js +17 -17
  3. package/dist/code-generation/integration-implementation.js.map +2 -2
  4. package/dist/code-generation/integration-instance.js +18 -18
  5. package/dist/code-generation/integration-instance.js.map +2 -2
  6. package/dist/code-generation/integration-schemas/channels-module.js +6 -6
  7. package/dist/code-generation/integration-schemas/channels-module.js.map +2 -2
  8. package/dist/command-definitions.js +2 -1
  9. package/dist/command-definitions.js.map +2 -2
  10. package/dist/command-implementations/index.js +3 -1
  11. package/dist/command-implementations/index.js.map +2 -2
  12. package/dist/command-implementations/lint-command.js +59 -0
  13. package/dist/command-implementations/lint-command.js.map +7 -0
  14. package/dist/config.js +5 -1
  15. package/dist/config.js.map +2 -2
  16. package/dist/errors.js.map +2 -2
  17. package/dist/integration-ref.test.js +2 -3
  18. package/dist/integration-ref.test.js.map +2 -2
  19. package/dist/linter/integration-linter.js +73 -0
  20. package/dist/linter/integration-linter.js.map +7 -0
  21. package/dist/linter/integration-linter.test.js +180 -0
  22. package/dist/linter/integration-linter.test.js.map +7 -0
  23. package/dist/linter/rulesets/integration.ruleset.js +354 -0
  24. package/dist/linter/rulesets/integration.ruleset.js.map +7 -0
  25. package/dist/linter/rulesets/integration.ruleset.test.js +825 -0
  26. package/dist/linter/rulesets/integration.ruleset.test.js.map +7 -0
  27. package/dist/linter/spectral-functions.js +36 -0
  28. package/dist/linter/spectral-functions.js.map +7 -0
  29. package/dist/logger/base-logger.js.map +2 -2
  30. package/dist/logger/index.js.map +2 -2
  31. package/dist/utils/cache-utils.js.map +2 -2
  32. package/dist/utils/event-emitter.js +6 -6
  33. package/dist/utils/event-emitter.js.map +2 -2
  34. package/dist/utils/file-watcher.js +7 -7
  35. package/dist/utils/file-watcher.js.map +2 -2
  36. package/dist/utils/prompt-utils.js.map +2 -2
  37. package/dist/utils/tunnel-utils.js.map +2 -2
  38. package/e2e/index.ts +1 -1
  39. package/package.json +5 -2
  40. package/templates/echo-bot/package.json +1 -1
  41. package/templates/empty-integration/package.json +1 -1
  42. package/templates/hello-world/package.json +1 -1
  43. package/templates/webhook-message/package.json +1 -1
@@ -0,0 +1,825 @@
1
+ "use strict";
2
+ var import_vitest = require("vitest");
3
+ var import_integration = require("./integration.ruleset");
4
+ var import_spectral_core = require("@stoplight/spectral-core");
5
+ var import_spectral_parsers = require("@stoplight/spectral-parsers");
6
+ const describeRule = (ruleName, fn) => import_vitest.describe.concurrent(ruleName, () => {
7
+ const spectral = new import_spectral_core.Spectral();
8
+ spectral.setRuleset({ rules: { [ruleName]: import_integration.INTEGRATION_RULESET.rules[ruleName] } });
9
+ const lintFn = (definition) => spectral.run(new import_spectral_core.Document(JSON.stringify(definition), import_spectral_parsers.Json));
10
+ fn(lintFn);
11
+ });
12
+ const EMPTY_STRING = "";
13
+ const TRUTHY_STRING = "truthy";
14
+ const ACTION_NAME = "actionName";
15
+ const EVENT_NAME = "eventName";
16
+ const CONFIG_NAME = "configName";
17
+ const PARAM_NAME = "paramName";
18
+ const TAG_NAME = "tagName";
19
+ const CHANNEL_NAME = "channelName";
20
+ const STATE_NAME = "stateName";
21
+ const MESSAGE_TYPE = "text";
22
+ const ZUI = "x-zui";
23
+ const LEGACY_ZUI = "ui";
24
+ describeRule("integration-title-must-be-present", (lint) => {
25
+ (0, import_vitest.test)("missing title should trigger", async () => {
26
+ const definition = {};
27
+ const results = await lint(definition);
28
+ (0, import_vitest.expect)(results).toHaveLength(1);
29
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
30
+ });
31
+ (0, import_vitest.test)("empty title should trigger", async () => {
32
+ const definition = { title: EMPTY_STRING };
33
+ const results = await lint(definition);
34
+ (0, import_vitest.expect)(results).toHaveLength(1);
35
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["title"]);
36
+ });
37
+ (0, import_vitest.test)("valid title should not trigger", async () => {
38
+ const definition = { title: TRUTHY_STRING };
39
+ const results = await lint(definition);
40
+ (0, import_vitest.expect)(results).toHaveLength(0);
41
+ });
42
+ });
43
+ describeRule("integration-description-must-be-present", (lint) => {
44
+ (0, import_vitest.test)("missing description should trigger", async () => {
45
+ const definition = {};
46
+ const results = await lint(definition);
47
+ (0, import_vitest.expect)(results).toHaveLength(1);
48
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
49
+ });
50
+ (0, import_vitest.test)("empty description should trigger", async () => {
51
+ const definition = { description: EMPTY_STRING };
52
+ const results = await lint(definition);
53
+ (0, import_vitest.expect)(results).toHaveLength(1);
54
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["description"]);
55
+ });
56
+ (0, import_vitest.test)("valid description should not trigger", async () => {
57
+ const definition = { description: TRUTHY_STRING };
58
+ const results = await lint(definition);
59
+ (0, import_vitest.expect)(results).toHaveLength(0);
60
+ });
61
+ });
62
+ describeRule("integration-must-have-an-icon", (lint) => {
63
+ (0, import_vitest.test)("missing icon should trigger", async () => {
64
+ const definition = {};
65
+ const results = await lint(definition);
66
+ (0, import_vitest.expect)(results).toHaveLength(1);
67
+ (0, import_vitest.expect)(results[0]?.message).toContain("icon");
68
+ });
69
+ (0, import_vitest.test)("empty icon should trigger", async () => {
70
+ const definition = { icon: EMPTY_STRING };
71
+ const results = await lint(definition);
72
+ (0, import_vitest.expect)(results).toHaveLength(1);
73
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["icon"]);
74
+ });
75
+ (0, import_vitest.test)("valid icon should not trigger", async () => {
76
+ const definition = { icon: TRUTHY_STRING };
77
+ const results = await lint(definition);
78
+ (0, import_vitest.expect)(results).toHaveLength(0);
79
+ });
80
+ });
81
+ describeRule("integration-must-have-a-readme-file", (lint) => {
82
+ (0, import_vitest.test)("missing readme should trigger", async () => {
83
+ const definition = {};
84
+ const results = await lint(definition);
85
+ (0, import_vitest.expect)(results).toHaveLength(1);
86
+ (0, import_vitest.expect)(results[0]?.message).toContain("readme");
87
+ });
88
+ (0, import_vitest.test)("empty readme should trigger", async () => {
89
+ const definition = { readme: EMPTY_STRING };
90
+ const results = await lint(definition);
91
+ (0, import_vitest.expect)(results).toHaveLength(1);
92
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["readme"]);
93
+ });
94
+ (0, import_vitest.test)("valid readme should not trigger", async () => {
95
+ const definition = { readme: TRUTHY_STRING };
96
+ const results = await lint(definition);
97
+ (0, import_vitest.expect)(results).toHaveLength(0);
98
+ });
99
+ });
100
+ describeRule("actions-should-have-a-title", (lint) => {
101
+ (0, import_vitest.test)("missing title should trigger", async () => {
102
+ const definition = { actions: { [ACTION_NAME]: {} } };
103
+ const results = await lint(definition);
104
+ (0, import_vitest.expect)(results).toHaveLength(1);
105
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME]);
106
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
107
+ });
108
+ (0, import_vitest.test)("empty title should trigger", async () => {
109
+ const definition = { actions: { [ACTION_NAME]: { title: EMPTY_STRING } } };
110
+ const results = await lint(definition);
111
+ (0, import_vitest.expect)(results).toHaveLength(1);
112
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME, "title"]);
113
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
114
+ });
115
+ (0, import_vitest.test)("valid title should not trigger", async () => {
116
+ const definition = { actions: { [ACTION_NAME]: { title: TRUTHY_STRING } } };
117
+ const results = await lint(definition);
118
+ (0, import_vitest.expect)(results).toHaveLength(0);
119
+ });
120
+ });
121
+ describeRule("actions-must-have-a-description", (lint) => {
122
+ (0, import_vitest.test)("missing description should trigger", async () => {
123
+ const definition = { actions: { [ACTION_NAME]: {} } };
124
+ const results = await lint(definition);
125
+ (0, import_vitest.expect)(results).toHaveLength(1);
126
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME]);
127
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
128
+ });
129
+ (0, import_vitest.test)("empty description should trigger", async () => {
130
+ const definition = { actions: { [ACTION_NAME]: { description: EMPTY_STRING } } };
131
+ const results = await lint(definition);
132
+ (0, import_vitest.expect)(results).toHaveLength(1);
133
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME, "description"]);
134
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
135
+ });
136
+ (0, import_vitest.test)("valid description should not trigger", async () => {
137
+ const definition = { actions: { [ACTION_NAME]: { description: TRUTHY_STRING } } };
138
+ const results = await lint(definition);
139
+ (0, import_vitest.expect)(results).toHaveLength(0);
140
+ });
141
+ });
142
+ describeRule("action-inputparams-should-have-a-title", (lint) => {
143
+ (0, import_vitest.test)("missing title should trigger", async () => {
144
+ const definition = {
145
+ actions: { [ACTION_NAME]: { input: { schema: { properties: { [PARAM_NAME]: { [ZUI]: {} } } } } } }
146
+ };
147
+ const results = await lint(definition);
148
+ (0, import_vitest.expect)(results).toHaveLength(1);
149
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME, "input", "schema", "properties", PARAM_NAME, ZUI]);
150
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
151
+ });
152
+ (0, import_vitest.test)("empty title should trigger", async () => {
153
+ const definition = {
154
+ actions: {
155
+ [ACTION_NAME]: { input: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: EMPTY_STRING } } } } } }
156
+ }
157
+ };
158
+ const results = await lint(definition);
159
+ (0, import_vitest.expect)(results).toHaveLength(1);
160
+ (0, import_vitest.expect)(results[0]?.path).toEqual([
161
+ "actions",
162
+ ACTION_NAME,
163
+ "input",
164
+ "schema",
165
+ "properties",
166
+ PARAM_NAME,
167
+ ZUI,
168
+ "title"
169
+ ]);
170
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
171
+ });
172
+ (0, import_vitest.test)("valid title should not trigger", async () => {
173
+ const definition = {
174
+ actions: {
175
+ [ACTION_NAME]: { input: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: TRUTHY_STRING } } } } } }
176
+ }
177
+ };
178
+ const results = await lint(definition);
179
+ (0, import_vitest.expect)(results).toHaveLength(0);
180
+ });
181
+ });
182
+ describeRule("action-inputparams-must-have-a-description", (lint) => {
183
+ (0, import_vitest.test)("missing description should trigger", async () => {
184
+ const definition = {
185
+ actions: { [ACTION_NAME]: { input: { schema: { properties: { [PARAM_NAME]: {} } } } } }
186
+ };
187
+ const results = await lint(definition);
188
+ (0, import_vitest.expect)(results).toHaveLength(1);
189
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME, "input", "schema", "properties", PARAM_NAME]);
190
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
191
+ });
192
+ (0, import_vitest.test)("empty description should trigger", async () => {
193
+ const definition = {
194
+ actions: {
195
+ [ACTION_NAME]: { input: { schema: { properties: { [PARAM_NAME]: { description: EMPTY_STRING } } } } }
196
+ }
197
+ };
198
+ const results = await lint(definition);
199
+ (0, import_vitest.expect)(results).toHaveLength(1);
200
+ (0, import_vitest.expect)(results[0]?.path).toEqual([
201
+ "actions",
202
+ ACTION_NAME,
203
+ "input",
204
+ "schema",
205
+ "properties",
206
+ PARAM_NAME,
207
+ "description"
208
+ ]);
209
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
210
+ });
211
+ (0, import_vitest.test)("valid description should not trigger", async () => {
212
+ const definition = {
213
+ actions: {
214
+ [ACTION_NAME]: { input: { schema: { properties: { [PARAM_NAME]: { description: TRUTHY_STRING } } } } }
215
+ }
216
+ };
217
+ const results = await lint(definition);
218
+ (0, import_vitest.expect)(results).toHaveLength(0);
219
+ });
220
+ });
221
+ describeRule("action-outputparams-should-have-a-title", (lint) => {
222
+ (0, import_vitest.test)("missing title should trigger", async () => {
223
+ const definition = {
224
+ actions: { [ACTION_NAME]: { output: { schema: { properties: { [PARAM_NAME]: { [ZUI]: {} } } } } } }
225
+ };
226
+ const results = await lint(definition);
227
+ (0, import_vitest.expect)(results).toHaveLength(1);
228
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME, "output", "schema", "properties", PARAM_NAME, ZUI]);
229
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
230
+ });
231
+ (0, import_vitest.test)("empty title should trigger", async () => {
232
+ const definition = {
233
+ actions: {
234
+ [ACTION_NAME]: { output: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: EMPTY_STRING } } } } } }
235
+ }
236
+ };
237
+ const results = await lint(definition);
238
+ (0, import_vitest.expect)(results).toHaveLength(1);
239
+ (0, import_vitest.expect)(results[0]?.path).toEqual([
240
+ "actions",
241
+ ACTION_NAME,
242
+ "output",
243
+ "schema",
244
+ "properties",
245
+ PARAM_NAME,
246
+ ZUI,
247
+ "title"
248
+ ]);
249
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
250
+ });
251
+ (0, import_vitest.test)("valid title should not trigger", async () => {
252
+ const definition = {
253
+ actions: {
254
+ [ACTION_NAME]: { output: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: TRUTHY_STRING } } } } } }
255
+ }
256
+ };
257
+ const results = await lint(definition);
258
+ (0, import_vitest.expect)(results).toHaveLength(0);
259
+ });
260
+ });
261
+ describeRule("action-outputparams-must-have-a-description", (lint) => {
262
+ (0, import_vitest.test)("missing description should trigger", async () => {
263
+ const definition = {
264
+ actions: { [ACTION_NAME]: { output: { schema: { properties: { [PARAM_NAME]: {} } } } } }
265
+ };
266
+ const results = await lint(definition);
267
+ (0, import_vitest.expect)(results).toHaveLength(1);
268
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["actions", ACTION_NAME, "output", "schema", "properties", PARAM_NAME]);
269
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
270
+ });
271
+ (0, import_vitest.test)("empty description should trigger", async () => {
272
+ const definition = {
273
+ actions: {
274
+ [ACTION_NAME]: { output: { schema: { properties: { [PARAM_NAME]: { description: EMPTY_STRING } } } } }
275
+ }
276
+ };
277
+ const results = await lint(definition);
278
+ (0, import_vitest.expect)(results).toHaveLength(1);
279
+ (0, import_vitest.expect)(results[0]?.path).toEqual([
280
+ "actions",
281
+ ACTION_NAME,
282
+ "output",
283
+ "schema",
284
+ "properties",
285
+ PARAM_NAME,
286
+ "description"
287
+ ]);
288
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
289
+ });
290
+ (0, import_vitest.test)("valid description should not trigger", async () => {
291
+ const definition = {
292
+ actions: {
293
+ [ACTION_NAME]: { output: { schema: { properties: { [PARAM_NAME]: { description: TRUTHY_STRING } } } } }
294
+ }
295
+ };
296
+ const results = await lint(definition);
297
+ (0, import_vitest.expect)(results).toHaveLength(0);
298
+ });
299
+ });
300
+ describeRule("event-outputparams-should-have-title", (lint) => {
301
+ (0, import_vitest.test)("missing title should trigger", async () => {
302
+ const definition = {
303
+ events: { [EVENT_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: {} } } } } }
304
+ };
305
+ const results = await lint(definition);
306
+ (0, import_vitest.expect)(results).toHaveLength(1);
307
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME, "schema", "properties", PARAM_NAME, ZUI]);
308
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
309
+ });
310
+ (0, import_vitest.test)("empty title should trigger", async () => {
311
+ const definition = {
312
+ events: {
313
+ [EVENT_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: EMPTY_STRING } } } } }
314
+ }
315
+ };
316
+ const results = await lint(definition);
317
+ (0, import_vitest.expect)(results).toHaveLength(1);
318
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME, "schema", "properties", PARAM_NAME, ZUI, "title"]);
319
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
320
+ });
321
+ (0, import_vitest.test)("valid title should not trigger", async () => {
322
+ const definition = {
323
+ events: {
324
+ [EVENT_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: TRUTHY_STRING } } } } }
325
+ }
326
+ };
327
+ const results = await lint(definition);
328
+ (0, import_vitest.expect)(results).toHaveLength(0);
329
+ });
330
+ });
331
+ describeRule("event-outputparams-must-have-description", (lint) => {
332
+ (0, import_vitest.test)("missing description should trigger", async () => {
333
+ const definition = {
334
+ events: { [EVENT_NAME]: { schema: { properties: { [PARAM_NAME]: {} } } } }
335
+ };
336
+ const results = await lint(definition);
337
+ (0, import_vitest.expect)(results).toHaveLength(1);
338
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME, "schema", "properties", PARAM_NAME]);
339
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
340
+ });
341
+ (0, import_vitest.test)("empty description should trigger", async () => {
342
+ const definition = {
343
+ events: {
344
+ [EVENT_NAME]: { schema: { properties: { [PARAM_NAME]: { description: EMPTY_STRING } } } }
345
+ }
346
+ };
347
+ const results = await lint(definition);
348
+ (0, import_vitest.expect)(results).toHaveLength(1);
349
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME, "schema", "properties", PARAM_NAME, "description"]);
350
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
351
+ });
352
+ (0, import_vitest.test)("valid description should not trigger", async () => {
353
+ const definition = {
354
+ events: {
355
+ [EVENT_NAME]: { schema: { properties: { [PARAM_NAME]: { description: TRUTHY_STRING } } } }
356
+ }
357
+ };
358
+ const results = await lint(definition);
359
+ (0, import_vitest.expect)(results).toHaveLength(0);
360
+ });
361
+ });
362
+ describeRule("events-must-have-a-title", (lint) => {
363
+ (0, import_vitest.test)("missing title should trigger", async () => {
364
+ const definition = { events: { [EVENT_NAME]: {} } };
365
+ const results = await lint(definition);
366
+ (0, import_vitest.expect)(results).toHaveLength(1);
367
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME]);
368
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
369
+ });
370
+ (0, import_vitest.test)("empty title should trigger", async () => {
371
+ const definition = { events: { [EVENT_NAME]: { title: EMPTY_STRING } } };
372
+ const results = await lint(definition);
373
+ (0, import_vitest.expect)(results).toHaveLength(1);
374
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME, "title"]);
375
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
376
+ });
377
+ (0, import_vitest.test)("valid title should not trigger", async () => {
378
+ const definition = { events: { [EVENT_NAME]: { title: TRUTHY_STRING } } };
379
+ const results = await lint(definition);
380
+ (0, import_vitest.expect)(results).toHaveLength(0);
381
+ });
382
+ });
383
+ describeRule("events-must-have-a-description", (lint) => {
384
+ (0, import_vitest.test)("missing description should trigger", async () => {
385
+ const definition = { events: { [EVENT_NAME]: {} } };
386
+ const results = await lint(definition);
387
+ (0, import_vitest.expect)(results).toHaveLength(1);
388
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME]);
389
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
390
+ });
391
+ (0, import_vitest.test)("empty description should trigger", async () => {
392
+ const definition = { events: { [EVENT_NAME]: { description: EMPTY_STRING } } };
393
+ const results = await lint(definition);
394
+ (0, import_vitest.expect)(results).toHaveLength(1);
395
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["events", EVENT_NAME, "description"]);
396
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
397
+ });
398
+ (0, import_vitest.test)("valid description should not trigger", async () => {
399
+ const definition = { events: { [EVENT_NAME]: { description: TRUTHY_STRING } } };
400
+ const results = await lint(definition);
401
+ (0, import_vitest.expect)(results).toHaveLength(0);
402
+ });
403
+ });
404
+ describeRule("configuration-fields-must-have-a-title", (lint) => {
405
+ (0, import_vitest.test)("missing title should trigger", async () => {
406
+ const definition = { configuration: { schema: { properties: { [PARAM_NAME]: { [ZUI]: {} } } } } };
407
+ const results = await lint(definition);
408
+ (0, import_vitest.expect)(results).toHaveLength(1);
409
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configuration", "schema", "properties", PARAM_NAME, ZUI]);
410
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
411
+ });
412
+ (0, import_vitest.test)("empty title should trigger", async () => {
413
+ const definition = {
414
+ configuration: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: EMPTY_STRING } } } } }
415
+ };
416
+ const results = await lint(definition);
417
+ (0, import_vitest.expect)(results).toHaveLength(1);
418
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configuration", "schema", "properties", PARAM_NAME, ZUI, "title"]);
419
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
420
+ });
421
+ (0, import_vitest.test)("valid title should not trigger", async () => {
422
+ const definition = {
423
+ configuration: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: TRUTHY_STRING } } } } }
424
+ };
425
+ const results = await lint(definition);
426
+ (0, import_vitest.expect)(results).toHaveLength(0);
427
+ });
428
+ });
429
+ describeRule("multiple-configurations-must-have-a-title", (lint) => {
430
+ (0, import_vitest.test)("missing title should trigger", async () => {
431
+ const definition = {
432
+ configurations: { [CONFIG_NAME]: {} }
433
+ };
434
+ const results = await lint(definition);
435
+ (0, import_vitest.expect)(results).toHaveLength(1);
436
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME]);
437
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
438
+ });
439
+ (0, import_vitest.test)("empty title should trigger", async () => {
440
+ const definition = {
441
+ configurations: { [CONFIG_NAME]: { title: EMPTY_STRING } }
442
+ };
443
+ const results = await lint(definition);
444
+ (0, import_vitest.expect)(results).toHaveLength(1);
445
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME, "title"]);
446
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
447
+ });
448
+ (0, import_vitest.test)("valid title should not trigger", async () => {
449
+ const definition = {
450
+ configurations: { [CONFIG_NAME]: { title: TRUTHY_STRING } }
451
+ };
452
+ const results = await lint(definition);
453
+ (0, import_vitest.expect)(results).toHaveLength(0);
454
+ });
455
+ });
456
+ describeRule("multiple-configurations-must-have-a-description", (lint) => {
457
+ (0, import_vitest.test)("missing description should trigger", async () => {
458
+ const definition = {
459
+ configurations: { [CONFIG_NAME]: {} }
460
+ };
461
+ const results = await lint(definition);
462
+ (0, import_vitest.expect)(results).toHaveLength(1);
463
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME]);
464
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
465
+ });
466
+ (0, import_vitest.test)("empty description should trigger", async () => {
467
+ const definition = {
468
+ configurations: { [CONFIG_NAME]: { description: EMPTY_STRING } }
469
+ };
470
+ const results = await lint(definition);
471
+ (0, import_vitest.expect)(results).toHaveLength(1);
472
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME, "description"]);
473
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
474
+ });
475
+ (0, import_vitest.test)("valid description should not trigger", async () => {
476
+ const definition = {
477
+ configurations: { [CONFIG_NAME]: { description: TRUTHY_STRING } }
478
+ };
479
+ const results = await lint(definition);
480
+ (0, import_vitest.expect)(results).toHaveLength(0);
481
+ });
482
+ });
483
+ describeRule("multipes-configurations-fields-must-have-a-title", (lint) => {
484
+ (0, import_vitest.test)("missing title should trigger", async () => {
485
+ const definition = {
486
+ configurations: { [CONFIG_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: {} } } } } }
487
+ };
488
+ const results = await lint(definition);
489
+ (0, import_vitest.expect)(results).toHaveLength(1);
490
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME, "schema", "properties", PARAM_NAME, ZUI]);
491
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
492
+ });
493
+ (0, import_vitest.test)("empty title should trigger", async () => {
494
+ const definition = {
495
+ configurations: {
496
+ [CONFIG_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: EMPTY_STRING } } } } }
497
+ }
498
+ };
499
+ const results = await lint(definition);
500
+ (0, import_vitest.expect)(results).toHaveLength(1);
501
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME, "schema", "properties", PARAM_NAME, ZUI, "title"]);
502
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
503
+ });
504
+ (0, import_vitest.test)("valid title should not trigger", async () => {
505
+ const definition = {
506
+ configurations: {
507
+ [CONFIG_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: TRUTHY_STRING } } } } }
508
+ }
509
+ };
510
+ const results = await lint(definition);
511
+ (0, import_vitest.expect)(results).toHaveLength(0);
512
+ });
513
+ });
514
+ describeRule("multipes-configurations-fields-must-have-a-description", (lint) => {
515
+ (0, import_vitest.test)("missing description should trigger", async () => {
516
+ const definition = {
517
+ configurations: { [CONFIG_NAME]: { schema: { properties: { [PARAM_NAME]: {} } } } }
518
+ };
519
+ const results = await lint(definition);
520
+ (0, import_vitest.expect)(results).toHaveLength(1);
521
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME, "schema", "properties", PARAM_NAME]);
522
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
523
+ });
524
+ (0, import_vitest.test)("empty description should trigger", async () => {
525
+ const definition = {
526
+ configurations: {
527
+ [CONFIG_NAME]: { schema: { properties: { [PARAM_NAME]: { description: EMPTY_STRING } } } }
528
+ }
529
+ };
530
+ const results = await lint(definition);
531
+ (0, import_vitest.expect)(results).toHaveLength(1);
532
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["configurations", CONFIG_NAME, "schema", "properties", PARAM_NAME, "description"]);
533
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
534
+ });
535
+ (0, import_vitest.test)("valid description should not trigger", async () => {
536
+ const definition = {
537
+ configurations: {
538
+ [CONFIG_NAME]: { schema: { properties: { [PARAM_NAME]: { description: TRUTHY_STRING } } } }
539
+ }
540
+ };
541
+ const results = await lint(definition);
542
+ (0, import_vitest.expect)(results).toHaveLength(0);
543
+ });
544
+ });
545
+ describeRule("user-tags-should-have-a-title", (lint) => {
546
+ (0, import_vitest.test)("missing title should trigger", async () => {
547
+ const definition = { user: { tags: { [TAG_NAME]: {} } } };
548
+ const results = await lint(definition);
549
+ (0, import_vitest.expect)(results).toHaveLength(1);
550
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["user", "tags", TAG_NAME]);
551
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
552
+ });
553
+ (0, import_vitest.test)("empty title should trigger", async () => {
554
+ const definition = { user: { tags: { [TAG_NAME]: { title: EMPTY_STRING } } } };
555
+ const results = await lint(definition);
556
+ (0, import_vitest.expect)(results).toHaveLength(1);
557
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["user", "tags", TAG_NAME, "title"]);
558
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
559
+ });
560
+ (0, import_vitest.test)("valid title should not trigger", async () => {
561
+ const definition = { user: { tags: { [TAG_NAME]: { title: TRUTHY_STRING } } } };
562
+ const results = await lint(definition);
563
+ (0, import_vitest.expect)(results).toHaveLength(0);
564
+ });
565
+ });
566
+ describeRule("user-tags-must-have-a-description", (lint) => {
567
+ (0, import_vitest.test)("missing description should trigger", async () => {
568
+ const definition = { user: { tags: { [TAG_NAME]: {} } } };
569
+ const results = await lint(definition);
570
+ (0, import_vitest.expect)(results).toHaveLength(1);
571
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["user", "tags", TAG_NAME]);
572
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
573
+ });
574
+ (0, import_vitest.test)("empty description should trigger", async () => {
575
+ const definition = { user: { tags: { [TAG_NAME]: { description: EMPTY_STRING } } } };
576
+ const results = await lint(definition);
577
+ (0, import_vitest.expect)(results).toHaveLength(1);
578
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["user", "tags", TAG_NAME, "description"]);
579
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
580
+ });
581
+ (0, import_vitest.test)("valid description should not trigger", async () => {
582
+ const definition = { user: { tags: { [TAG_NAME]: { description: TRUTHY_STRING } } } };
583
+ const results = await lint(definition);
584
+ (0, import_vitest.expect)(results).toHaveLength(0);
585
+ });
586
+ });
587
+ describeRule("channels-should-have-a-title", (lint) => {
588
+ (0, import_vitest.test)("missing title should trigger", async () => {
589
+ const definition = { channels: { [CHANNEL_NAME]: {} } };
590
+ const results = await lint(definition);
591
+ (0, import_vitest.expect)(results).toHaveLength(1);
592
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME]);
593
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
594
+ });
595
+ (0, import_vitest.test)("empty title should trigger", async () => {
596
+ const definition = { channels: { [CHANNEL_NAME]: { title: EMPTY_STRING } } };
597
+ const results = await lint(definition);
598
+ (0, import_vitest.expect)(results).toHaveLength(1);
599
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "title"]);
600
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
601
+ });
602
+ (0, import_vitest.test)("valid title should not trigger", async () => {
603
+ const definition = { channels: { [CHANNEL_NAME]: { title: TRUTHY_STRING } } };
604
+ const results = await lint(definition);
605
+ (0, import_vitest.expect)(results).toHaveLength(0);
606
+ });
607
+ });
608
+ describeRule("channels-must-have-a-description", (lint) => {
609
+ (0, import_vitest.test)("missing description should trigger", async () => {
610
+ const definition = { channels: { [CHANNEL_NAME]: {} } };
611
+ const results = await lint(definition);
612
+ (0, import_vitest.expect)(results).toHaveLength(1);
613
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME]);
614
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
615
+ });
616
+ (0, import_vitest.test)("empty description should trigger", async () => {
617
+ const definition = { channels: { [CHANNEL_NAME]: { description: EMPTY_STRING } } };
618
+ const results = await lint(definition);
619
+ (0, import_vitest.expect)(results).toHaveLength(1);
620
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "description"]);
621
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
622
+ });
623
+ (0, import_vitest.test)("valid description should not trigger", async () => {
624
+ const definition = { channels: { [CHANNEL_NAME]: { description: TRUTHY_STRING } } };
625
+ const results = await lint(definition);
626
+ (0, import_vitest.expect)(results).toHaveLength(0);
627
+ });
628
+ });
629
+ describeRule("channels-conversation-tags-should-have-a-title", (lint) => {
630
+ (0, import_vitest.test)("missing title should trigger", async () => {
631
+ const definition = { channels: { [CHANNEL_NAME]: { conversation: { tags: { [TAG_NAME]: {} } } } } };
632
+ const results = await lint(definition);
633
+ (0, import_vitest.expect)(results).toHaveLength(1);
634
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "conversation", "tags", TAG_NAME]);
635
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
636
+ });
637
+ (0, import_vitest.test)("empty title should trigger", async () => {
638
+ const definition = {
639
+ channels: { [CHANNEL_NAME]: { conversation: { tags: { [TAG_NAME]: { title: EMPTY_STRING } } } } }
640
+ };
641
+ const results = await lint(definition);
642
+ (0, import_vitest.expect)(results).toHaveLength(1);
643
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "conversation", "tags", TAG_NAME, "title"]);
644
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
645
+ });
646
+ (0, import_vitest.test)("valid title should not trigger", async () => {
647
+ const definition = {
648
+ channels: { [CHANNEL_NAME]: { conversation: { tags: { [TAG_NAME]: { title: TRUTHY_STRING } } } } }
649
+ };
650
+ const results = await lint(definition);
651
+ (0, import_vitest.expect)(results).toHaveLength(0);
652
+ });
653
+ });
654
+ describeRule("channels-conversation-tags-must-have-a-description", (lint) => {
655
+ (0, import_vitest.test)("missing description should trigger", async () => {
656
+ const definition = { channels: { [CHANNEL_NAME]: { conversation: { tags: { [TAG_NAME]: {} } } } } };
657
+ const results = await lint(definition);
658
+ (0, import_vitest.expect)(results).toHaveLength(1);
659
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "conversation", "tags", TAG_NAME]);
660
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
661
+ });
662
+ (0, import_vitest.test)("empty description should trigger", async () => {
663
+ const definition = {
664
+ channels: { [CHANNEL_NAME]: { conversation: { tags: { [TAG_NAME]: { description: EMPTY_STRING } } } } }
665
+ };
666
+ const results = await lint(definition);
667
+ (0, import_vitest.expect)(results).toHaveLength(1);
668
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "conversation", "tags", TAG_NAME, "description"]);
669
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
670
+ });
671
+ (0, import_vitest.test)("valid description should not trigger", async () => {
672
+ const definition = {
673
+ channels: { [CHANNEL_NAME]: { conversation: { tags: { [TAG_NAME]: { description: TRUTHY_STRING } } } } }
674
+ };
675
+ const results = await lint(definition);
676
+ (0, import_vitest.expect)(results).toHaveLength(0);
677
+ });
678
+ });
679
+ describeRule("channels-message-tags-should-have-a-title", (lint) => {
680
+ (0, import_vitest.test)("missing title should trigger", async () => {
681
+ const definition = { channels: { [CHANNEL_NAME]: { message: { tags: { [TAG_NAME]: {} } } } } };
682
+ const results = await lint(definition);
683
+ (0, import_vitest.expect)(results).toHaveLength(1);
684
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "message", "tags", TAG_NAME]);
685
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
686
+ });
687
+ (0, import_vitest.test)("empty title should trigger", async () => {
688
+ const definition = {
689
+ channels: { [CHANNEL_NAME]: { message: { tags: { [TAG_NAME]: { title: EMPTY_STRING } } } } }
690
+ };
691
+ const results = await lint(definition);
692
+ (0, import_vitest.expect)(results).toHaveLength(1);
693
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "message", "tags", TAG_NAME, "title"]);
694
+ (0, import_vitest.expect)(results[0]?.message).toContain("title");
695
+ });
696
+ (0, import_vitest.test)("valid title should not trigger", async () => {
697
+ const definition = {
698
+ channels: { [CHANNEL_NAME]: { message: { tags: { [TAG_NAME]: { title: TRUTHY_STRING } } } } }
699
+ };
700
+ const results = await lint(definition);
701
+ (0, import_vitest.expect)(results).toHaveLength(0);
702
+ });
703
+ });
704
+ describeRule("channels-message-tags-must-have-a-description", (lint) => {
705
+ (0, import_vitest.test)("missing description should trigger", async () => {
706
+ const definition = { channels: { [CHANNEL_NAME]: { message: { tags: { [TAG_NAME]: {} } } } } };
707
+ const results = await lint(definition);
708
+ (0, import_vitest.expect)(results).toHaveLength(1);
709
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "message", "tags", TAG_NAME]);
710
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
711
+ });
712
+ (0, import_vitest.test)("empty description should trigger", async () => {
713
+ const definition = {
714
+ channels: { [CHANNEL_NAME]: { message: { tags: { [TAG_NAME]: { description: EMPTY_STRING } } } } }
715
+ };
716
+ const results = await lint(definition);
717
+ (0, import_vitest.expect)(results).toHaveLength(1);
718
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["channels", CHANNEL_NAME, "message", "tags", TAG_NAME, "description"]);
719
+ (0, import_vitest.expect)(results[0]?.message).toContain("description");
720
+ });
721
+ (0, import_vitest.test)("valid description should not trigger", async () => {
722
+ const definition = {
723
+ channels: { [CHANNEL_NAME]: { message: { tags: { [TAG_NAME]: { description: TRUTHY_STRING } } } } }
724
+ };
725
+ const results = await lint(definition);
726
+ (0, import_vitest.expect)(results).toHaveLength(0);
727
+ });
728
+ });
729
+ describeRule("legacy-zui-title-should-be-removed", (lint) => {
730
+ (0, import_vitest.test)("legacy zui title should trigger", async () => {
731
+ const definition = {
732
+ actions: {
733
+ [ACTION_NAME]: { input: { [LEGACY_ZUI]: { [PARAM_NAME]: { title: TRUTHY_STRING } }, schema: {} } }
734
+ },
735
+ configuration: {
736
+ [LEGACY_ZUI]: { [PARAM_NAME]: { title: TRUTHY_STRING } },
737
+ schema: {}
738
+ },
739
+ events: { [EVENT_NAME]: { [LEGACY_ZUI]: { [PARAM_NAME]: { title: TRUTHY_STRING } }, schema: {} } },
740
+ channels: {
741
+ [CHANNEL_NAME]: {
742
+ messages: { [MESSAGE_TYPE]: { [LEGACY_ZUI]: { [PARAM_NAME]: { title: TRUTHY_STRING } }, schema: {} } }
743
+ }
744
+ },
745
+ states: { [STATE_NAME]: { [LEGACY_ZUI]: { [PARAM_NAME]: { title: TRUTHY_STRING } }, schema: {} } }
746
+ };
747
+ const results = await lint(definition);
748
+ (0, import_vitest.expect)(results).toHaveLength(5);
749
+ (0, import_vitest.expect)(results[0]?.message).toContain(".title()");
750
+ });
751
+ });
752
+ describeRule("legacy-zui-examples-should-be-removed", (lint) => {
753
+ (0, import_vitest.test)("legacy zui examples should trigger", async () => {
754
+ const definition = {
755
+ actions: {
756
+ [ACTION_NAME]: { input: { [LEGACY_ZUI]: { [PARAM_NAME]: { examples: [TRUTHY_STRING] } }, schema: {} } }
757
+ },
758
+ configuration: {
759
+ [LEGACY_ZUI]: { [PARAM_NAME]: { examples: [TRUTHY_STRING] } },
760
+ schema: {}
761
+ },
762
+ events: { [EVENT_NAME]: { [LEGACY_ZUI]: { [PARAM_NAME]: { examples: [TRUTHY_STRING] } }, schema: {} } },
763
+ channels: {
764
+ [CHANNEL_NAME]: {
765
+ messages: { [MESSAGE_TYPE]: { [LEGACY_ZUI]: { [PARAM_NAME]: { examples: [TRUTHY_STRING] } }, schema: {} } }
766
+ }
767
+ },
768
+ states: { [STATE_NAME]: { [LEGACY_ZUI]: { [PARAM_NAME]: { examples: [TRUTHY_STRING] } }, schema: {} } }
769
+ };
770
+ const results = await lint(definition);
771
+ (0, import_vitest.expect)(results).toHaveLength(5);
772
+ (0, import_vitest.expect)(results[0]?.message).toContain("examples");
773
+ });
774
+ });
775
+ describeRule("state-fields-should-have-title", (lint) => {
776
+ (0, import_vitest.test)("missing title should trigger", async () => {
777
+ const definition = {
778
+ states: { [STATE_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: {} } } } } }
779
+ };
780
+ const results = await lint(definition);
781
+ (0, import_vitest.expect)(results).toHaveLength(1);
782
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["states", STATE_NAME, "schema", "properties", PARAM_NAME, ZUI]);
783
+ });
784
+ (0, import_vitest.test)("empty title should trigger", async () => {
785
+ const definition = {
786
+ states: { [STATE_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: EMPTY_STRING } } } } } }
787
+ };
788
+ const results = await lint(definition);
789
+ (0, import_vitest.expect)(results).toHaveLength(1);
790
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["states", STATE_NAME, "schema", "properties", PARAM_NAME, ZUI, "title"]);
791
+ });
792
+ (0, import_vitest.test)("valid title should not trigger", async () => {
793
+ const definition = {
794
+ states: { [STATE_NAME]: { schema: { properties: { [PARAM_NAME]: { [ZUI]: { title: TRUTHY_STRING } } } } } }
795
+ };
796
+ const results = await lint(definition);
797
+ (0, import_vitest.expect)(results).toHaveLength(0);
798
+ });
799
+ });
800
+ describeRule("state-fields-must-have-description", (lint) => {
801
+ (0, import_vitest.test)("missing description should trigger", async () => {
802
+ const definition = {
803
+ states: { [STATE_NAME]: { schema: { properties: { [PARAM_NAME]: {} } } } }
804
+ };
805
+ const results = await lint(definition);
806
+ (0, import_vitest.expect)(results).toHaveLength(1);
807
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["states", STATE_NAME, "schema", "properties", PARAM_NAME]);
808
+ });
809
+ (0, import_vitest.test)("empty description should trigger", async () => {
810
+ const definition = {
811
+ states: { [STATE_NAME]: { schema: { properties: { [PARAM_NAME]: { description: EMPTY_STRING } } } } }
812
+ };
813
+ const results = await lint(definition);
814
+ (0, import_vitest.expect)(results).toHaveLength(1);
815
+ (0, import_vitest.expect)(results[0]?.path).toEqual(["states", STATE_NAME, "schema", "properties", PARAM_NAME, "description"]);
816
+ });
817
+ (0, import_vitest.test)("valid description should not trigger", async () => {
818
+ const definition = {
819
+ states: { [STATE_NAME]: { schema: { properties: { [PARAM_NAME]: { description: TRUTHY_STRING } } } } }
820
+ };
821
+ const results = await lint(definition);
822
+ (0, import_vitest.expect)(results).toHaveLength(0);
823
+ });
824
+ });
825
+ //# sourceMappingURL=integration.ruleset.test.js.map