@jarenjs/refs 0.8.4 → 0.9.2

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