@speclynx/apidom-ns-json-schema-draft-7 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 +188 -0
- package/dist/apidom-ns-json-schema-draft-7.browser.js +1 -0
- package/package.json +65 -0
- package/src/elements/JSONSchema.cjs +121 -0
- package/src/elements/JSONSchema.mjs +118 -0
- package/src/elements/LinkDescription.cjs +138 -0
- package/src/elements/LinkDescription.mjs +134 -0
- package/src/index.cjs +54 -0
- package/src/index.mjs +16 -0
- package/src/media-types.cjs +34 -0
- package/src/media-types.mjs +30 -0
- package/src/namespace.cjs +23 -0
- package/src/namespace.mjs +18 -0
- package/src/predicates.cjs +31 -0
- package/src/predicates.mjs +26 -0
- package/src/refractor/index.cjs +54 -0
- package/src/refractor/index.mjs +48 -0
- package/src/refractor/plugins/replace-empty-element.cjs +233 -0
- package/src/refractor/plugins/replace-empty-element.mjs +226 -0
- package/src/refractor/registration.cjs +13 -0
- package/src/refractor/registration.mjs +6 -0
- package/src/refractor/specification.cjs +15 -0
- package/src/refractor/specification.mjs +10 -0
- package/src/refractor/toolbox.cjs +21 -0
- package/src/refractor/toolbox.mjs +15 -0
- package/src/refractor/visitors/json-schema/index.cjs +20 -0
- package/src/refractor/visitors/json-schema/index.mjs +15 -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 +16 -0
- package/src/traversal/visitor.mjs +12 -0
- package/types/apidom-ns-json-schema-draft-7.d.ts +551 -0
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import { AllOfVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
2
|
+
import { AllOfVisitor as AllOfVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
3
|
+
import { AllOfVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
4
|
+
import { AlternatingVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
5
|
+
import { AlternatingVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
6
|
+
import { AnyOfVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
7
|
+
import { AnyOfVisitor as AnyOfVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
8
|
+
import { AnyOfVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
9
|
+
import { ArrayElement } from '@speclynx/apidom-core';
|
|
10
|
+
import { Attributes } from '@speclynx/apidom-core';
|
|
11
|
+
import { BooleanElement } from '@speclynx/apidom-core';
|
|
12
|
+
import { DefinitionsVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
13
|
+
import { DefinitionsVisitor as DefinitionsVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
14
|
+
import { DefinitionsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
15
|
+
import { DependenciesVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
16
|
+
import { DependenciesVisitor as DependenciesVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
17
|
+
import { DependenciesVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
18
|
+
import { Element as Element_2 } from '@speclynx/apidom-core';
|
|
19
|
+
import { ElementPredicate } from '@speclynx/apidom-core';
|
|
20
|
+
import { EnumVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
21
|
+
import { FallbackVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
22
|
+
import { FallbackVisitor as FallbackVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
23
|
+
import { FallbackVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
24
|
+
import { FixedFieldsVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
25
|
+
import { FixedFieldsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
26
|
+
import { getNodeType } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
27
|
+
import { isArrayElement } from '@speclynx/apidom-core';
|
|
28
|
+
import { isBooleanElement } from '@speclynx/apidom-core';
|
|
29
|
+
import { isElement } from '@speclynx/apidom-core';
|
|
30
|
+
import { isJSONReferenceElement } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
31
|
+
import { isJSONReferenceLikeElement } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
32
|
+
import { isLinkElement } from '@speclynx/apidom-core';
|
|
33
|
+
import { isMemberElement } from '@speclynx/apidom-core';
|
|
34
|
+
import { isNullElement } from '@speclynx/apidom-core';
|
|
35
|
+
import { isNumberElement } from '@speclynx/apidom-core';
|
|
36
|
+
import { isObjectElement } from '@speclynx/apidom-core';
|
|
37
|
+
import { isRefElement } from '@speclynx/apidom-core';
|
|
38
|
+
import { isStringElement } from '@speclynx/apidom-core';
|
|
39
|
+
import { ItemsVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
40
|
+
import { ItemsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
41
|
+
import { JSONReference$RefVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
42
|
+
import { JSONReferenceElement } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
43
|
+
import { JSONReferenceVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
44
|
+
import { JSONSchemaDraft4ItemsVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
45
|
+
import { JSONSchemaElement as JSONSchemaElement_2 } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
46
|
+
import { JSONSchemaVisitor as JSONSchemaVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
47
|
+
import { JSONSchemaVisitor as JSONSchemaVisitor_3 } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
48
|
+
import { JSONSchemaVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
49
|
+
import { LinkDescriptionElement as LinkDescriptionElement_2 } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
50
|
+
import { LinkDescriptionVisitor as LinkDescriptionVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
51
|
+
import { LinkDescriptionVisitor as LinkDescriptionVisitor_3 } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
52
|
+
import { LinkDescriptionVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
53
|
+
import { LinksVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
54
|
+
import { MapVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
55
|
+
import { MapVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
56
|
+
import { MediaElement } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
57
|
+
import { MediaTypes } from '@speclynx/apidom-core';
|
|
58
|
+
import { MediaVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
59
|
+
import { Meta } from '@speclynx/apidom-core';
|
|
60
|
+
import { Namespace } from 'minim';
|
|
61
|
+
import { NamespacePluginOptions } from '@speclynx/apidom-core';
|
|
62
|
+
import { ObjectElement } from '@speclynx/apidom-core';
|
|
63
|
+
import { OneOfVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
64
|
+
import { OneOfVisitor as OneOfVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
65
|
+
import { OneOfVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
66
|
+
import { ParentSchemaAwareVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
67
|
+
import { ParentSchemaAwareVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
68
|
+
import { PatternedFieldsVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
69
|
+
import { PatternedFieldsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
70
|
+
import { PatternPropertiesVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
71
|
+
import { PatternPropertiesVisitor as PatternPropertiesVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
72
|
+
import { PatternPropertiesVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
73
|
+
import { PropertiesVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
74
|
+
import { PropertiesVisitor as PropertiesVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
75
|
+
import { PropertiesVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
76
|
+
import { RequiredVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
77
|
+
import { SchemaOrReferenceVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
78
|
+
import { SchemaOrReferenceVisitor as SchemaOrReferenceVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
79
|
+
import { SchemaOrReferenceVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
80
|
+
import { specificationObj as specificationObj_2 } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
81
|
+
import { SpecificationVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
82
|
+
import { SpecificationVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
83
|
+
import { SpecPath } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
84
|
+
import { StringElement } from '@speclynx/apidom-core';
|
|
85
|
+
import { TypeVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
86
|
+
import { Visitor } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
87
|
+
import { VisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-6';
|
|
88
|
+
|
|
89
|
+
export { AllOfVisitor }
|
|
90
|
+
|
|
91
|
+
export { AllOfVisitorOptions }
|
|
92
|
+
|
|
93
|
+
export { AlternatingVisitor }
|
|
94
|
+
|
|
95
|
+
export { AlternatingVisitorOptions }
|
|
96
|
+
|
|
97
|
+
export { AnyOfVisitor }
|
|
98
|
+
|
|
99
|
+
export { AnyOfVisitorOptions }
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare const createRefractor: (specPath: string[]) => (value: unknown, options?: {}) => Element_2;
|
|
105
|
+
|
|
106
|
+
export { DefinitionsVisitor }
|
|
107
|
+
|
|
108
|
+
export { DefinitionsVisitorOptions }
|
|
109
|
+
|
|
110
|
+
export { DependenciesVisitor }
|
|
111
|
+
|
|
112
|
+
export { DependenciesVisitorOptions }
|
|
113
|
+
|
|
114
|
+
export { FallbackVisitor }
|
|
115
|
+
|
|
116
|
+
export { FallbackVisitorOptions }
|
|
117
|
+
|
|
118
|
+
export { FixedFieldsVisitor }
|
|
119
|
+
|
|
120
|
+
export { FixedFieldsVisitorOptions }
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare type Format = 'generic' | 'json' | 'yaml';
|
|
126
|
+
|
|
127
|
+
export { getNodeType }
|
|
128
|
+
|
|
129
|
+
export { isArrayElement }
|
|
130
|
+
|
|
131
|
+
export { isBooleanElement }
|
|
132
|
+
|
|
133
|
+
export { isElement }
|
|
134
|
+
|
|
135
|
+
export { isJSONReferenceElement }
|
|
136
|
+
|
|
137
|
+
export { isJSONReferenceLikeElement }
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
export declare const isJSONSchemaElement: ElementPredicate<JSONSchemaElement>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
export declare const isLinkDescriptionElement: ElementPredicate<LinkDescriptionElement>;
|
|
148
|
+
|
|
149
|
+
export { isLinkElement }
|
|
150
|
+
|
|
151
|
+
export { isMemberElement }
|
|
152
|
+
|
|
153
|
+
export { isNullElement }
|
|
154
|
+
|
|
155
|
+
export { isNumberElement }
|
|
156
|
+
|
|
157
|
+
export { isObjectElement }
|
|
158
|
+
|
|
159
|
+
export { isRefElement }
|
|
160
|
+
|
|
161
|
+
export { isStringElement }
|
|
162
|
+
|
|
163
|
+
export { ItemsVisitorOptions }
|
|
164
|
+
|
|
165
|
+
export { JSONReferenceElement }
|
|
166
|
+
|
|
167
|
+
export { JSONSchemaDraft4ItemsVisitor }
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
declare const jsonSchemaDraft7: {
|
|
173
|
+
namespace: (options: NamespacePluginOptions) => Namespace;
|
|
174
|
+
};
|
|
175
|
+
export default jsonSchemaDraft7;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export declare class JSONSchemaDraft7MediaTypes extends MediaTypes<string> {
|
|
181
|
+
filterByFormat(format?: Format): string[];
|
|
182
|
+
findBy(version?: string, format?: Format): string;
|
|
183
|
+
latest(format?: Format): string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export declare class JSONSchemaElement extends JSONSchemaElement_2 {
|
|
190
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
|
|
191
|
+
/**
|
|
192
|
+
* Core vocabulary
|
|
193
|
+
*
|
|
194
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-01
|
|
195
|
+
*/
|
|
196
|
+
get $comment(): StringElement | undefined;
|
|
197
|
+
set $comment($comment: StringElement | undefined);
|
|
198
|
+
/**
|
|
199
|
+
* Validation vocabulary
|
|
200
|
+
*
|
|
201
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01
|
|
202
|
+
*/
|
|
203
|
+
/**
|
|
204
|
+
* Validation keywords for arrays
|
|
205
|
+
*/
|
|
206
|
+
get items(): this | BooleanElement | JSONReferenceElement | ArrayElement | undefined;
|
|
207
|
+
set items(items: this | BooleanElement | JSONReferenceElement | ArrayElement | undefined);
|
|
208
|
+
/**
|
|
209
|
+
* Keywords for Applying Subschemas Conditionally
|
|
210
|
+
*
|
|
211
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
212
|
+
*/
|
|
213
|
+
get if(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
214
|
+
set if(ifValue: this | BooleanElement | JSONReferenceElement | undefined);
|
|
215
|
+
get then(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
216
|
+
set then(then: this | BooleanElement | JSONReferenceElement | undefined);
|
|
217
|
+
get else(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
218
|
+
set else(elseValue: this | BooleanElement | JSONReferenceElement | undefined);
|
|
219
|
+
/**
|
|
220
|
+
* Keywords for Applying Subschemas With Boolean Logic
|
|
221
|
+
*
|
|
222
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
223
|
+
*/
|
|
224
|
+
get not(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
225
|
+
set not(not: this | BooleanElement | JSONReferenceElement | undefined);
|
|
226
|
+
/**
|
|
227
|
+
* String-Encoding Non-JSON Data
|
|
228
|
+
*
|
|
229
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-00#section-8
|
|
230
|
+
*/
|
|
231
|
+
get contentEncoding(): StringElement | undefined;
|
|
232
|
+
set contentEncoding(contentEncoding: StringElement | undefined);
|
|
233
|
+
get contentMediaType(): StringElement | undefined;
|
|
234
|
+
set contentMediaType(contentMediaType: StringElement | undefined);
|
|
235
|
+
get media(): MediaElement | undefined;
|
|
236
|
+
set media(media: MediaElement | undefined);
|
|
237
|
+
/**
|
|
238
|
+
* Schema annotations
|
|
239
|
+
*
|
|
240
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-10
|
|
241
|
+
*/
|
|
242
|
+
get writeOnly(): BooleanElement | undefined;
|
|
243
|
+
set writeOnly(writeOnly: BooleanElement | undefined);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
export declare class JSONSchemaVisitor extends JSONSchemaVisitor_3 {
|
|
250
|
+
element: JSONSchemaElement;
|
|
251
|
+
constructor(options: JSONSchemaVisitorOptions);
|
|
252
|
+
get defaultDialectIdentifier(): string;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { JSONSchemaVisitorOptions }
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export declare const keyMap: {
|
|
261
|
+
ObjectElement: string[];
|
|
262
|
+
ArrayElement: string[];
|
|
263
|
+
MemberElement: string[];
|
|
264
|
+
StringElement: never[];
|
|
265
|
+
BooleanElement: never[];
|
|
266
|
+
NumberElement: never[];
|
|
267
|
+
NullElement: never[];
|
|
268
|
+
RefElement: never[];
|
|
269
|
+
LinkElement: never[];
|
|
270
|
+
Annotation: never[];
|
|
271
|
+
Comment: never[];
|
|
272
|
+
ParseResultElement: string[];
|
|
273
|
+
SourceMap: string[];
|
|
274
|
+
JSONSchemaDraft7Element: string[];
|
|
275
|
+
JSONReferenceElement: string[];
|
|
276
|
+
LinkDescriptionElement: string[];
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-01#section-6
|
|
281
|
+
* @public
|
|
282
|
+
*/
|
|
283
|
+
export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
|
|
284
|
+
/**
|
|
285
|
+
* Link context.
|
|
286
|
+
*
|
|
287
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.1
|
|
288
|
+
*/
|
|
289
|
+
get anchor(): StringElement | undefined;
|
|
290
|
+
set anchor(anchor: StringElement | undefined);
|
|
291
|
+
get anchorPointer(): StringElement | undefined;
|
|
292
|
+
set anchorPointer(anchorPointer: StringElement | undefined);
|
|
293
|
+
/**
|
|
294
|
+
* Adjusting URI Template Resolution.
|
|
295
|
+
*
|
|
296
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.4
|
|
297
|
+
*/
|
|
298
|
+
get templatePointers(): ObjectElement | undefined;
|
|
299
|
+
set templatePointers(templatePointers: ObjectElement | undefined);
|
|
300
|
+
get templateRequired(): ArrayElement | undefined;
|
|
301
|
+
set templateRequired(templateRequired: ArrayElement | undefined);
|
|
302
|
+
/**
|
|
303
|
+
* Link Target Attributes.
|
|
304
|
+
*
|
|
305
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.5
|
|
306
|
+
*/
|
|
307
|
+
get targetSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
|
|
308
|
+
set targetSchema(targetSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
|
|
309
|
+
get mediaType(): StringElement | undefined;
|
|
310
|
+
set mediaType(mediaType: StringElement | undefined);
|
|
311
|
+
get targetMediaType(): StringElement | undefined;
|
|
312
|
+
set targetMediaType(targetMediaType: StringElement | undefined);
|
|
313
|
+
get targetHints(): ObjectElement | undefined;
|
|
314
|
+
set targetHints(targetHints: ObjectElement | undefined);
|
|
315
|
+
get description(): StringElement | undefined;
|
|
316
|
+
set description(description: StringElement | undefined);
|
|
317
|
+
get $comment(): StringElement | undefined;
|
|
318
|
+
set $comment($comment: StringElement | undefined);
|
|
319
|
+
/**
|
|
320
|
+
* Link Input.
|
|
321
|
+
*
|
|
322
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6
|
|
323
|
+
*/
|
|
324
|
+
get hrefSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
|
|
325
|
+
set hrefSchema(hrefSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
|
|
326
|
+
get headerSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
|
|
327
|
+
set headerSchema(headerSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
|
|
328
|
+
/**
|
|
329
|
+
* Submitting Data for Processing.
|
|
330
|
+
*
|
|
331
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6.4
|
|
332
|
+
*/
|
|
333
|
+
get submissionSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
|
|
334
|
+
set submissionSchema(submissionSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
|
|
335
|
+
get submissionEncType(): StringElement | undefined;
|
|
336
|
+
set submissionEncType(submissionEncType: StringElement | undefined);
|
|
337
|
+
get submissionMediaType(): StringElement | undefined;
|
|
338
|
+
set submissionMediaType(submissionMediaType: StringElement | undefined);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @public
|
|
343
|
+
*/
|
|
344
|
+
export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_3 {
|
|
345
|
+
readonly element: LinkDescriptionElement;
|
|
346
|
+
constructor(options: LinkDescriptionVisitorOptions);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export { LinkDescriptionVisitorOptions }
|
|
350
|
+
|
|
351
|
+
export { MapVisitor }
|
|
352
|
+
|
|
353
|
+
export { MapVisitorOptions }
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @public
|
|
357
|
+
*/
|
|
358
|
+
export declare const mediaTypes: JSONSchemaDraft7MediaTypes;
|
|
359
|
+
|
|
360
|
+
export { OneOfVisitor }
|
|
361
|
+
|
|
362
|
+
export { OneOfVisitorOptions }
|
|
363
|
+
|
|
364
|
+
export { ParentSchemaAwareVisitor }
|
|
365
|
+
|
|
366
|
+
export { ParentSchemaAwareVisitorOptions }
|
|
367
|
+
|
|
368
|
+
export { PatternedFieldsVisitor }
|
|
369
|
+
|
|
370
|
+
export { PatternedFieldsVisitorOptions }
|
|
371
|
+
|
|
372
|
+
export { PatternPropertiesVisitor }
|
|
373
|
+
|
|
374
|
+
export { PatternPropertiesVisitorOptions }
|
|
375
|
+
|
|
376
|
+
export { PropertiesVisitor }
|
|
377
|
+
|
|
378
|
+
export { PropertiesVisitorOptions }
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
export declare const refract: <T extends Element_2>(value: unknown, { specPath, plugins, specificationObj, }?: {
|
|
384
|
+
specPath?: string[] | undefined;
|
|
385
|
+
plugins?: never[] | undefined;
|
|
386
|
+
specificationObj?: {
|
|
387
|
+
visitors: {
|
|
388
|
+
value: FallbackVisitor_2;
|
|
389
|
+
JSONSchemaOrJSONReferenceVisitor: SchemaOrReferenceVisitor_2;
|
|
390
|
+
document: {
|
|
391
|
+
objects: {
|
|
392
|
+
JSONSchema: {
|
|
393
|
+
$visitor: JSONSchemaVisitor_2;
|
|
394
|
+
fixedFields: {
|
|
395
|
+
id: {
|
|
396
|
+
$ref: string;
|
|
397
|
+
};
|
|
398
|
+
$schema: {
|
|
399
|
+
$ref: string;
|
|
400
|
+
};
|
|
401
|
+
multipleOf: {
|
|
402
|
+
$ref: string;
|
|
403
|
+
};
|
|
404
|
+
maximum: {
|
|
405
|
+
$ref: string;
|
|
406
|
+
};
|
|
407
|
+
exclusiveMaximum: {
|
|
408
|
+
$ref: string;
|
|
409
|
+
};
|
|
410
|
+
minimum: {
|
|
411
|
+
$ref: string;
|
|
412
|
+
};
|
|
413
|
+
exclusiveMinimum: {
|
|
414
|
+
$ref: string;
|
|
415
|
+
};
|
|
416
|
+
maxLength: {
|
|
417
|
+
$ref: string;
|
|
418
|
+
};
|
|
419
|
+
minLength: {
|
|
420
|
+
$ref: string;
|
|
421
|
+
};
|
|
422
|
+
pattern: {
|
|
423
|
+
$ref: string;
|
|
424
|
+
};
|
|
425
|
+
additionalItems: SchemaOrReferenceVisitor_2;
|
|
426
|
+
items: ItemsVisitor;
|
|
427
|
+
maxItems: {
|
|
428
|
+
$ref: string;
|
|
429
|
+
};
|
|
430
|
+
minItems: {
|
|
431
|
+
$ref: string;
|
|
432
|
+
};
|
|
433
|
+
uniqueItems: {
|
|
434
|
+
$ref: string;
|
|
435
|
+
};
|
|
436
|
+
maxProperties: {
|
|
437
|
+
$ref: string;
|
|
438
|
+
};
|
|
439
|
+
minProperties: {
|
|
440
|
+
$ref: string;
|
|
441
|
+
};
|
|
442
|
+
required: RequiredVisitor;
|
|
443
|
+
properties: PropertiesVisitor_2;
|
|
444
|
+
additionalProperties: SchemaOrReferenceVisitor_2;
|
|
445
|
+
patternProperties: PatternPropertiesVisitor_2;
|
|
446
|
+
dependencies: DependenciesVisitor_2;
|
|
447
|
+
enum: EnumVisitor;
|
|
448
|
+
type: TypeVisitor;
|
|
449
|
+
allOf: AllOfVisitor_2;
|
|
450
|
+
anyOf: AnyOfVisitor_2;
|
|
451
|
+
oneOf: OneOfVisitor_2;
|
|
452
|
+
not: SchemaOrReferenceVisitor_2;
|
|
453
|
+
definitions: DefinitionsVisitor_2;
|
|
454
|
+
title: {
|
|
455
|
+
$ref: string;
|
|
456
|
+
};
|
|
457
|
+
description: {
|
|
458
|
+
$ref: string;
|
|
459
|
+
};
|
|
460
|
+
default: {
|
|
461
|
+
$ref: string;
|
|
462
|
+
};
|
|
463
|
+
format: {
|
|
464
|
+
$ref: string;
|
|
465
|
+
};
|
|
466
|
+
base: {
|
|
467
|
+
$ref: string;
|
|
468
|
+
};
|
|
469
|
+
links: LinksVisitor;
|
|
470
|
+
media: {
|
|
471
|
+
$ref: string;
|
|
472
|
+
};
|
|
473
|
+
readOnly: {
|
|
474
|
+
$ref: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
JSONReference: {
|
|
479
|
+
$visitor: JSONReferenceVisitor;
|
|
480
|
+
fixedFields: {
|
|
481
|
+
$ref: JSONReference$RefVisitor;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
Media: {
|
|
485
|
+
$visitor: MediaVisitor;
|
|
486
|
+
fixedFields: {
|
|
487
|
+
binaryEncoding: {
|
|
488
|
+
$ref: string;
|
|
489
|
+
};
|
|
490
|
+
type: {
|
|
491
|
+
$ref: string;
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
LinkDescription: {
|
|
496
|
+
$visitor: LinkDescriptionVisitor_2;
|
|
497
|
+
fixedFields: {
|
|
498
|
+
href: {
|
|
499
|
+
$ref: string;
|
|
500
|
+
};
|
|
501
|
+
rel: {
|
|
502
|
+
$ref: string;
|
|
503
|
+
};
|
|
504
|
+
title: {
|
|
505
|
+
$ref: string;
|
|
506
|
+
};
|
|
507
|
+
targetSchema: SchemaOrReferenceVisitor_2;
|
|
508
|
+
mediaType: {
|
|
509
|
+
$ref: string;
|
|
510
|
+
};
|
|
511
|
+
method: {
|
|
512
|
+
$ref: string;
|
|
513
|
+
};
|
|
514
|
+
encType: {
|
|
515
|
+
$ref: string;
|
|
516
|
+
};
|
|
517
|
+
schema: SchemaOrReferenceVisitor_2;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
} | undefined;
|
|
524
|
+
}) => T;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* @public
|
|
528
|
+
*/
|
|
529
|
+
export declare const refractorPluginReplaceEmptyElement: () => () => {
|
|
530
|
+
visitor: {
|
|
531
|
+
StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
export { SchemaOrReferenceVisitor }
|
|
536
|
+
|
|
537
|
+
export { SchemaOrReferenceVisitorOptions }
|
|
538
|
+
|
|
539
|
+
export declare const specificationObj: typeof specificationObj_2;
|
|
540
|
+
|
|
541
|
+
export { SpecificationVisitor }
|
|
542
|
+
|
|
543
|
+
export { SpecificationVisitorOptions }
|
|
544
|
+
|
|
545
|
+
export { SpecPath }
|
|
546
|
+
|
|
547
|
+
export { Visitor }
|
|
548
|
+
|
|
549
|
+
export { VisitorOptions }
|
|
550
|
+
|
|
551
|
+
export { }
|