@apidevtools/json-schema-ref-parser 11.4.2 → 11.5.1

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.
@@ -1,14 +1,46 @@
1
- import type { HTTPResolverOptions, JSONSchemaObject, Plugin, ResolverOptions } from "./types/index.js";
1
+ /// <reference types="node" />
2
+ import type { HTTPResolverOptions, JSONSchema, JSONSchemaObject, Plugin, ResolverOptions } from "./types/index.js";
2
3
  export type DeepPartial<T> = T extends object ? {
3
4
  [P in keyof T]?: DeepPartial<T[P]>;
4
5
  } : T;
6
+ export interface DereferenceOptions {
7
+ /**
8
+ * Determines whether circular `$ref` pointers are handled.
9
+ *
10
+ * If set to `false`, then a `ReferenceError` will be thrown if the schema contains any circular references.
11
+ *
12
+ * If set to `"ignore"`, then circular references will simply be ignored. No error will be thrown, but the `$Refs.circular` property will still be set to `true`.
13
+ */
14
+ circular?: boolean | "ignore";
15
+ /**
16
+ * A function, called for each path, which can return true to stop this path and all
17
+ * subpaths from being dereferenced further. This is useful in schemas where some
18
+ * subpaths contain literal $ref keys that should not be dereferenced.
19
+ */
20
+ excludedPathMatcher?(path: string): boolean;
21
+ /**
22
+ * Callback invoked during dereferencing.
23
+ *
24
+ * @argument {string} path - The path being dereferenced (ie. the `$ref` string)
25
+ * @argument {JSONSchemaObject} value - The JSON-Schema that the `$ref` resolved to
26
+ * @argument {JSONSchemaObject} parent - The parent of the dereferenced object
27
+ * @argument {string} parentPropName - The prop name of the parent object whose value was dereferenced
28
+ */
29
+ onDereference?(path: string, value: JSONSchemaObject, parent?: JSONSchemaObject, parentPropName?: string): void;
30
+ /**
31
+ * Whether a reference should resolve relative to its directory/path, or from the cwd
32
+ *
33
+ * Default: `relative`
34
+ */
35
+ externalReferenceResolution?: "relative" | "root";
36
+ }
5
37
  /**
6
38
  * Options that determine how JSON schemas are parsed, resolved, and dereferenced.
7
39
  *
8
40
  * @param [options] - Overridden options
9
41
  * @class
10
42
  */
11
- export interface $RefParserOptions {
43
+ export interface $RefParserOptions<S extends JSONSchema = JSONSchema> {
12
44
  /**
13
45
  * The `parse` options determine how different types of files will be parsed.
14
46
  *
@@ -33,10 +65,10 @@ export interface $RefParserOptions {
33
65
  * Determines whether external $ref pointers will be resolved. If this option is disabled, then external `$ref` pointers will simply be ignored.
34
66
  */
35
67
  external?: boolean;
36
- file?: Partial<ResolverOptions> | boolean;
37
- http?: HTTPResolverOptions | boolean;
68
+ file?: Partial<ResolverOptions<S>> | boolean;
69
+ http?: HTTPResolverOptions<S> | boolean;
38
70
  } & {
39
- [key: string]: Partial<ResolverOptions> | HTTPResolverOptions | boolean | undefined;
71
+ [key: string]: Partial<ResolverOptions<S>> | HTTPResolverOptions<S> | boolean | undefined;
40
72
  };
41
73
  /**
42
74
  * By default, JSON Schema $Ref Parser throws the first error it encounters. Setting `continueOnError` to `true`
@@ -47,46 +79,578 @@ export interface $RefParserOptions {
47
79
  /**
48
80
  * The `dereference` options control how JSON Schema `$Ref` Parser will dereference `$ref` pointers within the JSON schema.
49
81
  */
50
- dereference: {
51
- /**
52
- * Determines whether circular `$ref` pointers are handled.
53
- *
54
- * If set to `false`, then a `ReferenceError` will be thrown if the schema contains any circular references.
55
- *
56
- * If set to `"ignore"`, then circular references will simply be ignored. No error will be thrown, but the `$Refs.circular` property will still be set to `true`.
57
- */
58
- circular?: boolean | "ignore";
59
- /**
60
- * A function, called for each path, which can return true to stop this path and all
61
- * subpaths from being dereferenced further. This is useful in schemas where some
62
- * subpaths contain literal $ref keys that should not be dereferenced.
63
- */
64
- excludedPathMatcher?(path: string): boolean;
65
- /**
66
- * Callback invoked during dereferencing.
67
- *
68
- * @argument {string} path - The path being dereferenced (ie. the `$ref` string)
69
- * @argument {JSONSchemaObject} value - The JSON-Schema that the `$ref` resolved to
70
- * @argument {JSONSchemaObject} parent - The parent of the dereferenced object
71
- * @argument {string} parentPropName - The prop name of the parent object whose value was dereferenced
72
- */
73
- onDereference?(path: string, value: JSONSchemaObject, parent?: JSONSchemaObject, parentPropName?: string): void;
74
- /**
75
- * Whether a reference should resolve relative to its directory/path, or from the cwd
76
- *
77
- * Default: `relative`
78
- */
79
- externalReferenceResolution?: "relative" | "root";
80
- /**
81
- * Whether to clone the schema before dereferencing it.
82
- * This is useful when you want to dereference the same schema multiple times, but you don't want to modify the original schema.
83
- * Default: `true` due to mutating the input being the default behavior historically
84
- */
85
- mutateInputSchema?: boolean;
86
- };
82
+ dereference: DereferenceOptions;
83
+ /**
84
+ * Whether to clone the schema before dereferencing it.
85
+ * This is useful when you want to dereference the same schema multiple times, but you don't want to modify the original schema.
86
+ * Default: `true` due to mutating the input being the default behavior historically
87
+ */
88
+ mutateInputSchema?: boolean;
87
89
  }
88
- export declare const getJsonSchemaRefParserDefaultOptions: () => $RefParserOptions;
89
- export declare const getNewOptions: (options: DeepPartial<$RefParserOptions> | undefined) => $RefParserOptions;
90
- export type Options = $RefParserOptions;
91
- export type ParserOptions = DeepPartial<$RefParserOptions>;
90
+ export declare const getJsonSchemaRefParserDefaultOptions: () => $RefParserOptions<JSONSchema>;
91
+ export declare const getNewOptions: <S extends JSONSchema = JSONSchema, O extends {
92
+ parse?: {
93
+ [x: string]: boolean | {
94
+ name?: string | undefined;
95
+ order?: number | undefined;
96
+ allowEmpty?: boolean | undefined;
97
+ allowBOM?: boolean | undefined;
98
+ encoding?: BufferEncoding | undefined;
99
+ canParse?: string | boolean | {
100
+ exec?: {} | undefined;
101
+ test?: {} | undefined;
102
+ readonly source?: string | undefined;
103
+ readonly global?: boolean | undefined;
104
+ readonly ignoreCase?: boolean | undefined;
105
+ readonly multiline?: boolean | undefined;
106
+ lastIndex?: number | undefined;
107
+ compile?: {} | undefined;
108
+ readonly flags?: string | undefined;
109
+ readonly sticky?: boolean | undefined;
110
+ readonly unicode?: boolean | undefined;
111
+ readonly dotAll?: boolean | undefined;
112
+ readonly hasIndices?: boolean | undefined;
113
+ [Symbol.match]?: {} | undefined;
114
+ [Symbol.replace]?: {} | undefined;
115
+ [Symbol.search]?: {} | undefined;
116
+ [Symbol.split]?: {} | undefined;
117
+ [Symbol.matchAll]?: {} | undefined;
118
+ } | (string | undefined)[] | {} | undefined;
119
+ parse?: string | number | {} | undefined;
120
+ } | undefined;
121
+ json?: boolean | {
122
+ name?: string | undefined;
123
+ order?: number | undefined;
124
+ allowEmpty?: boolean | undefined;
125
+ allowBOM?: boolean | undefined;
126
+ encoding?: BufferEncoding | undefined;
127
+ canParse?: string | boolean | {
128
+ exec?: {} | undefined;
129
+ test?: {} | undefined;
130
+ readonly source?: string | undefined;
131
+ readonly global?: boolean | undefined;
132
+ readonly ignoreCase?: boolean | undefined;
133
+ readonly multiline?: boolean | undefined;
134
+ lastIndex?: number | undefined;
135
+ compile?: {} | undefined;
136
+ readonly flags?: string | undefined;
137
+ readonly sticky?: boolean | undefined;
138
+ readonly unicode?: boolean | undefined;
139
+ readonly dotAll?: boolean | undefined;
140
+ readonly hasIndices?: boolean | undefined;
141
+ [Symbol.match]?: {} | undefined;
142
+ [Symbol.replace]?: {} | undefined;
143
+ [Symbol.search]?: {} | undefined;
144
+ [Symbol.split]?: {} | undefined;
145
+ [Symbol.matchAll]?: {} | undefined;
146
+ } | (string | undefined)[] | {} | undefined;
147
+ parse?: string | number | {} | undefined;
148
+ } | undefined;
149
+ yaml?: boolean | {
150
+ name?: string | undefined;
151
+ order?: number | undefined;
152
+ allowEmpty?: boolean | undefined;
153
+ allowBOM?: boolean | undefined;
154
+ encoding?: BufferEncoding | undefined;
155
+ canParse?: string | boolean | {
156
+ exec?: {} | undefined;
157
+ test?: {} | undefined;
158
+ readonly source?: string | undefined;
159
+ readonly global?: boolean | undefined;
160
+ readonly ignoreCase?: boolean | undefined;
161
+ readonly multiline?: boolean | undefined;
162
+ lastIndex?: number | undefined;
163
+ compile?: {} | undefined;
164
+ readonly flags?: string | undefined;
165
+ readonly sticky?: boolean | undefined;
166
+ readonly unicode?: boolean | undefined;
167
+ readonly dotAll?: boolean | undefined;
168
+ readonly hasIndices?: boolean | undefined;
169
+ [Symbol.match]?: {} | undefined;
170
+ [Symbol.replace]?: {} | undefined;
171
+ [Symbol.search]?: {} | undefined;
172
+ [Symbol.split]?: {} | undefined;
173
+ [Symbol.matchAll]?: {} | undefined;
174
+ } | (string | undefined)[] | {} | undefined;
175
+ parse?: string | number | {} | undefined;
176
+ } | undefined;
177
+ binary?: boolean | {
178
+ name?: string | undefined;
179
+ order?: number | undefined;
180
+ allowEmpty?: boolean | undefined;
181
+ allowBOM?: boolean | undefined;
182
+ encoding?: BufferEncoding | undefined;
183
+ canParse?: string | boolean | {
184
+ exec?: {} | undefined;
185
+ test?: {} | undefined;
186
+ readonly source?: string | undefined;
187
+ readonly global?: boolean | undefined;
188
+ readonly ignoreCase?: boolean | undefined;
189
+ readonly multiline?: boolean | undefined;
190
+ lastIndex?: number | undefined;
191
+ compile?: {} | undefined;
192
+ readonly flags?: string | undefined;
193
+ readonly sticky?: boolean | undefined;
194
+ readonly unicode?: boolean | undefined;
195
+ readonly dotAll?: boolean | undefined;
196
+ readonly hasIndices?: boolean | undefined;
197
+ [Symbol.match]?: {} | undefined;
198
+ [Symbol.replace]?: {} | undefined;
199
+ [Symbol.search]?: {} | undefined;
200
+ [Symbol.split]?: {} | undefined;
201
+ [Symbol.matchAll]?: {} | undefined;
202
+ } | (string | undefined)[] | {} | undefined;
203
+ parse?: string | number | {} | undefined;
204
+ } | undefined;
205
+ text?: boolean | {
206
+ name?: string | undefined;
207
+ order?: number | undefined;
208
+ allowEmpty?: boolean | undefined;
209
+ allowBOM?: boolean | undefined;
210
+ encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | undefined;
211
+ canParse?: string | boolean | {
212
+ exec?: {} | undefined;
213
+ test?: {} | undefined;
214
+ readonly source?: string | undefined;
215
+ readonly global?: boolean | undefined;
216
+ readonly ignoreCase?: boolean | undefined;
217
+ readonly multiline?: boolean | undefined;
218
+ lastIndex?: number | undefined;
219
+ compile?: {} | undefined;
220
+ readonly flags?: string | undefined;
221
+ readonly sticky?: boolean | undefined;
222
+ readonly unicode?: boolean | undefined;
223
+ readonly dotAll?: boolean | undefined;
224
+ readonly hasIndices?: boolean | undefined;
225
+ [Symbol.match]?: {} | undefined;
226
+ [Symbol.replace]?: {} | undefined;
227
+ [Symbol.search]?: {} | undefined;
228
+ [Symbol.split]?: {} | undefined;
229
+ [Symbol.matchAll]?: {} | undefined;
230
+ } | (string | undefined)[] | {} | undefined;
231
+ parse?: string | number | {} | undefined;
232
+ } | undefined;
233
+ } | undefined;
234
+ resolve?: {
235
+ [x: string]: boolean | {
236
+ name?: string | undefined;
237
+ order?: number | undefined;
238
+ canRead?: string | boolean | {
239
+ exec?: {} | undefined;
240
+ test?: {} | undefined;
241
+ readonly source?: string | undefined;
242
+ readonly global?: boolean | undefined;
243
+ readonly ignoreCase?: boolean | undefined;
244
+ readonly multiline?: boolean | undefined;
245
+ lastIndex?: number | undefined;
246
+ compile?: {} | undefined;
247
+ readonly flags?: string | undefined;
248
+ readonly sticky?: boolean | undefined;
249
+ readonly unicode?: boolean | undefined;
250
+ readonly dotAll?: boolean | undefined;
251
+ readonly hasIndices?: boolean | undefined;
252
+ [Symbol.match]?: {} | undefined;
253
+ [Symbol.replace]?: {} | undefined;
254
+ [Symbol.search]?: {} | undefined;
255
+ [Symbol.split]?: {} | undefined;
256
+ [Symbol.matchAll]?: {} | undefined;
257
+ } | (string | undefined)[] | {} | undefined;
258
+ read?: string | object | {} | undefined;
259
+ } | {
260
+ headers?: ([(string | undefined)?, (string | undefined)?] | undefined)[] | {
261
+ [x: string]: string | undefined;
262
+ } | {
263
+ append?: {} | undefined;
264
+ delete?: {} | undefined;
265
+ get?: {} | undefined;
266
+ getSetCookie?: {} | undefined;
267
+ has?: {} | undefined;
268
+ set?: {} | undefined;
269
+ forEach?: {} | undefined;
270
+ } | null | undefined;
271
+ timeout?: number | undefined;
272
+ redirects?: number | undefined;
273
+ withCredentials?: boolean | undefined;
274
+ name?: string | undefined;
275
+ order?: number | undefined;
276
+ canRead?: string | boolean | {
277
+ exec?: {} | undefined;
278
+ test?: {} | undefined;
279
+ readonly source?: string | undefined;
280
+ readonly global?: boolean | undefined;
281
+ readonly ignoreCase?: boolean | undefined;
282
+ readonly multiline?: boolean | undefined;
283
+ lastIndex?: number | undefined;
284
+ compile?: {} | undefined;
285
+ readonly flags?: string | undefined;
286
+ readonly sticky?: boolean | undefined;
287
+ readonly unicode?: boolean | undefined;
288
+ readonly dotAll?: boolean | undefined;
289
+ readonly hasIndices?: boolean | undefined;
290
+ [Symbol.match]?: {} | undefined;
291
+ [Symbol.replace]?: {} | undefined;
292
+ [Symbol.search]?: {} | undefined;
293
+ [Symbol.split]?: {} | undefined;
294
+ [Symbol.matchAll]?: {} | undefined;
295
+ } | (string | undefined)[] | {} | undefined;
296
+ read?: string | object | {} | undefined;
297
+ } | undefined;
298
+ external?: boolean | undefined;
299
+ file?: boolean | {
300
+ name?: string | undefined;
301
+ order?: number | undefined;
302
+ canRead?: string | boolean | {
303
+ exec?: {} | undefined;
304
+ test?: {} | undefined;
305
+ readonly source?: string | undefined;
306
+ readonly global?: boolean | undefined;
307
+ readonly ignoreCase?: boolean | undefined;
308
+ readonly multiline?: boolean | undefined;
309
+ lastIndex?: number | undefined;
310
+ compile?: {} | undefined;
311
+ readonly flags?: string | undefined;
312
+ readonly sticky?: boolean | undefined;
313
+ readonly unicode?: boolean | undefined;
314
+ readonly dotAll?: boolean | undefined;
315
+ readonly hasIndices?: boolean | undefined;
316
+ [Symbol.match]?: {} | undefined;
317
+ [Symbol.replace]?: {} | undefined;
318
+ [Symbol.search]?: {} | undefined;
319
+ [Symbol.split]?: {} | undefined;
320
+ [Symbol.matchAll]?: {} | undefined;
321
+ } | (string | undefined)[] | {} | undefined;
322
+ read?: string | object | {} | undefined;
323
+ } | undefined;
324
+ http?: boolean | {
325
+ headers?: ([(string | undefined)?, (string | undefined)?] | undefined)[] | {
326
+ [x: string]: string | undefined;
327
+ } | {
328
+ append?: {} | undefined;
329
+ delete?: {} | undefined;
330
+ get?: {} | undefined;
331
+ getSetCookie?: {} | undefined;
332
+ has?: {} | undefined;
333
+ set?: {} | undefined;
334
+ forEach?: {} | undefined;
335
+ } | null | undefined;
336
+ timeout?: number | undefined;
337
+ redirects?: number | undefined;
338
+ withCredentials?: boolean | undefined;
339
+ name?: string | undefined;
340
+ order?: number | undefined;
341
+ canRead?: string | boolean | {
342
+ exec?: {} | undefined;
343
+ test?: {} | undefined;
344
+ readonly source?: string | undefined;
345
+ readonly global?: boolean | undefined;
346
+ readonly ignoreCase?: boolean | undefined;
347
+ readonly multiline?: boolean | undefined;
348
+ lastIndex?: number | undefined;
349
+ compile?: {} | undefined;
350
+ readonly flags?: string | undefined;
351
+ readonly sticky?: boolean | undefined;
352
+ readonly unicode?: boolean | undefined;
353
+ readonly dotAll?: boolean | undefined;
354
+ readonly hasIndices?: boolean | undefined;
355
+ [Symbol.match]?: {} | undefined;
356
+ [Symbol.replace]?: {} | undefined;
357
+ [Symbol.search]?: {} | undefined;
358
+ [Symbol.split]?: {} | undefined;
359
+ [Symbol.matchAll]?: {} | undefined;
360
+ } | (string | undefined)[] | {} | undefined;
361
+ read?: string | object | {} | undefined;
362
+ } | undefined;
363
+ } | undefined;
364
+ continueOnError?: boolean | undefined;
365
+ dereference?: {
366
+ circular?: boolean | "ignore" | undefined;
367
+ excludedPathMatcher?: {} | undefined;
368
+ onDereference?: {} | undefined;
369
+ externalReferenceResolution?: "relative" | "root" | undefined;
370
+ } | undefined;
371
+ mutateInputSchema?: boolean | undefined;
372
+ } = {
373
+ parse?: {
374
+ [x: string]: boolean | {
375
+ name?: string | undefined;
376
+ order?: number | undefined;
377
+ allowEmpty?: boolean | undefined;
378
+ allowBOM?: boolean | undefined;
379
+ encoding?: BufferEncoding | undefined;
380
+ canParse?: string | boolean | {
381
+ exec?: {} | undefined;
382
+ test?: {} | undefined;
383
+ readonly source?: string | undefined;
384
+ readonly global?: boolean | undefined;
385
+ readonly ignoreCase?: boolean | undefined;
386
+ readonly multiline?: boolean | undefined;
387
+ lastIndex?: number | undefined;
388
+ compile?: {} | undefined;
389
+ readonly flags?: string | undefined;
390
+ readonly sticky?: boolean | undefined;
391
+ readonly unicode?: boolean | undefined;
392
+ readonly dotAll?: boolean | undefined;
393
+ readonly hasIndices?: boolean | undefined;
394
+ [Symbol.match]?: {} | undefined;
395
+ [Symbol.replace]?: {} | undefined;
396
+ [Symbol.search]?: {} | undefined;
397
+ [Symbol.split]?: {} | undefined;
398
+ [Symbol.matchAll]?: {} | undefined;
399
+ } | (string | undefined)[] | {} | undefined;
400
+ parse?: string | number | {} | undefined;
401
+ } | undefined;
402
+ json?: boolean | {
403
+ name?: string | undefined;
404
+ order?: number | undefined;
405
+ allowEmpty?: boolean | undefined;
406
+ allowBOM?: boolean | undefined;
407
+ encoding?: BufferEncoding | undefined;
408
+ canParse?: string | boolean | {
409
+ exec?: {} | undefined;
410
+ test?: {} | undefined;
411
+ readonly source?: string | undefined;
412
+ readonly global?: boolean | undefined;
413
+ readonly ignoreCase?: boolean | undefined;
414
+ readonly multiline?: boolean | undefined;
415
+ lastIndex?: number | undefined;
416
+ compile?: {} | undefined;
417
+ readonly flags?: string | undefined;
418
+ readonly sticky?: boolean | undefined;
419
+ readonly unicode?: boolean | undefined;
420
+ readonly dotAll?: boolean | undefined;
421
+ readonly hasIndices?: boolean | undefined;
422
+ [Symbol.match]?: {} | undefined;
423
+ [Symbol.replace]?: {} | undefined;
424
+ [Symbol.search]?: {} | undefined;
425
+ [Symbol.split]?: {} | undefined;
426
+ [Symbol.matchAll]?: {} | undefined;
427
+ } | (string | undefined)[] | {} | undefined;
428
+ parse?: string | number | {} | undefined;
429
+ } | undefined;
430
+ yaml?: boolean | {
431
+ name?: string | undefined;
432
+ order?: number | undefined;
433
+ allowEmpty?: boolean | undefined;
434
+ allowBOM?: boolean | undefined;
435
+ encoding?: BufferEncoding | undefined;
436
+ canParse?: string | boolean | {
437
+ exec?: {} | undefined;
438
+ test?: {} | undefined;
439
+ readonly source?: string | undefined;
440
+ readonly global?: boolean | undefined;
441
+ readonly ignoreCase?: boolean | undefined;
442
+ readonly multiline?: boolean | undefined;
443
+ lastIndex?: number | undefined;
444
+ compile?: {} | undefined;
445
+ readonly flags?: string | undefined;
446
+ readonly sticky?: boolean | undefined;
447
+ readonly unicode?: boolean | undefined;
448
+ readonly dotAll?: boolean | undefined;
449
+ readonly hasIndices?: boolean | undefined;
450
+ [Symbol.match]?: {} | undefined;
451
+ [Symbol.replace]?: {} | undefined;
452
+ [Symbol.search]?: {} | undefined;
453
+ [Symbol.split]?: {} | undefined;
454
+ [Symbol.matchAll]?: {} | undefined;
455
+ } | (string | undefined)[] | {} | undefined;
456
+ parse?: string | number | {} | undefined;
457
+ } | undefined;
458
+ binary?: boolean | {
459
+ name?: string | undefined;
460
+ order?: number | undefined;
461
+ allowEmpty?: boolean | undefined;
462
+ allowBOM?: boolean | undefined;
463
+ encoding?: BufferEncoding | undefined;
464
+ canParse?: string | boolean | {
465
+ exec?: {} | undefined;
466
+ test?: {} | undefined;
467
+ readonly source?: string | undefined;
468
+ readonly global?: boolean | undefined;
469
+ readonly ignoreCase?: boolean | undefined;
470
+ readonly multiline?: boolean | undefined;
471
+ lastIndex?: number | undefined;
472
+ compile?: {} | undefined;
473
+ readonly flags?: string | undefined;
474
+ readonly sticky?: boolean | undefined;
475
+ readonly unicode?: boolean | undefined;
476
+ readonly dotAll?: boolean | undefined;
477
+ readonly hasIndices?: boolean | undefined;
478
+ [Symbol.match]?: {} | undefined;
479
+ [Symbol.replace]?: {} | undefined;
480
+ [Symbol.search]?: {} | undefined;
481
+ [Symbol.split]?: {} | undefined;
482
+ [Symbol.matchAll]?: {} | undefined;
483
+ } | (string | undefined)[] | {} | undefined;
484
+ parse?: string | number | {} | undefined;
485
+ } | undefined;
486
+ text?: boolean | {
487
+ name?: string | undefined;
488
+ order?: number | undefined;
489
+ allowEmpty?: boolean | undefined;
490
+ allowBOM?: boolean | undefined;
491
+ encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | undefined;
492
+ canParse?: string | boolean | {
493
+ exec?: {} | undefined;
494
+ test?: {} | undefined;
495
+ readonly source?: string | undefined;
496
+ readonly global?: boolean | undefined;
497
+ readonly ignoreCase?: boolean | undefined;
498
+ readonly multiline?: boolean | undefined;
499
+ lastIndex?: number | undefined;
500
+ compile?: {} | undefined;
501
+ readonly flags?: string | undefined;
502
+ readonly sticky?: boolean | undefined;
503
+ readonly unicode?: boolean | undefined;
504
+ readonly dotAll?: boolean | undefined;
505
+ readonly hasIndices?: boolean | undefined;
506
+ [Symbol.match]?: {} | undefined;
507
+ [Symbol.replace]?: {} | undefined;
508
+ [Symbol.search]?: {} | undefined;
509
+ [Symbol.split]?: {} | undefined;
510
+ [Symbol.matchAll]?: {} | undefined;
511
+ } | (string | undefined)[] | {} | undefined;
512
+ parse?: string | number | {} | undefined;
513
+ } | undefined;
514
+ } | undefined;
515
+ resolve?: {
516
+ [x: string]: boolean | {
517
+ name?: string | undefined;
518
+ order?: number | undefined;
519
+ canRead?: string | boolean | {
520
+ exec?: {} | undefined;
521
+ test?: {} | undefined;
522
+ readonly source?: string | undefined;
523
+ readonly global?: boolean | undefined;
524
+ readonly ignoreCase?: boolean | undefined;
525
+ readonly multiline?: boolean | undefined;
526
+ lastIndex?: number | undefined;
527
+ compile?: {} | undefined;
528
+ readonly flags?: string | undefined;
529
+ readonly sticky?: boolean | undefined;
530
+ readonly unicode?: boolean | undefined;
531
+ readonly dotAll?: boolean | undefined;
532
+ readonly hasIndices?: boolean | undefined;
533
+ [Symbol.match]?: {} | undefined;
534
+ [Symbol.replace]?: {} | undefined;
535
+ [Symbol.search]?: {} | undefined;
536
+ [Symbol.split]?: {} | undefined;
537
+ [Symbol.matchAll]?: {} | undefined;
538
+ } | (string | undefined)[] | {} | undefined;
539
+ read?: string | object | {} | undefined;
540
+ } | {
541
+ headers?: ([(string | undefined)?, (string | undefined)?] | undefined)[] | {
542
+ [x: string]: string | undefined;
543
+ } | {
544
+ append?: {} | undefined;
545
+ delete?: {} | undefined;
546
+ get?: {} | undefined;
547
+ getSetCookie?: {} | undefined;
548
+ has?: {} | undefined;
549
+ set?: {} | undefined;
550
+ forEach?: {} | undefined;
551
+ } | null | undefined;
552
+ timeout?: number | undefined;
553
+ redirects?: number | undefined;
554
+ withCredentials?: boolean | undefined;
555
+ name?: string | undefined;
556
+ order?: number | undefined;
557
+ canRead?: string | boolean | {
558
+ exec?: {} | undefined;
559
+ test?: {} | undefined;
560
+ readonly source?: string | undefined;
561
+ readonly global?: boolean | undefined;
562
+ readonly ignoreCase?: boolean | undefined;
563
+ readonly multiline?: boolean | undefined;
564
+ lastIndex?: number | undefined;
565
+ compile?: {} | undefined;
566
+ readonly flags?: string | undefined;
567
+ readonly sticky?: boolean | undefined;
568
+ readonly unicode?: boolean | undefined;
569
+ readonly dotAll?: boolean | undefined;
570
+ readonly hasIndices?: boolean | undefined;
571
+ [Symbol.match]?: {} | undefined;
572
+ [Symbol.replace]?: {} | undefined;
573
+ [Symbol.search]?: {} | undefined;
574
+ [Symbol.split]?: {} | undefined;
575
+ [Symbol.matchAll]?: {} | undefined;
576
+ } | (string | undefined)[] | {} | undefined;
577
+ read?: string | object | {} | undefined;
578
+ } | undefined;
579
+ external?: boolean | undefined;
580
+ file?: boolean | {
581
+ name?: string | undefined;
582
+ order?: number | undefined;
583
+ canRead?: string | boolean | {
584
+ exec?: {} | undefined;
585
+ test?: {} | undefined;
586
+ readonly source?: string | undefined;
587
+ readonly global?: boolean | undefined;
588
+ readonly ignoreCase?: boolean | undefined;
589
+ readonly multiline?: boolean | undefined;
590
+ lastIndex?: number | undefined;
591
+ compile?: {} | undefined;
592
+ readonly flags?: string | undefined;
593
+ readonly sticky?: boolean | undefined;
594
+ readonly unicode?: boolean | undefined;
595
+ readonly dotAll?: boolean | undefined;
596
+ readonly hasIndices?: boolean | undefined;
597
+ [Symbol.match]?: {} | undefined;
598
+ [Symbol.replace]?: {} | undefined;
599
+ [Symbol.search]?: {} | undefined;
600
+ [Symbol.split]?: {} | undefined;
601
+ [Symbol.matchAll]?: {} | undefined;
602
+ } | (string | undefined)[] | {} | undefined;
603
+ read?: string | object | {} | undefined;
604
+ } | undefined;
605
+ http?: boolean | {
606
+ headers?: ([(string | undefined)?, (string | undefined)?] | undefined)[] | {
607
+ [x: string]: string | undefined;
608
+ } | {
609
+ append?: {} | undefined;
610
+ delete?: {} | undefined;
611
+ get?: {} | undefined;
612
+ getSetCookie?: {} | undefined;
613
+ has?: {} | undefined;
614
+ set?: {} | undefined;
615
+ forEach?: {} | undefined;
616
+ } | null | undefined;
617
+ timeout?: number | undefined;
618
+ redirects?: number | undefined;
619
+ withCredentials?: boolean | undefined;
620
+ name?: string | undefined;
621
+ order?: number | undefined;
622
+ canRead?: string | boolean | {
623
+ exec?: {} | undefined;
624
+ test?: {} | undefined;
625
+ readonly source?: string | undefined;
626
+ readonly global?: boolean | undefined;
627
+ readonly ignoreCase?: boolean | undefined;
628
+ readonly multiline?: boolean | undefined;
629
+ lastIndex?: number | undefined;
630
+ compile?: {} | undefined;
631
+ readonly flags?: string | undefined;
632
+ readonly sticky?: boolean | undefined;
633
+ readonly unicode?: boolean | undefined;
634
+ readonly dotAll?: boolean | undefined;
635
+ readonly hasIndices?: boolean | undefined;
636
+ [Symbol.match]?: {} | undefined;
637
+ [Symbol.replace]?: {} | undefined;
638
+ [Symbol.search]?: {} | undefined;
639
+ [Symbol.split]?: {} | undefined;
640
+ [Symbol.matchAll]?: {} | undefined;
641
+ } | (string | undefined)[] | {} | undefined;
642
+ read?: string | object | {} | undefined;
643
+ } | undefined;
644
+ } | undefined;
645
+ continueOnError?: boolean | undefined;
646
+ dereference?: {
647
+ circular?: boolean | "ignore" | undefined;
648
+ excludedPathMatcher?: {} | undefined;
649
+ onDereference?: {} | undefined;
650
+ externalReferenceResolution?: "relative" | "root" | undefined;
651
+ } | undefined;
652
+ mutateInputSchema?: boolean | undefined;
653
+ }>(options: O | undefined) => O & $RefParserOptions<S>;
654
+ export type Options = $RefParserOptions<JSONSchema>;
655
+ export type ParserOptions = DeepPartial<$RefParserOptions<JSONSchema>>;
92
656
  export default $RefParserOptions;