@openlint/ruleset-spectral-oas 0.0.0-stage → 0.1.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 (98) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +11 -2
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.js +8 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/oas/functions/index.d.ts +15 -0
  7. package/dist/oas/functions/index.js +33 -0
  8. package/dist/oas/functions/index.js.map +1 -0
  9. package/dist/oas/functions/oasDiscriminator.d.ts +6 -0
  10. package/dist/oas/functions/oasDiscriminator.js +39 -0
  11. package/dist/oas/functions/oasDiscriminator.js.map +1 -0
  12. package/dist/oas/functions/oasDocumentSchema.d.ts +2 -0
  13. package/dist/oas/functions/oasDocumentSchema.js +104 -0
  14. package/dist/oas/functions/oasDocumentSchema.js.map +1 -0
  15. package/dist/oas/functions/oasExample.d.ts +7 -0
  16. package/dist/oas/functions/oasExample.js +217 -0
  17. package/dist/oas/functions/oasExample.js.map +1 -0
  18. package/dist/oas/functions/oasOpFormDataConsumeCheck.d.ts +6 -0
  19. package/dist/oas/functions/oasOpFormDataConsumeCheck.js +30 -0
  20. package/dist/oas/functions/oasOpFormDataConsumeCheck.js.map +1 -0
  21. package/dist/oas/functions/oasOpIdUnique.d.ts +2 -0
  22. package/dist/oas/functions/oasOpIdUnique.js +35 -0
  23. package/dist/oas/functions/oasOpIdUnique.js.map +1 -0
  24. package/dist/oas/functions/oasOpParams.d.ts +2 -0
  25. package/dist/oas/functions/oasOpParams.js +75 -0
  26. package/dist/oas/functions/oasOpParams.js.map +1 -0
  27. package/dist/oas/functions/oasOpSuccessResponse.d.ts +2 -0
  28. package/dist/oas/functions/oasOpSuccessResponse.js +27 -0
  29. package/dist/oas/functions/oasOpSuccessResponse.js.map +1 -0
  30. package/dist/oas/functions/oasPathParam.d.ts +2 -0
  31. package/dist/oas/functions/oasPathParam.js +135 -0
  32. package/dist/oas/functions/oasPathParam.js.map +1 -0
  33. package/dist/oas/functions/oasSchema.d.ts +5 -0
  34. package/dist/oas/functions/oasSchema.js +81 -0
  35. package/dist/oas/functions/oasSchema.js.map +1 -0
  36. package/dist/oas/functions/oasSecurityDefined.d.ts +5 -0
  37. package/dist/oas/functions/oasSecurityDefined.js +76 -0
  38. package/dist/oas/functions/oasSecurityDefined.js.map +1 -0
  39. package/dist/oas/functions/oasTagDefined.d.ts +2 -0
  40. package/dist/oas/functions/oasTagDefined.js +42 -0
  41. package/dist/oas/functions/oasTagDefined.js.map +1 -0
  42. package/dist/oas/functions/oasUnusedComponent.d.ts +4 -0
  43. package/dist/oas/functions/oasUnusedComponent.js +40 -0
  44. package/dist/oas/functions/oasUnusedComponent.js.map +1 -0
  45. package/dist/oas/functions/refSiblings.d.ts +2 -0
  46. package/dist/oas/functions/refSiblings.js +42 -0
  47. package/dist/oas/functions/refSiblings.js.map +1 -0
  48. package/dist/oas/functions/typedEnum.d.ts +7 -0
  49. package/dist/oas/functions/typedEnum.js +76 -0
  50. package/dist/oas/functions/typedEnum.js.map +1 -0
  51. package/dist/oas/functions/utils/getAllOperations.d.ts +7 -0
  52. package/dist/oas/functions/utils/getAllOperations.js +31 -0
  53. package/dist/oas/functions/utils/getAllOperations.js.map +1 -0
  54. package/dist/oas/functions/utils/isObject.d.ts +2 -0
  55. package/dist/oas/functions/utils/isObject.js +7 -0
  56. package/dist/oas/functions/utils/isObject.js.map +1 -0
  57. package/dist/oas/index.d.ts +733 -0
  58. package/dist/oas/index.js +765 -0
  59. package/dist/oas/index.js.map +1 -0
  60. package/dist/oas/schemas/__fixtures__/validate.d.ts +1 -0
  61. package/dist/oas/schemas/__fixtures__/validate.js +3 -0
  62. package/dist/oas/schemas/__fixtures__/validate.js.map +1 -0
  63. package/dist/oas/schemas/json-schema/draft-04.json +137 -0
  64. package/dist/oas/schemas/json-schema/draft-2020-12/index.json +54 -0
  65. package/dist/oas/schemas/json-schema/draft-2020-12/validation.json +101 -0
  66. package/dist/oas/schemas/oas/v2.0.json +1478 -0
  67. package/dist/oas/schemas/oas/v3.0.json +1652 -0
  68. package/dist/oas/schemas/oas/v3.1/dialect.schema.json +35 -0
  69. package/dist/oas/schemas/oas/v3.1/index.json +1276 -0
  70. package/dist/oas/schemas/oas/v3.1/meta.schema.json +93 -0
  71. package/dist/oas/schemas/oas/v3.2/dialect.schema.json +25 -0
  72. package/dist/oas/schemas/oas/v3.2/index.json +1527 -0
  73. package/dist/oas/schemas/oas/v3.2/meta.schema.json +103 -0
  74. package/dist/oas/schemas/validators.d.ts +66 -0
  75. package/dist/oas/schemas/validators.js +12991 -0
  76. package/dist/oas/schemas/validators.js.map +1 -0
  77. package/dist/shared/functions/index.d.ts +2 -0
  78. package/dist/shared/functions/index.js +7 -0
  79. package/dist/shared/functions/index.js.map +1 -0
  80. package/dist/shared/functions/serverVariables/index.d.ts +16 -0
  81. package/dist/shared/functions/serverVariables/index.js +154 -0
  82. package/dist/shared/functions/serverVariables/index.js.map +1 -0
  83. package/dist/shared/functions/serverVariables/utils/applyUrlVariables.d.ts +3 -0
  84. package/dist/shared/functions/serverVariables/utils/applyUrlVariables.js +32 -0
  85. package/dist/shared/functions/serverVariables/utils/applyUrlVariables.js.map +1 -0
  86. package/dist/shared/functions/serverVariables/utils/parseUrlVariables.d.ts +1 -0
  87. package/dist/shared/functions/serverVariables/utils/parseUrlVariables.js +12 -0
  88. package/dist/shared/functions/serverVariables/utils/parseUrlVariables.js.map +1 -0
  89. package/dist/shared/functions/uniquenessTags.d.ts +5 -0
  90. package/dist/shared/functions/uniquenessTags.js +42 -0
  91. package/dist/shared/functions/uniquenessTags.js.map +1 -0
  92. package/dist/shared/utils/getMissingProps.d.ts +1 -0
  93. package/dist/shared/utils/getMissingProps.js +9 -0
  94. package/dist/shared/utils/getMissingProps.js.map +1 -0
  95. package/dist/shared/utils/getRedundantProps.d.ts +1 -0
  96. package/dist/shared/utils/getRedundantProps.js +9 -0
  97. package/dist/shared/utils/getRedundantProps.js.map +1 -0
  98. package/package.json +47 -4
@@ -0,0 +1,733 @@
1
+ export { ruleset as default };
2
+ declare const ruleset: {
3
+ documentationUrl: string;
4
+ formats: import("@openlint/openlint-core").Format[];
5
+ aliases: {
6
+ PathItem: string[];
7
+ OperationObject: string[];
8
+ SecurityRequirementObject: string[];
9
+ ResponseObject: {
10
+ targets: {
11
+ formats: import("@openlint/openlint-core").Format[];
12
+ given: string[];
13
+ }[];
14
+ };
15
+ LinkObject: {
16
+ targets: {
17
+ formats: import("@openlint/openlint-core").Format[];
18
+ given: string[];
19
+ }[];
20
+ };
21
+ ArrayProperties: {
22
+ targets: {
23
+ formats: import("@openlint/openlint-core").Format[];
24
+ given: string[];
25
+ }[];
26
+ };
27
+ };
28
+ rules: {
29
+ 'operation-success-response': {
30
+ description: string;
31
+ recommended: boolean;
32
+ given: string;
33
+ then: {
34
+ field: string;
35
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, null>;
36
+ };
37
+ };
38
+ 'oas2-operation-formData-consume-check': {
39
+ description: string;
40
+ recommended: boolean;
41
+ formats: import("@openlint/openlint-core").Format[];
42
+ given: string;
43
+ then: {
44
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<{
45
+ consumes: unknown[];
46
+ parameters: unknown[];
47
+ }, null>;
48
+ };
49
+ };
50
+ 'operation-operationId-unique': {
51
+ description: string;
52
+ recommended: boolean;
53
+ severity: number;
54
+ given: string;
55
+ then: {
56
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, null>;
57
+ };
58
+ };
59
+ 'operation-parameters': {
60
+ description: string;
61
+ message: string;
62
+ recommended: boolean;
63
+ given: string;
64
+ then: {
65
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown[], null>;
66
+ };
67
+ };
68
+ 'operation-tag-defined': {
69
+ description: string;
70
+ recommended: boolean;
71
+ given: string;
72
+ then: {
73
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, null>;
74
+ };
75
+ };
76
+ 'path-params': {
77
+ description: string;
78
+ message: string;
79
+ severity: number;
80
+ recommended: boolean;
81
+ given: string;
82
+ then: {
83
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, null>;
84
+ };
85
+ };
86
+ 'contact-properties': {
87
+ description: string;
88
+ recommended: boolean;
89
+ given: string;
90
+ then: {
91
+ field: string;
92
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
93
+ }[];
94
+ };
95
+ 'duplicated-entry-in-enum': {
96
+ description: string;
97
+ severity: string;
98
+ recommended: boolean;
99
+ message: string;
100
+ given: string[];
101
+ then: {
102
+ field: string;
103
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, import("./functions/oasSchema").Options>;
104
+ functionOptions: {
105
+ schema: {
106
+ type: string;
107
+ uniqueItems: boolean;
108
+ };
109
+ };
110
+ };
111
+ };
112
+ 'info-contact': {
113
+ description: string;
114
+ recommended: boolean;
115
+ given: string;
116
+ then: {
117
+ field: string;
118
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
119
+ };
120
+ };
121
+ 'info-description': {
122
+ description: string;
123
+ recommended: boolean;
124
+ given: string;
125
+ then: {
126
+ field: string;
127
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
128
+ };
129
+ };
130
+ 'info-license': {
131
+ description: string;
132
+ recommended: boolean;
133
+ given: string;
134
+ then: {
135
+ field: string;
136
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
137
+ };
138
+ };
139
+ 'license-url': {
140
+ description: string;
141
+ recommended: boolean;
142
+ given: string;
143
+ then: {
144
+ field: string;
145
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
146
+ };
147
+ };
148
+ 'no-eval-in-markdown': {
149
+ description: string;
150
+ recommended: boolean;
151
+ given: string;
152
+ then: {
153
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
154
+ functionOptions: {
155
+ notMatch: string;
156
+ };
157
+ };
158
+ };
159
+ 'no-script-tags-in-markdown': {
160
+ description: string;
161
+ recommended: boolean;
162
+ given: string;
163
+ then: {
164
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
165
+ functionOptions: {
166
+ notMatch: string;
167
+ };
168
+ };
169
+ };
170
+ 'openapi-tags-alphabetical': {
171
+ description: string;
172
+ recommended: boolean;
173
+ given: string;
174
+ then: {
175
+ field: string;
176
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown> | unknown[], import("@openlint/openlint-functions").AlphabeticalOptions>;
177
+ functionOptions: {
178
+ keyedBy: string;
179
+ };
180
+ };
181
+ };
182
+ 'openapi-tags-uniqueness': {
183
+ description: string;
184
+ message: string;
185
+ severity: string;
186
+ recommended: boolean;
187
+ given: string;
188
+ then: {
189
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<{
190
+ name: string;
191
+ }[], null>;
192
+ };
193
+ };
194
+ 'openapi-tags': {
195
+ description: string;
196
+ recommended: boolean;
197
+ given: string;
198
+ then: {
199
+ field: string;
200
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, import("@openlint/openlint-functions").SchemaOptions>;
201
+ functionOptions: {
202
+ dialect: string;
203
+ schema: {
204
+ type: string;
205
+ minItems: number;
206
+ };
207
+ };
208
+ };
209
+ };
210
+ 'operation-description': {
211
+ description: string;
212
+ recommended: boolean;
213
+ given: string;
214
+ then: {
215
+ field: string;
216
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
217
+ };
218
+ };
219
+ 'operation-operationId': {
220
+ description: string;
221
+ recommended: boolean;
222
+ given: string;
223
+ then: {
224
+ field: string;
225
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
226
+ };
227
+ };
228
+ 'operation-operationId-valid-in-url': {
229
+ message: string;
230
+ recommended: boolean;
231
+ given: string;
232
+ then: {
233
+ field: string;
234
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
235
+ functionOptions: {
236
+ match: string;
237
+ };
238
+ };
239
+ };
240
+ 'operation-singular-tag': {
241
+ description: string;
242
+ recommended: boolean;
243
+ given: string;
244
+ then: {
245
+ field: string;
246
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string | number | Record<string, unknown> | unknown[], import("@openlint/openlint-functions").LengthOptions>;
247
+ functionOptions: {
248
+ max: number;
249
+ };
250
+ };
251
+ };
252
+ 'operation-tags': {
253
+ description: string;
254
+ recommended: boolean;
255
+ given: string;
256
+ then: {
257
+ field: string;
258
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, import("@openlint/openlint-functions").SchemaOptions>;
259
+ functionOptions: {
260
+ dialect: string;
261
+ schema: {
262
+ type: string;
263
+ minItems: number;
264
+ };
265
+ };
266
+ };
267
+ };
268
+ 'path-declarations-must-exist': {
269
+ message: string;
270
+ recommended: boolean;
271
+ given: string;
272
+ then: {
273
+ field: string;
274
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
275
+ functionOptions: {
276
+ notMatch: string;
277
+ };
278
+ };
279
+ };
280
+ 'path-keys-no-trailing-slash': {
281
+ message: string;
282
+ recommended: boolean;
283
+ given: string;
284
+ then: {
285
+ field: string;
286
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
287
+ functionOptions: {
288
+ notMatch: string;
289
+ };
290
+ };
291
+ };
292
+ 'path-not-include-query': {
293
+ description: string;
294
+ recommended: boolean;
295
+ given: string;
296
+ then: {
297
+ field: string;
298
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
299
+ functionOptions: {
300
+ notMatch: string;
301
+ };
302
+ };
303
+ };
304
+ 'tag-description': {
305
+ description: string;
306
+ recommended: boolean;
307
+ given: string;
308
+ then: {
309
+ field: string;
310
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
311
+ };
312
+ };
313
+ 'no-$ref-siblings': {
314
+ formats: import("@openlint/openlint-core").Format[];
315
+ description: string;
316
+ message: string;
317
+ severity: number;
318
+ recommended: boolean;
319
+ resolved: boolean;
320
+ given: string;
321
+ then: {
322
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
323
+ };
324
+ };
325
+ 'array-items': {
326
+ message: string;
327
+ severity: number;
328
+ recommended: boolean;
329
+ resolved: boolean;
330
+ given: string;
331
+ then: {
332
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
333
+ field: string;
334
+ };
335
+ };
336
+ 'typed-enum': {
337
+ description: string;
338
+ message: string;
339
+ recommended: boolean;
340
+ given: string;
341
+ then: {
342
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<{
343
+ [key: string]: unknown;
344
+ enum: unknown[];
345
+ type: string[] | string;
346
+ }, null>;
347
+ };
348
+ };
349
+ 'oas2-api-host': {
350
+ description: string;
351
+ recommended: boolean;
352
+ formats: import("@openlint/openlint-core").Format[];
353
+ given: string;
354
+ then: {
355
+ field: string;
356
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
357
+ };
358
+ };
359
+ 'oas2-api-schemes': {
360
+ description: string;
361
+ recommended: boolean;
362
+ formats: import("@openlint/openlint-core").Format[];
363
+ given: string;
364
+ then: {
365
+ field: string;
366
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, import("@openlint/openlint-functions").SchemaOptions>;
367
+ functionOptions: {
368
+ dialect: string;
369
+ schema: {
370
+ items: {
371
+ type: string;
372
+ };
373
+ minItems: number;
374
+ type: string;
375
+ };
376
+ };
377
+ };
378
+ };
379
+ 'oas2-discriminator': {
380
+ description: string;
381
+ recommended: boolean;
382
+ formats: import("@openlint/openlint-core").Format[];
383
+ severity: number;
384
+ message: string;
385
+ given: string;
386
+ then: {
387
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<{
388
+ [key: string]: unknown;
389
+ discriminator: string;
390
+ }, null>;
391
+ };
392
+ };
393
+ 'oas2-host-not-example': {
394
+ description: string;
395
+ recommended: boolean;
396
+ formats: import("@openlint/openlint-core").Format[];
397
+ given: string;
398
+ then: {
399
+ field: string;
400
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
401
+ functionOptions: {
402
+ notMatch: string;
403
+ };
404
+ };
405
+ };
406
+ 'oas2-host-trailing-slash': {
407
+ description: string;
408
+ recommended: boolean;
409
+ formats: import("@openlint/openlint-core").Format[];
410
+ given: string;
411
+ then: {
412
+ field: string;
413
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
414
+ functionOptions: {
415
+ notMatch: string;
416
+ };
417
+ };
418
+ };
419
+ 'oas2-parameter-description': {
420
+ description: string;
421
+ recommended: boolean;
422
+ formats: import("@openlint/openlint-core").Format[];
423
+ given: string;
424
+ then: {
425
+ field: string;
426
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
427
+ };
428
+ };
429
+ 'oas2-operation-security-defined': {
430
+ description: string;
431
+ message: string;
432
+ recommended: boolean;
433
+ formats: import("@openlint/openlint-core").Format[];
434
+ given: string;
435
+ then: {
436
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, string[]>, {
437
+ oasVersion: 2 | 3;
438
+ }>;
439
+ functionOptions: {
440
+ oasVersion: number;
441
+ };
442
+ };
443
+ };
444
+ 'oas2-valid-schema-example': {
445
+ description: string;
446
+ message: string;
447
+ recommended: boolean;
448
+ formats: import("@openlint/openlint-core").Format[];
449
+ severity: number;
450
+ given: string[];
451
+ then: {
452
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, import("./functions/oasExample").Options>;
453
+ functionOptions: {
454
+ schemaField: string;
455
+ oasVersion: number;
456
+ type: string;
457
+ };
458
+ };
459
+ };
460
+ 'oas2-valid-media-example': {
461
+ description: string;
462
+ message: string;
463
+ recommended: boolean;
464
+ formats: import("@openlint/openlint-core").Format[];
465
+ severity: number;
466
+ given: string;
467
+ then: {
468
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, import("./functions/oasExample").Options>;
469
+ functionOptions: {
470
+ schemaField: string;
471
+ oasVersion: number;
472
+ type: string;
473
+ };
474
+ };
475
+ };
476
+ 'oas2-anyOf': {
477
+ message: string;
478
+ description: string;
479
+ recommended: boolean;
480
+ formats: import("@openlint/openlint-core").Format[];
481
+ given: string;
482
+ then: {
483
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, unknown>;
484
+ };
485
+ };
486
+ 'oas2-oneOf': {
487
+ message: string;
488
+ description: string;
489
+ recommended: boolean;
490
+ formats: import("@openlint/openlint-core").Format[];
491
+ given: string;
492
+ then: {
493
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, unknown>;
494
+ };
495
+ };
496
+ 'oas2-schema': {
497
+ description: string;
498
+ message: string;
499
+ recommended: boolean;
500
+ formats: import("@openlint/openlint-core").Format[];
501
+ severity: number;
502
+ resolved: boolean;
503
+ given: string;
504
+ then: {
505
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
506
+ };
507
+ };
508
+ 'oas2-unused-definition': {
509
+ description: string;
510
+ recommended: boolean;
511
+ resolved: boolean;
512
+ formats: import("@openlint/openlint-core").Format[];
513
+ given: string;
514
+ then: {
515
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, import("@openlint/openlint-functions").UnreferencedReusableObjectOptions>;
516
+ functionOptions: {
517
+ reusableObjectsLocation: string;
518
+ };
519
+ };
520
+ };
521
+ 'oas3-api-servers': {
522
+ description: string;
523
+ recommended: boolean;
524
+ formats: import("@openlint/openlint-core").Format[];
525
+ given: string;
526
+ then: {
527
+ field: string;
528
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, import("@openlint/openlint-functions").SchemaOptions>;
529
+ functionOptions: {
530
+ dialect: string;
531
+ schema: {
532
+ items: {
533
+ type: string;
534
+ };
535
+ minItems: number;
536
+ type: string;
537
+ };
538
+ };
539
+ };
540
+ };
541
+ 'oas3-examples-value-or-externalValue': {
542
+ description: string;
543
+ recommended: boolean;
544
+ formats: import("@openlint/openlint-core").Format[];
545
+ given: string[];
546
+ then: {
547
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, import("@openlint/openlint-functions").XorOptions>;
548
+ functionOptions: {
549
+ properties: string[];
550
+ };
551
+ };
552
+ };
553
+ 'oas3-operation-security-defined': {
554
+ description: string;
555
+ message: string;
556
+ recommended: boolean;
557
+ formats: import("@openlint/openlint-core").Format[];
558
+ given: string;
559
+ then: {
560
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, string[]>, {
561
+ oasVersion: 2 | 3;
562
+ }>;
563
+ functionOptions: {
564
+ oasVersion: number;
565
+ };
566
+ };
567
+ };
568
+ 'oas3-parameter-description': {
569
+ description: string;
570
+ recommended: boolean;
571
+ formats: import("@openlint/openlint-core").Format[];
572
+ given: string[];
573
+ then: {
574
+ field: string;
575
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
576
+ };
577
+ };
578
+ 'oas3-server-not-example.com': {
579
+ description: string;
580
+ recommended: boolean;
581
+ formats: import("@openlint/openlint-core").Format[];
582
+ given: string;
583
+ then: {
584
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
585
+ functionOptions: {
586
+ notMatch: string;
587
+ };
588
+ };
589
+ };
590
+ 'oas3-server-trailing-slash': {
591
+ description: string;
592
+ recommended: boolean;
593
+ formats: import("@openlint/openlint-core").Format[];
594
+ given: string;
595
+ then: {
596
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<string, import("@openlint/openlint-functions").PatternOptions>;
597
+ functionOptions: {
598
+ notMatch: string;
599
+ };
600
+ };
601
+ };
602
+ 'oas3-valid-media-example': {
603
+ description: string;
604
+ message: string;
605
+ recommended: boolean;
606
+ severity: number;
607
+ formats: import("@openlint/openlint-core").Format[];
608
+ given: string[];
609
+ then: {
610
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, import("./functions/oasExample").Options>;
611
+ functionOptions: {
612
+ schemaField: string;
613
+ oasVersion: number;
614
+ type: string;
615
+ };
616
+ };
617
+ };
618
+ 'oas3-valid-schema-example': {
619
+ description: string;
620
+ message: string;
621
+ severity: number;
622
+ formats: import("@openlint/openlint-core").Format[];
623
+ recommended: boolean;
624
+ given: string[];
625
+ then: {
626
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<Record<string, unknown>, import("./functions/oasExample").Options>;
627
+ functionOptions: {
628
+ schemaField: string;
629
+ oasVersion: number;
630
+ type: string;
631
+ };
632
+ };
633
+ };
634
+ 'oas3-schema': {
635
+ description: string;
636
+ message: string;
637
+ severity: number;
638
+ formats: import("@openlint/openlint-core").Format[];
639
+ recommended: boolean;
640
+ resolved: boolean;
641
+ given: string;
642
+ then: {
643
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, null>;
644
+ };
645
+ };
646
+ 'oas3-unused-component': {
647
+ message: string;
648
+ recommended: boolean;
649
+ formats: import("@openlint/openlint-core").Format[];
650
+ resolved: boolean;
651
+ given: string;
652
+ then: {
653
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<{
654
+ components: Record<string, unknown>;
655
+ }, null>;
656
+ };
657
+ };
658
+ 'oas3-server-variables': {
659
+ description: string;
660
+ message: string;
661
+ severity: number;
662
+ recommended: boolean;
663
+ given: string[];
664
+ then: {
665
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<{
666
+ url: string;
667
+ variables?: Record<string, {
668
+ enum?: string[];
669
+ default?: string;
670
+ description?: string;
671
+ examples?: string;
672
+ [key: string]: unknown;
673
+ }>;
674
+ }, {
675
+ checkSubstitutions?: boolean;
676
+ requireDefault?: boolean;
677
+ } | null>;
678
+ functionOptions: {
679
+ checkSubstitutions: boolean;
680
+ requireDefault: boolean;
681
+ };
682
+ };
683
+ };
684
+ 'oas3-callbacks-in-callbacks': {
685
+ message: string;
686
+ formats: import("@openlint/openlint-core").Format[];
687
+ recommended: boolean;
688
+ given: string[];
689
+ then: {
690
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, unknown>;
691
+ };
692
+ };
693
+ 'oas3_1-servers-in-webhook': {
694
+ message: string;
695
+ formats: import("@openlint/openlint-core").Format[];
696
+ recommended: boolean;
697
+ given: string[];
698
+ then: {
699
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, unknown>;
700
+ };
701
+ };
702
+ 'oas3_1-callbacks-in-webhook': {
703
+ message: string;
704
+ formats: import("@openlint/openlint-core").Format[];
705
+ recommended: boolean;
706
+ given: string[];
707
+ then: {
708
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, unknown>;
709
+ };
710
+ };
711
+ 'oas3_2-no-deprecated-xml-attribute': {
712
+ message: string;
713
+ formats: import("@openlint/openlint-core").Format[];
714
+ recommended: boolean;
715
+ given: string[];
716
+ then: {
717
+ function: import("@openlint/openlint-core").RulesetFunctionWithValidator<unknown, import("@openlint/openlint-functions").SchemaOptions>;
718
+ functionOptions: {
719
+ schema: {
720
+ not: {
721
+ properties: {
722
+ attribute: {
723
+ const: boolean;
724
+ };
725
+ };
726
+ required: string[];
727
+ };
728
+ };
729
+ };
730
+ };
731
+ };
732
+ };
733
+ };