@speclynx/apidom-ns-json-schema-2019-09 1.12.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.
- package/CHANGELOG.md +82 -0
- package/LICENSE +202 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/LICENSES/MIT.txt +9 -0
- package/NOTICE +65 -0
- package/README.md +186 -0
- package/dist/apidom-ns-json-schema-2019-09.browser.js +1 -0
- package/package.json +65 -0
- package/src/elements/JSONSchema.cjs +214 -0
- package/src/elements/JSONSchema.mjs +211 -0
- package/src/elements/LinkDescription.cjs +48 -0
- package/src/elements/LinkDescription.mjs +44 -0
- package/src/index.cjs +73 -0
- package/src/index.mjs +26 -0
- package/src/media-types.cjs +34 -0
- package/src/media-types.mjs +30 -0
- package/src/namespace.cjs +21 -0
- package/src/namespace.mjs +16 -0
- package/src/predicates.cjs +29 -0
- package/src/predicates.mjs +24 -0
- package/src/refractor/index.cjs +54 -0
- package/src/refractor/index.mjs +48 -0
- package/src/refractor/plugins/replace-empty-element.cjs +257 -0
- package/src/refractor/plugins/replace-empty-element.mjs +250 -0
- package/src/refractor/registration.cjs +13 -0
- package/src/refractor/registration.mjs +6 -0
- package/src/refractor/specification.cjs +26 -0
- package/src/refractor/specification.mjs +21 -0
- package/src/refractor/toolbox.cjs +21 -0
- package/src/refractor/toolbox.mjs +15 -0
- package/src/refractor/visitors/json-schema/$defsVisitor.cjs +24 -0
- package/src/refractor/visitors/json-schema/$defsVisitor.mjs +21 -0
- package/src/refractor/visitors/json-schema/$refVisitor.cjs +16 -0
- package/src/refractor/visitors/json-schema/$refVisitor.mjs +12 -0
- package/src/refractor/visitors/json-schema/$vocabularyVisitor.cjs +16 -0
- package/src/refractor/visitors/json-schema/$vocabularyVisitor.mjs +12 -0
- package/src/refractor/visitors/json-schema/AllOfVisitor.cjs +30 -0
- package/src/refractor/visitors/json-schema/AllOfVisitor.mjs +27 -0
- package/src/refractor/visitors/json-schema/AnyOfVisitor.cjs +30 -0
- package/src/refractor/visitors/json-schema/AnyOfVisitor.mjs +27 -0
- package/src/refractor/visitors/json-schema/DependentRequiredVisitor.cjs +16 -0
- package/src/refractor/visitors/json-schema/DependentRequiredVisitor.mjs +12 -0
- package/src/refractor/visitors/json-schema/DependentSchemasVisitor.cjs +24 -0
- package/src/refractor/visitors/json-schema/DependentSchemasVisitor.mjs +21 -0
- package/src/refractor/visitors/json-schema/ItemsVisitor.cjs +35 -0
- package/src/refractor/visitors/json-schema/ItemsVisitor.mjs +32 -0
- package/src/refractor/visitors/json-schema/OneOfVisitor.cjs +30 -0
- package/src/refractor/visitors/json-schema/OneOfVisitor.mjs +27 -0
- package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.cjs +24 -0
- package/src/refractor/visitors/json-schema/PatternPropertiesVisitor.mjs +21 -0
- package/src/refractor/visitors/json-schema/PropertiesVisitor.cjs +24 -0
- package/src/refractor/visitors/json-schema/PropertiesVisitor.mjs +21 -0
- package/src/refractor/visitors/json-schema/index.cjs +36 -0
- package/src/refractor/visitors/json-schema/index.mjs +31 -0
- package/src/refractor/visitors/json-schema/link-description/index.cjs +17 -0
- package/src/refractor/visitors/json-schema/link-description/index.mjs +12 -0
- package/src/traversal/visitor.cjs +15 -0
- package/src/traversal/visitor.mjs +11 -0
- package/types/apidom-ns-json-schema-2019-09.d.ts +648 -0
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import { AllOfVisitor as AllOfVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
2
|
+
import { AlternatingVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
3
|
+
import { AlternatingVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
4
|
+
import { AnyOfVisitor as AnyOfVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
5
|
+
import { ArrayElement } from '@speclynx/apidom-core';
|
|
6
|
+
import { Attributes } from '@speclynx/apidom-core';
|
|
7
|
+
import { BooleanElement } from '@speclynx/apidom-core';
|
|
8
|
+
import { Class } from 'ts-mixer/dist/types/types.js';
|
|
9
|
+
import { DefinitionsVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
10
|
+
import { DependenciesVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
11
|
+
import { Element as Element_2 } from '@speclynx/apidom-core';
|
|
12
|
+
import { ElementPredicate } from '@speclynx/apidom-core';
|
|
13
|
+
import { EnumVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
14
|
+
import { FallbackVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
15
|
+
import { FallbackVisitor as FallbackVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
16
|
+
import { FallbackVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
17
|
+
import { FixedFieldsVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
18
|
+
import { FixedFieldsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
19
|
+
import { getNodeType } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
20
|
+
import { isArrayElement } from '@speclynx/apidom-core';
|
|
21
|
+
import { isBooleanElement } from '@speclynx/apidom-core';
|
|
22
|
+
import { isElement } from '@speclynx/apidom-core';
|
|
23
|
+
import { isLinkElement } from '@speclynx/apidom-core';
|
|
24
|
+
import { isMemberElement } from '@speclynx/apidom-core';
|
|
25
|
+
import { isNullElement } from '@speclynx/apidom-core';
|
|
26
|
+
import { isNumberElement } from '@speclynx/apidom-core';
|
|
27
|
+
import { isObjectElement } from '@speclynx/apidom-core';
|
|
28
|
+
import { isRefElement } from '@speclynx/apidom-core';
|
|
29
|
+
import { isStringElement } from '@speclynx/apidom-core';
|
|
30
|
+
import { ItemsVisitor as ItemsVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
31
|
+
import { JSONReference$RefVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
32
|
+
import { JSONReferenceVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
33
|
+
import { JSONSchemaElement as JSONSchemaElement_2 } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
34
|
+
import { JSONSchemaVisitor as JSONSchemaVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
35
|
+
import { JSONSchemaVisitor as JSONSchemaVisitor_3 } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
36
|
+
import { JSONSchemaVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
37
|
+
import { LinkDescriptionElement as LinkDescriptionElement_2 } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
38
|
+
import { LinkDescriptionVisitor as LinkDescriptionVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
39
|
+
import { LinkDescriptionVisitor as LinkDescriptionVisitor_3 } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
40
|
+
import { LinkDescriptionVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
41
|
+
import { LinksVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
42
|
+
import { MapVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
43
|
+
import { MapVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
44
|
+
import { MediaTypes } from '@speclynx/apidom-core';
|
|
45
|
+
import { MediaVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
46
|
+
import { Meta } from '@speclynx/apidom-core';
|
|
47
|
+
import { Namespace } from 'minim';
|
|
48
|
+
import { NamespacePluginOptions } from '@speclynx/apidom-core';
|
|
49
|
+
import { NumberElement } from '@speclynx/apidom-core';
|
|
50
|
+
import { ObjectElement } from '@speclynx/apidom-core';
|
|
51
|
+
import { OneOfVisitor as OneOfVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
52
|
+
import { ParentSchemaAwareVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
53
|
+
import { ParentSchemaAwareVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
54
|
+
import { PatternedFieldsVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
55
|
+
import { PatternedFieldsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
56
|
+
import { PatternPropertiesVisitor as PatternPropertiesVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
57
|
+
import { PropertiesVisitor as PropertiesVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
58
|
+
import { RequiredVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
59
|
+
import { SchemaOrReferenceVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
60
|
+
import { specificationObj as specificationObj_2 } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
61
|
+
import { SpecificationVisitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
62
|
+
import { SpecificationVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
63
|
+
import { SpecPath } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
64
|
+
import { StringElement } from '@speclynx/apidom-core';
|
|
65
|
+
import { TypeVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
66
|
+
import { Visitor } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
67
|
+
import { VisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-7';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class $defsVisitor extends $defsVisitor_base {
|
|
73
|
+
readonly element: ObjectElement;
|
|
74
|
+
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
75
|
+
constructor(options: $defsVisitorOptions);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare const $defsVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare interface $defsVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class $refVisitor extends FallbackVisitor {
|
|
90
|
+
readonly element: StringElement;
|
|
91
|
+
StringElement(stringElement: StringElement): {};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare class $vocabularyVisitor extends FallbackVisitor {
|
|
98
|
+
readonly element: ObjectElement;
|
|
99
|
+
ObjectElement(objectElement: ObjectElement): {};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare class AllOfVisitor extends AllOfVisitor_base {
|
|
106
|
+
readonly element: ArrayElement;
|
|
107
|
+
constructor(options: AllOfVisitorOptions);
|
|
108
|
+
ArrayElement(arrayElement: ArrayElement): {};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare const AllOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export declare interface AllOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { AlternatingVisitor }
|
|
120
|
+
|
|
121
|
+
export { AlternatingVisitorOptions }
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export declare class AnyOfVisitor extends AnyOfVisitor_base {
|
|
127
|
+
readonly element: ArrayElement;
|
|
128
|
+
constructor(options: AnyOfVisitorOptions);
|
|
129
|
+
ArrayElement(arrayElement: ArrayElement): {};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare const AnyOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export declare interface AnyOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
export declare const createRefractor: (specPath: string[]) => (value: unknown, options?: {}) => Element_2;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export declare class DependentRequiredVisitor extends FallbackVisitor {
|
|
149
|
+
readonly element: ObjectElement;
|
|
150
|
+
ObjectElement(objectElement: ObjectElement): {};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export declare class DependentSchemasVisitor extends DependentSchemasVisitor_base {
|
|
157
|
+
readonly element: ObjectElement;
|
|
158
|
+
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
159
|
+
constructor(options: DependentSchemasVisitorOptions);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare const DependentSchemasVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
export declare interface DependentSchemasVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export { FallbackVisitor }
|
|
171
|
+
|
|
172
|
+
export { FallbackVisitorOptions as $refVisitorOptions }
|
|
173
|
+
export { FallbackVisitorOptions as $vocabularyVisitorOptions }
|
|
174
|
+
export { FallbackVisitorOptions as DependentRequiredVisitorOptions }
|
|
175
|
+
export { FallbackVisitorOptions }
|
|
176
|
+
|
|
177
|
+
export { FixedFieldsVisitor }
|
|
178
|
+
|
|
179
|
+
export { FixedFieldsVisitorOptions }
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare type Format = 'generic' | 'json' | 'yaml';
|
|
185
|
+
|
|
186
|
+
export { getNodeType }
|
|
187
|
+
|
|
188
|
+
export { isArrayElement }
|
|
189
|
+
|
|
190
|
+
export { isBooleanElement }
|
|
191
|
+
|
|
192
|
+
export { isElement }
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
export declare const isJSONSchemaElement: ElementPredicate<JSONSchemaElement>;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
export declare const isLinkDescriptionElement: ElementPredicate<LinkDescriptionElement>;
|
|
203
|
+
|
|
204
|
+
export { isLinkElement }
|
|
205
|
+
|
|
206
|
+
export { isMemberElement }
|
|
207
|
+
|
|
208
|
+
export { isNullElement }
|
|
209
|
+
|
|
210
|
+
export { isNumberElement }
|
|
211
|
+
|
|
212
|
+
export { isObjectElement }
|
|
213
|
+
|
|
214
|
+
export { isRefElement }
|
|
215
|
+
|
|
216
|
+
export { isStringElement }
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export declare class ItemsVisitor extends ItemsVisitor_base {
|
|
222
|
+
element: ObjectElement | ArrayElement;
|
|
223
|
+
ObjectElement(objectElement: ObjectElement): {};
|
|
224
|
+
ArrayElement(arrayElement: ArrayElement): {};
|
|
225
|
+
BooleanElement(booleanElement: BooleanElement): {};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare const ItemsVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export declare interface ItemsVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
*/
|
|
239
|
+
declare const jsonSchema201909: {
|
|
240
|
+
namespace: (options: NamespacePluginOptions) => Namespace;
|
|
241
|
+
};
|
|
242
|
+
export default jsonSchema201909;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
export declare class JSONSchema201909MediaTypes extends MediaTypes<string> {
|
|
248
|
+
filterByFormat(format?: Format): string[];
|
|
249
|
+
findBy(version?: string, format?: Format): string;
|
|
250
|
+
latest(format?: Format): string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
export declare class JSONSchemaElement extends JSONSchemaElement_2 {
|
|
257
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
|
|
258
|
+
/**
|
|
259
|
+
* Core vocabulary
|
|
260
|
+
*
|
|
261
|
+
* URI: https://json-schema.org/draft/2019-09/vocab/core
|
|
262
|
+
*/
|
|
263
|
+
get $vocabulary(): ObjectElement | undefined;
|
|
264
|
+
set $vocabulary($vocabulary: ObjectElement | undefined);
|
|
265
|
+
get $anchor(): StringElement | undefined;
|
|
266
|
+
set $anchor($anchor: StringElement | undefined);
|
|
267
|
+
get $recursiveAnchor(): BooleanElement | undefined;
|
|
268
|
+
set $recursiveAnchor($recursiveAnchor: BooleanElement | undefined);
|
|
269
|
+
get $recursiveRef(): StringElement | undefined;
|
|
270
|
+
set $recursiveRef($recursiveRef: StringElement | undefined);
|
|
271
|
+
get $ref(): StringElement | undefined;
|
|
272
|
+
set $ref($ref: StringElement | undefined);
|
|
273
|
+
get $defs(): ObjectElement | undefined;
|
|
274
|
+
set $defs($defs: ObjectElement | undefined);
|
|
275
|
+
get definitions(): ObjectElement | undefined;
|
|
276
|
+
set definitions(definitions: ObjectElement | undefined);
|
|
277
|
+
/**
|
|
278
|
+
* Applicator vocabulary
|
|
279
|
+
*
|
|
280
|
+
* URI: https://json-schema.org/draft/2019-09/vocab/applicator
|
|
281
|
+
*/
|
|
282
|
+
get not(): this | BooleanElement | undefined;
|
|
283
|
+
set not(not: this | BooleanElement | undefined);
|
|
284
|
+
get if(): this | BooleanElement | undefined;
|
|
285
|
+
set if(ifSchema: this | BooleanElement | undefined);
|
|
286
|
+
get then(): this | BooleanElement | undefined;
|
|
287
|
+
set then(thenSchema: this | BooleanElement | undefined);
|
|
288
|
+
get else(): this | BooleanElement | undefined;
|
|
289
|
+
set else(elseSchema: this | BooleanElement | undefined);
|
|
290
|
+
get dependentSchemas(): ObjectElement | undefined;
|
|
291
|
+
set dependentSchemas(dependentSchemas: ObjectElement | undefined);
|
|
292
|
+
get dependencies(): ObjectElement | undefined;
|
|
293
|
+
set dependencies(dependencies: ObjectElement | undefined);
|
|
294
|
+
get items(): this | BooleanElement | ArrayElement | undefined;
|
|
295
|
+
set items(items: this | BooleanElement | ArrayElement | undefined);
|
|
296
|
+
get containsProp(): this | BooleanElement | undefined;
|
|
297
|
+
set containsProp(containsProp: this | BooleanElement | undefined);
|
|
298
|
+
get additionalProperties(): this | BooleanElement | undefined;
|
|
299
|
+
set additionalProperties(additionalProperties: this | BooleanElement | undefined);
|
|
300
|
+
get additionalItems(): this | BooleanElement | undefined;
|
|
301
|
+
set additionalItems(additionalItems: this | BooleanElement | undefined);
|
|
302
|
+
get propertyNames(): this | BooleanElement | undefined;
|
|
303
|
+
set propertyNames(propertyNames: this | BooleanElement | undefined);
|
|
304
|
+
get unevaluatedItems(): this | BooleanElement | undefined;
|
|
305
|
+
set unevaluatedItems(unevaluatedItems: this | BooleanElement | undefined);
|
|
306
|
+
get unevaluatedProperties(): this | BooleanElement | undefined;
|
|
307
|
+
set unevaluatedProperties(unevaluatedProperties: this | BooleanElement | undefined);
|
|
308
|
+
/**
|
|
309
|
+
* Validation vocabulary
|
|
310
|
+
*
|
|
311
|
+
* URI: https://json-schema.org/draft/2019-09/json-schema-validation#rfc.section.6
|
|
312
|
+
*/
|
|
313
|
+
/**
|
|
314
|
+
* Validation Keywords for Arrays
|
|
315
|
+
*
|
|
316
|
+
* URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.4
|
|
317
|
+
*/
|
|
318
|
+
get maxContains(): NumberElement | undefined;
|
|
319
|
+
set maxContains(maxContains: NumberElement | undefined);
|
|
320
|
+
get minContains(): NumberElement | undefined;
|
|
321
|
+
set minContains(minContains: NumberElement | undefined);
|
|
322
|
+
/**
|
|
323
|
+
* Validation Keywords for Objects
|
|
324
|
+
*
|
|
325
|
+
* URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.5
|
|
326
|
+
*/
|
|
327
|
+
get dependentRequired(): ObjectElement | undefined;
|
|
328
|
+
set dependentRequired(dependentRequired: ObjectElement | undefined);
|
|
329
|
+
/**
|
|
330
|
+
* Vocabulary for Basic Meta-Data Annotations
|
|
331
|
+
*
|
|
332
|
+
* URI: https://json-schema.org/draft/2019-09/vocab/meta-data
|
|
333
|
+
*/
|
|
334
|
+
get deprecated(): BooleanElement | undefined;
|
|
335
|
+
set deprecated(deprecated: BooleanElement | undefined);
|
|
336
|
+
/**
|
|
337
|
+
* Vocabulary for the Contents of String-Encoded Data
|
|
338
|
+
*
|
|
339
|
+
* URI: https://json-schema.org/draft/2019-09/vocab/content
|
|
340
|
+
*/
|
|
341
|
+
get contentSchema(): this | BooleanElement | undefined;
|
|
342
|
+
set contentSchema(contentSchema: this | BooleanElement | undefined);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @public
|
|
347
|
+
*/
|
|
348
|
+
export declare class JSONSchemaVisitor extends JSONSchemaVisitor_3 {
|
|
349
|
+
element: JSONSchemaElement;
|
|
350
|
+
constructor(options: JSONSchemaVisitorOptions);
|
|
351
|
+
get defaultDialectIdentifier(): string;
|
|
352
|
+
ObjectElement(objectElement: ObjectElement): {};
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export { JSONSchemaVisitorOptions }
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @public
|
|
359
|
+
*/
|
|
360
|
+
export declare const keyMap: {
|
|
361
|
+
ObjectElement: string[];
|
|
362
|
+
ArrayElement: string[];
|
|
363
|
+
MemberElement: string[];
|
|
364
|
+
StringElement: never[];
|
|
365
|
+
BooleanElement: never[];
|
|
366
|
+
NumberElement: never[];
|
|
367
|
+
NullElement: never[];
|
|
368
|
+
RefElement: never[];
|
|
369
|
+
LinkElement: never[];
|
|
370
|
+
Annotation: never[];
|
|
371
|
+
Comment: never[];
|
|
372
|
+
ParseResultElement: string[];
|
|
373
|
+
SourceMap: string[];
|
|
374
|
+
JSONSchema201909Element: string[];
|
|
375
|
+
LinkDescriptionElement: string[];
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#rfc.section.6
|
|
380
|
+
* @public
|
|
381
|
+
*/
|
|
382
|
+
export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
|
|
383
|
+
/**
|
|
384
|
+
* Link Target Attributes.
|
|
385
|
+
*
|
|
386
|
+
* URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#rfc.section.6.5
|
|
387
|
+
*/
|
|
388
|
+
get targetSchema(): JSONSchemaElement | BooleanElement | undefined;
|
|
389
|
+
set targetSchema(targetSchema: JSONSchemaElement | BooleanElement | undefined);
|
|
390
|
+
/**
|
|
391
|
+
* Link Input.
|
|
392
|
+
*
|
|
393
|
+
* URI: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-hyperschema-02#input
|
|
394
|
+
*/
|
|
395
|
+
get hrefSchema(): JSONSchemaElement | BooleanElement | undefined;
|
|
396
|
+
set hrefSchema(hrefSchema: JSONSchemaElement | BooleanElement | undefined);
|
|
397
|
+
get headerSchema(): JSONSchemaElement | BooleanElement | undefined;
|
|
398
|
+
set headerSchema(headerSchema: JSONSchemaElement | BooleanElement | undefined);
|
|
399
|
+
get submissionSchema(): JSONSchemaElement | BooleanElement | undefined;
|
|
400
|
+
set submissionSchema(submissionSchema: JSONSchemaElement | BooleanElement | undefined);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @public
|
|
405
|
+
*/
|
|
406
|
+
export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_3 {
|
|
407
|
+
readonly element: LinkDescriptionElement;
|
|
408
|
+
constructor(options: LinkDescriptionVisitorOptions);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export { LinkDescriptionVisitorOptions }
|
|
412
|
+
|
|
413
|
+
export { MapVisitor }
|
|
414
|
+
|
|
415
|
+
export { MapVisitorOptions }
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @public
|
|
419
|
+
*/
|
|
420
|
+
export declare const mediaTypes: JSONSchema201909MediaTypes;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @public
|
|
424
|
+
*/
|
|
425
|
+
export declare class OneOfVisitor extends OneOfVisitor_base {
|
|
426
|
+
readonly element: ArrayElement;
|
|
427
|
+
constructor(options: OneOfVisitorOptions);
|
|
428
|
+
ArrayElement(arrayElement: ArrayElement): {};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
declare const OneOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @public
|
|
435
|
+
*/
|
|
436
|
+
export declare interface OneOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export { ParentSchemaAwareVisitor }
|
|
440
|
+
|
|
441
|
+
export { ParentSchemaAwareVisitorOptions }
|
|
442
|
+
|
|
443
|
+
export { PatternedFieldsVisitor }
|
|
444
|
+
|
|
445
|
+
export { PatternedFieldsVisitorOptions }
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @public
|
|
449
|
+
*/
|
|
450
|
+
export declare class PatternPropertiesVisitor extends PatternPropertiesVisitor_base {
|
|
451
|
+
readonly element: ObjectElement;
|
|
452
|
+
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
453
|
+
constructor(options: PatternPropertiesVisitorOptions);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
declare const PatternPropertiesVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @public
|
|
460
|
+
*/
|
|
461
|
+
export declare interface PatternPropertiesVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @public
|
|
466
|
+
*/
|
|
467
|
+
export declare class PropertiesVisitor extends PropertiesVisitor_base {
|
|
468
|
+
readonly element: ObjectElement;
|
|
469
|
+
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
470
|
+
constructor(options: PropertiesVisitorOptions);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
declare const PropertiesVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @public
|
|
477
|
+
*/
|
|
478
|
+
export declare interface PropertiesVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* @public
|
|
483
|
+
*/
|
|
484
|
+
export declare const refract: <T extends Element_2>(value: unknown, { specPath, plugins, specificationObj, }?: {
|
|
485
|
+
specPath?: string[] | undefined;
|
|
486
|
+
plugins?: never[] | undefined;
|
|
487
|
+
specificationObj?: {
|
|
488
|
+
visitors: {
|
|
489
|
+
value: FallbackVisitor_2;
|
|
490
|
+
JSONSchemaOrJSONReferenceVisitor: SchemaOrReferenceVisitor;
|
|
491
|
+
document: {
|
|
492
|
+
objects: {
|
|
493
|
+
JSONSchema: {
|
|
494
|
+
$visitor: JSONSchemaVisitor_2;
|
|
495
|
+
fixedFields: {
|
|
496
|
+
id: {
|
|
497
|
+
$ref: string;
|
|
498
|
+
};
|
|
499
|
+
$schema: {
|
|
500
|
+
$ref: string;
|
|
501
|
+
};
|
|
502
|
+
multipleOf: {
|
|
503
|
+
$ref: string;
|
|
504
|
+
};
|
|
505
|
+
maximum: {
|
|
506
|
+
$ref: string;
|
|
507
|
+
};
|
|
508
|
+
exclusiveMaximum: {
|
|
509
|
+
$ref: string;
|
|
510
|
+
};
|
|
511
|
+
minimum: {
|
|
512
|
+
$ref: string;
|
|
513
|
+
};
|
|
514
|
+
exclusiveMinimum: {
|
|
515
|
+
$ref: string;
|
|
516
|
+
};
|
|
517
|
+
maxLength: {
|
|
518
|
+
$ref: string;
|
|
519
|
+
};
|
|
520
|
+
minLength: {
|
|
521
|
+
$ref: string;
|
|
522
|
+
};
|
|
523
|
+
pattern: {
|
|
524
|
+
$ref: string;
|
|
525
|
+
};
|
|
526
|
+
additionalItems: SchemaOrReferenceVisitor;
|
|
527
|
+
items: ItemsVisitor_2;
|
|
528
|
+
maxItems: {
|
|
529
|
+
$ref: string;
|
|
530
|
+
};
|
|
531
|
+
minItems: {
|
|
532
|
+
$ref: string;
|
|
533
|
+
};
|
|
534
|
+
uniqueItems: {
|
|
535
|
+
$ref: string;
|
|
536
|
+
};
|
|
537
|
+
maxProperties: {
|
|
538
|
+
$ref: string;
|
|
539
|
+
};
|
|
540
|
+
minProperties: {
|
|
541
|
+
$ref: string;
|
|
542
|
+
};
|
|
543
|
+
required: RequiredVisitor;
|
|
544
|
+
properties: PropertiesVisitor_2;
|
|
545
|
+
additionalProperties: SchemaOrReferenceVisitor;
|
|
546
|
+
patternProperties: PatternPropertiesVisitor_2;
|
|
547
|
+
dependencies: DependenciesVisitor;
|
|
548
|
+
enum: EnumVisitor;
|
|
549
|
+
type: TypeVisitor;
|
|
550
|
+
allOf: AllOfVisitor_2;
|
|
551
|
+
anyOf: AnyOfVisitor_2;
|
|
552
|
+
oneOf: OneOfVisitor_2;
|
|
553
|
+
not: SchemaOrReferenceVisitor;
|
|
554
|
+
definitions: DefinitionsVisitor;
|
|
555
|
+
title: {
|
|
556
|
+
$ref: string;
|
|
557
|
+
};
|
|
558
|
+
description: {
|
|
559
|
+
$ref: string;
|
|
560
|
+
};
|
|
561
|
+
default: {
|
|
562
|
+
$ref: string;
|
|
563
|
+
};
|
|
564
|
+
format: {
|
|
565
|
+
$ref: string;
|
|
566
|
+
};
|
|
567
|
+
base: {
|
|
568
|
+
$ref: string;
|
|
569
|
+
};
|
|
570
|
+
links: LinksVisitor;
|
|
571
|
+
media: {
|
|
572
|
+
$ref: string;
|
|
573
|
+
};
|
|
574
|
+
readOnly: {
|
|
575
|
+
$ref: string;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
JSONReference: {
|
|
580
|
+
$visitor: JSONReferenceVisitor;
|
|
581
|
+
fixedFields: {
|
|
582
|
+
$ref: JSONReference$RefVisitor;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
Media: {
|
|
586
|
+
$visitor: MediaVisitor;
|
|
587
|
+
fixedFields: {
|
|
588
|
+
binaryEncoding: {
|
|
589
|
+
$ref: string;
|
|
590
|
+
};
|
|
591
|
+
type: {
|
|
592
|
+
$ref: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
LinkDescription: {
|
|
597
|
+
$visitor: LinkDescriptionVisitor_2;
|
|
598
|
+
fixedFields: {
|
|
599
|
+
href: {
|
|
600
|
+
$ref: string;
|
|
601
|
+
};
|
|
602
|
+
rel: {
|
|
603
|
+
$ref: string;
|
|
604
|
+
};
|
|
605
|
+
title: {
|
|
606
|
+
$ref: string;
|
|
607
|
+
};
|
|
608
|
+
targetSchema: SchemaOrReferenceVisitor;
|
|
609
|
+
mediaType: {
|
|
610
|
+
$ref: string;
|
|
611
|
+
};
|
|
612
|
+
method: {
|
|
613
|
+
$ref: string;
|
|
614
|
+
};
|
|
615
|
+
encType: {
|
|
616
|
+
$ref: string;
|
|
617
|
+
};
|
|
618
|
+
schema: SchemaOrReferenceVisitor;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
} | undefined;
|
|
625
|
+
}) => T;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @public
|
|
629
|
+
*/
|
|
630
|
+
export declare const refractorPluginReplaceEmptyElement: () => () => {
|
|
631
|
+
visitor: {
|
|
632
|
+
StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export declare const specificationObj: typeof specificationObj_2;
|
|
637
|
+
|
|
638
|
+
export { SpecificationVisitor }
|
|
639
|
+
|
|
640
|
+
export { SpecificationVisitorOptions }
|
|
641
|
+
|
|
642
|
+
export { SpecPath }
|
|
643
|
+
|
|
644
|
+
export { Visitor }
|
|
645
|
+
|
|
646
|
+
export { VisitorOptions }
|
|
647
|
+
|
|
648
|
+
export { }
|