@jarenjs/refs 0.8.4 → 0.34.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 (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +20 -2
  3. package/dist/types/index.d.ts +44 -0
  4. package/dist/types/index.import.no-lint.d.ts +417 -0
  5. package/dist/types/json-schema-2019-09/index.d.ts +370 -0
  6. package/dist/types/json-schema-2019-09/index.import.no-lint.d.ts +378 -0
  7. package/dist/types/json-schema-2020-12/index.d.ts +411 -0
  8. package/dist/types/json-schema-2020-12/index.import.no-lint.d.ts +421 -0
  9. package/package.json +32 -10
  10. package/src/data.json +13 -0
  11. package/src/index.import.no-lint.js +5 -0
  12. package/src/index.js +85 -0
  13. package/src/json-schema-2019-09/index.import.no-lint.js +17 -0
  14. package/src/json-schema-2019-09/index.js +12 -0
  15. package/src/json-schema-2019-09/meta/applicator.json +53 -0
  16. package/src/json-schema-2019-09/meta/content.json +17 -0
  17. package/src/json-schema-2019-09/meta/core.json +57 -0
  18. package/src/json-schema-2019-09/meta/format.json +14 -0
  19. package/src/json-schema-2019-09/meta/meta-data.json +37 -0
  20. package/src/json-schema-2019-09/meta/validation.json +90 -0
  21. package/src/json-schema-2019-09/schema.json +39 -0
  22. package/src/json-schema-2020-12/index.import.no-lint.js +21 -0
  23. package/src/json-schema-2020-12/index.js +16 -0
  24. package/src/json-schema-2020-12/meta/applicator.json +48 -0
  25. package/src/json-schema-2020-12/meta/content.json +17 -0
  26. package/src/json-schema-2020-12/meta/core.json +51 -0
  27. package/src/json-schema-2020-12/meta/format-annotation.json +14 -0
  28. package/src/json-schema-2020-12/meta/format-assertion.json +13 -0
  29. package/src/json-schema-2020-12/meta/meta-data.json +37 -0
  30. package/src/json-schema-2020-12/meta/unevaluated.json +15 -0
  31. package/src/json-schema-2020-12/meta/validation.json +90 -0
  32. package/src/json-schema-2020-12/schema.json +55 -0
  33. package/src/json-schema-draft-06.json +137 -0
  34. package/src/json-schema-draft-07.json +152 -0
  35. package/src/json-schema-secure.json +88 -0
  36. package/dist/index.js +0 -1054
  37. package/dist/index.js.map +0 -7
  38. package/dist/index.min.js +0 -2
  39. package/dist/index.min.js.map +0 -7
@@ -0,0 +1,411 @@
1
+ declare const draft2020: ({
2
+ $schema: string;
3
+ $id: string;
4
+ $vocabulary: {
5
+ "https://json-schema.org/draft/2020-12/vocab/core": boolean;
6
+ "https://json-schema.org/draft/2020-12/vocab/applicator": boolean;
7
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": boolean;
8
+ "https://json-schema.org/draft/2020-12/vocab/validation": boolean;
9
+ "https://json-schema.org/draft/2020-12/vocab/meta-data": boolean;
10
+ "https://json-schema.org/draft/2020-12/vocab/format-annotation": boolean;
11
+ "https://json-schema.org/draft/2020-12/vocab/content": boolean;
12
+ };
13
+ $dynamicAnchor: string;
14
+ title: string;
15
+ allOf: {
16
+ $ref: string;
17
+ }[];
18
+ type: string[];
19
+ $comment: string;
20
+ properties: {
21
+ definitions: {
22
+ $comment: string;
23
+ type: string;
24
+ additionalProperties: {
25
+ $dynamicRef: string;
26
+ };
27
+ deprecated: boolean;
28
+ default: {};
29
+ };
30
+ dependencies: {
31
+ $comment: string;
32
+ type: string;
33
+ additionalProperties: {
34
+ anyOf: ({
35
+ $dynamicRef: string;
36
+ $ref?: undefined;
37
+ } | {
38
+ $dynamicRef?: undefined;
39
+ $ref: string;
40
+ })[];
41
+ };
42
+ deprecated: boolean;
43
+ default: {};
44
+ };
45
+ $recursiveAnchor: {
46
+ $comment: string;
47
+ $ref: string;
48
+ deprecated: boolean;
49
+ };
50
+ $recursiveRef: {
51
+ $comment: string;
52
+ $ref: string;
53
+ deprecated: boolean;
54
+ };
55
+ };
56
+ } | {
57
+ $schema: string;
58
+ $id: string;
59
+ $vocabulary: {
60
+ "https://json-schema.org/draft/2020-12/vocab/applicator": boolean;
61
+ };
62
+ $dynamicAnchor: string;
63
+ title: string;
64
+ type: string[];
65
+ properties: {
66
+ prefixItems: {
67
+ $ref: string;
68
+ };
69
+ items: {
70
+ $dynamicRef: string;
71
+ };
72
+ contains: {
73
+ $dynamicRef: string;
74
+ };
75
+ additionalProperties: {
76
+ $dynamicRef: string;
77
+ };
78
+ properties: {
79
+ type: string;
80
+ additionalProperties: {
81
+ $dynamicRef: string;
82
+ };
83
+ default: {};
84
+ };
85
+ patternProperties: {
86
+ type: string;
87
+ additionalProperties: {
88
+ $dynamicRef: string;
89
+ };
90
+ propertyNames: {
91
+ format: string;
92
+ };
93
+ default: {};
94
+ };
95
+ dependentSchemas: {
96
+ type: string;
97
+ additionalProperties: {
98
+ $dynamicRef: string;
99
+ };
100
+ default: {};
101
+ };
102
+ propertyNames: {
103
+ $dynamicRef: string;
104
+ };
105
+ if: {
106
+ $dynamicRef: string;
107
+ };
108
+ then: {
109
+ $dynamicRef: string;
110
+ };
111
+ else: {
112
+ $dynamicRef: string;
113
+ };
114
+ allOf: {
115
+ $ref: string;
116
+ };
117
+ anyOf: {
118
+ $ref: string;
119
+ };
120
+ oneOf: {
121
+ $ref: string;
122
+ };
123
+ not: {
124
+ $dynamicRef: string;
125
+ };
126
+ };
127
+ $defs: {
128
+ schemaArray: {
129
+ type: string;
130
+ minItems: number;
131
+ items: {
132
+ $dynamicRef: string;
133
+ };
134
+ };
135
+ };
136
+ } | {
137
+ $schema: string;
138
+ $id: string;
139
+ $vocabulary: {
140
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": boolean;
141
+ };
142
+ $dynamicAnchor: string;
143
+ title: string;
144
+ type: string[];
145
+ properties: {
146
+ unevaluatedItems: {
147
+ $dynamicRef: string;
148
+ };
149
+ unevaluatedProperties: {
150
+ $dynamicRef: string;
151
+ };
152
+ };
153
+ } | {
154
+ $schema: string;
155
+ $id: string;
156
+ $vocabulary: {
157
+ "https://json-schema.org/draft/2020-12/vocab/content": boolean;
158
+ };
159
+ $dynamicAnchor: string;
160
+ title: string;
161
+ type: string[];
162
+ properties: {
163
+ contentEncoding: {
164
+ type: string;
165
+ };
166
+ contentMediaType: {
167
+ type: string;
168
+ };
169
+ contentSchema: {
170
+ $dynamicRef: string;
171
+ };
172
+ };
173
+ } | {
174
+ $schema: string;
175
+ $id: string;
176
+ $vocabulary: {
177
+ "https://json-schema.org/draft/2020-12/vocab/core": boolean;
178
+ };
179
+ $dynamicAnchor: string;
180
+ title: string;
181
+ type: string[];
182
+ properties: {
183
+ $id: {
184
+ $ref: string;
185
+ $comment: string;
186
+ pattern: string;
187
+ };
188
+ $schema: {
189
+ $ref: string;
190
+ };
191
+ $ref: {
192
+ $ref: string;
193
+ };
194
+ $anchor: {
195
+ $ref: string;
196
+ };
197
+ $dynamicRef: {
198
+ $ref: string;
199
+ };
200
+ $dynamicAnchor: {
201
+ $ref: string;
202
+ };
203
+ $vocabulary: {
204
+ type: string;
205
+ propertyNames: {
206
+ $ref: string;
207
+ };
208
+ additionalProperties: {
209
+ type: string;
210
+ };
211
+ };
212
+ $comment: {
213
+ type: string;
214
+ };
215
+ $defs: {
216
+ type: string;
217
+ additionalProperties: {
218
+ $dynamicRef: string;
219
+ };
220
+ };
221
+ };
222
+ $defs: {
223
+ anchorString: {
224
+ type: string;
225
+ pattern: string;
226
+ };
227
+ uriString: {
228
+ type: string;
229
+ format: string;
230
+ };
231
+ uriReferenceString: {
232
+ type: string;
233
+ format: string;
234
+ };
235
+ };
236
+ } | {
237
+ $schema: string;
238
+ $id: string;
239
+ $vocabulary: {
240
+ "https://json-schema.org/draft/2020-12/vocab/format-annotation": boolean;
241
+ };
242
+ $dynamicAnchor: string;
243
+ title: string;
244
+ type: string[];
245
+ properties: {
246
+ format: {
247
+ type: string;
248
+ };
249
+ };
250
+ } | {
251
+ $schema: string;
252
+ $id: string;
253
+ $vocabulary: {
254
+ "https://json-schema.org/draft/2020-12/vocab/format-assertion": boolean;
255
+ };
256
+ $dynamicAnchor: string;
257
+ title: string;
258
+ type: string[];
259
+ properties: {
260
+ format: {
261
+ type: string;
262
+ };
263
+ };
264
+ } | {
265
+ $schema: string;
266
+ $id: string;
267
+ $vocabulary: {
268
+ "https://json-schema.org/draft/2020-12/vocab/meta-data": boolean;
269
+ };
270
+ $dynamicAnchor: string;
271
+ title: string;
272
+ type: string[];
273
+ properties: {
274
+ title: {
275
+ type: string;
276
+ };
277
+ description: {
278
+ type: string;
279
+ };
280
+ default: boolean;
281
+ deprecated: {
282
+ type: string;
283
+ default: boolean;
284
+ };
285
+ readOnly: {
286
+ type: string;
287
+ default: boolean;
288
+ };
289
+ writeOnly: {
290
+ type: string;
291
+ default: boolean;
292
+ };
293
+ examples: {
294
+ type: string;
295
+ items: boolean;
296
+ };
297
+ };
298
+ } | {
299
+ $schema: string;
300
+ $id: string;
301
+ $vocabulary: {
302
+ "https://json-schema.org/draft/2020-12/vocab/validation": boolean;
303
+ };
304
+ $dynamicAnchor: string;
305
+ title: string;
306
+ type: string[];
307
+ properties: {
308
+ type: {
309
+ anyOf: ({
310
+ $ref: string;
311
+ type?: undefined;
312
+ items?: undefined;
313
+ minItems?: undefined;
314
+ uniqueItems?: undefined;
315
+ } | {
316
+ $ref?: undefined;
317
+ type: string;
318
+ items: {
319
+ $ref: string;
320
+ };
321
+ minItems: number;
322
+ uniqueItems: boolean;
323
+ })[];
324
+ };
325
+ const: boolean;
326
+ enum: {
327
+ type: string;
328
+ items: boolean;
329
+ };
330
+ multipleOf: {
331
+ type: string;
332
+ exclusiveMinimum: number;
333
+ };
334
+ maximum: {
335
+ type: string;
336
+ };
337
+ exclusiveMaximum: {
338
+ type: string;
339
+ };
340
+ minimum: {
341
+ type: string;
342
+ };
343
+ exclusiveMinimum: {
344
+ type: string;
345
+ };
346
+ maxLength: {
347
+ $ref: string;
348
+ };
349
+ minLength: {
350
+ $ref: string;
351
+ };
352
+ pattern: {
353
+ type: string;
354
+ format: string;
355
+ };
356
+ maxItems: {
357
+ $ref: string;
358
+ };
359
+ minItems: {
360
+ $ref: string;
361
+ };
362
+ uniqueItems: {
363
+ type: string;
364
+ default: boolean;
365
+ };
366
+ maxContains: {
367
+ $ref: string;
368
+ };
369
+ minContains: {
370
+ $ref: string;
371
+ default: number;
372
+ };
373
+ maxProperties: {
374
+ $ref: string;
375
+ };
376
+ minProperties: {
377
+ $ref: string;
378
+ };
379
+ required: {
380
+ $ref: string;
381
+ };
382
+ dependentRequired: {
383
+ type: string;
384
+ additionalProperties: {
385
+ $ref: string;
386
+ };
387
+ };
388
+ };
389
+ $defs: {
390
+ nonNegativeInteger: {
391
+ type: string;
392
+ minimum: number;
393
+ };
394
+ nonNegativeIntegerDefault0: {
395
+ $ref: string;
396
+ default: number;
397
+ };
398
+ simpleTypes: {
399
+ enum: string[];
400
+ };
401
+ stringArray: {
402
+ type: string;
403
+ items: {
404
+ type: string;
405
+ };
406
+ uniqueItems: boolean;
407
+ default: never[];
408
+ };
409
+ };
410
+ })[];
411
+ export default draft2020;