@swagger-api/apidom-ns-openapi-3-1 1.0.0-beta.5 → 1.0.0-beta.50
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 +193 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/NOTICE +26 -0
- package/dist/apidom-ns-openapi-3-1.browser.js +28664 -23904
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +10 -9
- package/src/elements/Schema.cjs +2 -427
- package/src/elements/Schema.mjs +2 -427
- package/src/index.cjs +3 -1
- package/src/index.mjs +1 -0
- package/src/refractor/plugins/normalize-discriminator-mapping.cjs +173 -0
- package/src/refractor/plugins/normalize-discriminator-mapping.mjs +167 -0
- package/src/refractor/plugins/normalize-servers.cjs +2 -2
- package/src/refractor/plugins/normalize-servers.mjs +2 -2
- package/src/refractor/specification.cjs +55 -157
- package/src/refractor/specification.mjs +13 -115
- package/src/refractor/toolbox.cjs +2 -2
- package/src/refractor/toolbox.mjs +1 -1
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.cjs +13 -0
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.mjs +13 -2
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.cjs +2 -10
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.mjs +4 -9
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.cjs +2 -14
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.mjs +2 -12
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.cjs +2 -14
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.mjs +2 -12
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.cjs +2 -25
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.mjs +2 -23
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.cjs +2 -14
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.mjs +2 -12
- package/src/refractor/visitors/open-api-3-1/schema/index.cjs +10 -31
- package/src/refractor/visitors/open-api-3-1/schema/index.mjs +12 -33
- package/types/apidom-ns-openapi-3-1.d.ts +176 -408
- package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.mjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.mjs +0 -17
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { $defsVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
import { AllOfVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
1
3
|
import { AlternatingVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
2
4
|
import { AlternatingVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
5
|
+
import { AnyOfVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
3
6
|
import { ArrayElement } from '@swagger-api/apidom-core';
|
|
4
7
|
import { Attributes } from '@swagger-api/apidom-core';
|
|
5
8
|
import { BooleanElement } from '@swagger-api/apidom-core';
|
|
@@ -40,6 +43,9 @@ import { ContactVisitor as ContactVisitor_2 } from '@swagger-api/apidom-ns-opena
|
|
|
40
43
|
import { ContactVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
41
44
|
import { ContentVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
42
45
|
import { ContentVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
46
|
+
import { DefinitionsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
47
|
+
import { DependenciesVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
48
|
+
import { DependentSchemasVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
43
49
|
import { DiscriminatorElement as DiscriminatorElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
44
50
|
import { DiscriminatorMappingElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
45
51
|
import { DiscriminatorMappingVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -54,6 +60,7 @@ import { EncodingHeadersVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
|
54
60
|
import { EncodingHeadersVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
55
61
|
import { EncodingVisitor as EncodingVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
56
62
|
import { EncodingVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
63
|
+
import { EnumVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
57
64
|
import { ExampleElement as ExampleElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
58
65
|
import { ExampleExternalValueVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
59
66
|
import { ExampleExternalValueVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -100,9 +107,11 @@ import { isReferenceLikeElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
|
100
107
|
import { isServerLikeElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
101
108
|
import { isServersElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
102
109
|
import { isStringElement } from '@swagger-api/apidom-core';
|
|
110
|
+
import { JSONSchemaElement } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
103
111
|
import { LicenseElement as LicenseElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
104
112
|
import { LicenseVisitor as LicenseVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
105
113
|
import { LicenseVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
114
|
+
import { LinkDescriptionVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
106
115
|
import { LinkElement as LinkElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
107
116
|
import { LinkOperationIdVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
108
117
|
import { LinkOperationIdVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -111,6 +120,7 @@ import { LinkOperationRefVisitorOptions } from '@swagger-api/apidom-ns-openapi-3
|
|
|
111
120
|
import { LinkParametersElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
112
121
|
import { LinkParametersVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
113
122
|
import { LinkParametersVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
123
|
+
import { LinksVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
114
124
|
import { LinkVisitor as LinkVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
115
125
|
import { LinkVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
116
126
|
import { MapVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -133,7 +143,6 @@ import { MixedFieldsVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
|
133
143
|
import { Namespace } from 'minim';
|
|
134
144
|
import { Namespace as Namespace_2 } from '@swagger-api/apidom-core';
|
|
135
145
|
import { NamespacePluginOptions } from '@swagger-api/apidom-core';
|
|
136
|
-
import { NumberElement } from '@swagger-api/apidom-core';
|
|
137
146
|
import { OAuthFlowElement as OAuthFlowElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
138
147
|
import { OAuthFlowScopesElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
139
148
|
import { OAuthFlowScopesVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -144,6 +153,7 @@ import { OAuthFlowsVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
|
144
153
|
import { OAuthFlowVisitor as OAuthFlowVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
145
154
|
import { OAuthFlowVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
146
155
|
import { ObjectElement } from '@swagger-api/apidom-core';
|
|
156
|
+
import { OneOfVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
147
157
|
import { OpenapiElement as OpenapiElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
148
158
|
import { OpenapiVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
149
159
|
import { OpenapiVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -180,6 +190,8 @@ import { ParametersVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
|
180
190
|
import { ParametersVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
181
191
|
import { ParameterVisitor as ParameterVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
182
192
|
import { ParameterVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
193
|
+
import { ParentSchemaAwareVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
194
|
+
import { ParentSchemaAwareVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
183
195
|
import { PathItem$RefVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
184
196
|
import { PathItem$RefVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
185
197
|
import { PathItemElement as PathItemElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -196,6 +208,9 @@ import { PathsVisitor as PathsVisitor_2 } from '@swagger-api/apidom-ns-openapi-3
|
|
|
196
208
|
import { PathsVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
197
209
|
import { PatternedFieldsVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
198
210
|
import { PatternedFieldsVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
211
|
+
import { PatternPropertiesVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
212
|
+
import { PrefixItemsVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
213
|
+
import { PropertiesVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
199
214
|
import { Reference$RefVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
200
215
|
import { Reference$RefVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
201
216
|
import { ReferenceElement as ReferenceElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -207,6 +222,7 @@ import { RequestBodyContentVisitorOptions } from '@swagger-api/apidom-ns-openapi
|
|
|
207
222
|
import { RequestBodyElement as RequestBodyElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
208
223
|
import { RequestBodyVisitor as RequestBodyVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
209
224
|
import { RequestBodyVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
225
|
+
import { RequiredVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
210
226
|
import { ResponseContentElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
211
227
|
import { ResponseContentVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
212
228
|
import { ResponseContentVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -224,6 +240,21 @@ import { ResponsesVisitor as ResponsesVisitor_2 } from '@swagger-api/apidom-ns-o
|
|
|
224
240
|
import { ResponsesVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
225
241
|
import { ResponseVisitor as ResponseVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
226
242
|
import { ResponseVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
243
|
+
import { $defsVisitorOptions as Schema$defsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
244
|
+
import { $refVisitor as Schema$refVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
245
|
+
import { $refVisitorOptions as Schema$refVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
246
|
+
import { $vocabularyVisitor as Schema$vocabularyVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
247
|
+
import { $vocabularyVisitorOptions as Schema$vocabularyVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
248
|
+
import { AllOfVisitorOptions as SchemaAllOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
249
|
+
import { AnyOfVisitorOptions as SchemaAnyOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
250
|
+
import { DependentRequiredVisitor as SchemaDependentRequiredVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
251
|
+
import { DependentRequiredVisitorOptions as SchemaDependentRequiredVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
252
|
+
import { DependentSchemasVisitorOptions as SchemaDependentSchemasVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
253
|
+
import { OneOfVisitorOptions as SchemaOneOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
254
|
+
import { SchemaOrReferenceVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
255
|
+
import { PatternPropertiesVisitorOptions as SchemaPatternPropertiesVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
256
|
+
import { PrefixItemsVisitorOptions as SchemaPrefixItemsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
257
|
+
import { PropertiesVisitorOptions as SchemaPropertiesVisitorOptions } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
227
258
|
import { SecurityElement } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
228
259
|
import { SecurityRequirementElement as SecurityRequirementElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
229
260
|
import { SecurityRequirementVisitor as SecurityRequirementVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
@@ -259,16 +290,13 @@ import { TagsVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
|
259
290
|
import { TagsVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
260
291
|
import { TagVisitor as TagVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
261
292
|
import { TagVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
293
|
+
import { TypeVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
262
294
|
import { Visitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
263
295
|
import { VisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
264
296
|
import { XmlElement as XmlElement_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
265
297
|
import { XmlVisitor as XmlVisitor_2 } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
266
298
|
import { XmlVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
267
299
|
|
|
268
|
-
declare const $defsVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
269
|
-
|
|
270
|
-
declare const AllOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
271
|
-
|
|
272
300
|
export { AlternatingVisitor }
|
|
273
301
|
|
|
274
302
|
export { AlternatingVisitorOptions }
|
|
@@ -284,8 +312,6 @@ export { AlternatingVisitorOptions }
|
|
|
284
312
|
*/
|
|
285
313
|
export declare const ancestorLineageToJSONPointer: <T extends (Element_2 | Element_2[])[]>(elementPath: T) => string;
|
|
286
314
|
|
|
287
|
-
declare const AnyOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
288
|
-
|
|
289
315
|
/**
|
|
290
316
|
* @public
|
|
291
317
|
*/
|
|
@@ -535,6 +561,7 @@ export declare class ComponentsSchemasVisitor extends SchemasVisitor_base {
|
|
|
535
561
|
readonly element: ComponentsSchemasElement;
|
|
536
562
|
protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
|
|
537
563
|
constructor(options: ComponentsSchemasVisitorOptions);
|
|
564
|
+
ObjectElement(objectElement: ObjectElement): {};
|
|
538
565
|
}
|
|
539
566
|
|
|
540
567
|
/**
|
|
@@ -584,8 +611,6 @@ export { ContentVisitorOptions }
|
|
|
584
611
|
*/
|
|
585
612
|
export declare const createToolbox: () => Toolbox;
|
|
586
613
|
|
|
587
|
-
declare const DependentSchemasVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
588
|
-
|
|
589
614
|
/**
|
|
590
615
|
* @public
|
|
591
616
|
*/
|
|
@@ -674,13 +699,6 @@ export { ExternalDocumentationVisitorOptions }
|
|
|
674
699
|
export { FallbackVisitor }
|
|
675
700
|
|
|
676
701
|
export { FallbackVisitorOptions }
|
|
677
|
-
export { FallbackVisitorOptions as Schema$refVisitorOptions }
|
|
678
|
-
export { FallbackVisitorOptions as Schema$vocabularyVisitorOptions }
|
|
679
|
-
export { FallbackVisitorOptions as SchemaDependentRequiredVisitorOptions }
|
|
680
|
-
export { FallbackVisitorOptions as SchemaEnumVisitorOptions }
|
|
681
|
-
export { FallbackVisitorOptions as SchemaExamplesVisitorOptions }
|
|
682
|
-
export { FallbackVisitorOptions as SchemaRequiredVisitorOptions }
|
|
683
|
-
export { FallbackVisitorOptions as SchemaTypeVisitorOptions }
|
|
684
702
|
|
|
685
703
|
export { FixedFieldsVisitor }
|
|
686
704
|
|
|
@@ -1146,8 +1164,6 @@ export declare class OAuthFlowVisitor extends BaseOAuthFlowVisitor {
|
|
|
1146
1164
|
|
|
1147
1165
|
export { OAuthFlowVisitorOptions }
|
|
1148
1166
|
|
|
1149
|
-
declare const OneOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
1150
|
-
|
|
1151
1167
|
/**
|
|
1152
1168
|
* @public
|
|
1153
1169
|
*/
|
|
@@ -1347,17 +1363,7 @@ export declare class ParameterVisitor extends BaseParameterVisitor {
|
|
|
1347
1363
|
|
|
1348
1364
|
export { ParameterVisitorOptions }
|
|
1349
1365
|
|
|
1350
|
-
|
|
1351
|
-
parent: Element_2;
|
|
1352
|
-
constructor({ parent }: ParentSchemaAwareVisitorOptions);
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
/**
|
|
1356
|
-
* @public
|
|
1357
|
-
*/
|
|
1358
|
-
export declare interface ParentSchemaAwareVisitorOptions {
|
|
1359
|
-
readonly parent: Element_2;
|
|
1360
|
-
}
|
|
1366
|
+
export { ParentSchemaAwareVisitorOptions }
|
|
1361
1367
|
|
|
1362
1368
|
export { PathItem$RefVisitor }
|
|
1363
1369
|
|
|
@@ -1429,12 +1435,6 @@ export { PatternedFieldsVisitor }
|
|
|
1429
1435
|
|
|
1430
1436
|
export { PatternedFieldsVisitorOptions }
|
|
1431
1437
|
|
|
1432
|
-
declare const PatternPropertiesVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
1433
|
-
|
|
1434
|
-
declare const PrefixItemsVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
1435
|
-
|
|
1436
|
-
declare const PropertiesVisitor_base: Class<any[], MapVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof MapVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
1437
|
-
|
|
1438
1438
|
export { Reference$RefVisitor }
|
|
1439
1439
|
|
|
1440
1440
|
export { Reference$RefVisitorOptions }
|
|
@@ -1455,6 +1455,42 @@ export declare class ReferenceVisitor extends BaseReferenceVisitor {
|
|
|
1455
1455
|
|
|
1456
1456
|
export { ReferenceVisitorOptions }
|
|
1457
1457
|
|
|
1458
|
+
/**
|
|
1459
|
+
* @public
|
|
1460
|
+
*/
|
|
1461
|
+
export declare const refractorPluginNormalizeDiscriminatorMapping: ({ storageField, baseURI }?: RefractorPluginNormalizeDiscriminatorMappingOptions) => (toolbox: Toolbox) => {
|
|
1462
|
+
visitor: {
|
|
1463
|
+
OpenApi3_1Element: {
|
|
1464
|
+
enter(element: OpenApi3_1Element): void;
|
|
1465
|
+
leave(): void;
|
|
1466
|
+
};
|
|
1467
|
+
SchemaElement: {
|
|
1468
|
+
leave(schemaElement: SchemaElement, key: string | number, parent: Element_2 | undefined, path: (string | number)[], ancestors: [Element_2 | Element_2[]]): void;
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Normalization of Discriminator.mapping field.
|
|
1475
|
+
*
|
|
1476
|
+
* Discriminator.mapping fields are normalized by adding missing mappings from oneOf/anyOf items
|
|
1477
|
+
* of the parent Schema Object and transforming existing mappings to Schema Objects.
|
|
1478
|
+
*
|
|
1479
|
+
* In case of allOf discriminator, the plugin will add missing mappings based on
|
|
1480
|
+
* allOf items of other Schema Objects.
|
|
1481
|
+
*
|
|
1482
|
+
* The normalized mapping is stored in the Schema.discriminator field as `x-normalized-mapping`.
|
|
1483
|
+
*
|
|
1484
|
+
* This plugin is designed to be used on dereferenced OpenAPI 3.1 documents.
|
|
1485
|
+
*
|
|
1486
|
+
* NOTE: this plugin is idempotent
|
|
1487
|
+
* @public
|
|
1488
|
+
*/
|
|
1489
|
+
export declare interface RefractorPluginNormalizeDiscriminatorMappingOptions {
|
|
1490
|
+
storageField?: string;
|
|
1491
|
+
baseURI?: string;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1458
1494
|
/**
|
|
1459
1495
|
* @public
|
|
1460
1496
|
*/
|
|
@@ -1657,8 +1693,8 @@ export declare const refractorPluginNormalizeServers: ({ storageField }?: Refrac
|
|
|
1657
1693
|
* - PathItem.servers
|
|
1658
1694
|
* - Operation.servers
|
|
1659
1695
|
*
|
|
1660
|
-
* If
|
|
1661
|
-
* If
|
|
1696
|
+
* If a servers array is specified at the OpenAPI Object level, it will be overridden by `PathItem`.servers.
|
|
1697
|
+
* If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by Operation.servers.
|
|
1662
1698
|
* @public
|
|
1663
1699
|
*/
|
|
1664
1700
|
export declare interface RefractorPluginNormalizeServersOptions {
|
|
@@ -1755,266 +1791,56 @@ export { ResponseVisitorOptions }
|
|
|
1755
1791
|
/**
|
|
1756
1792
|
* @public
|
|
1757
1793
|
*/
|
|
1758
|
-
export declare class Schema$defsVisitor extends $
|
|
1759
|
-
readonly element: ObjectElement;
|
|
1760
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
|
|
1794
|
+
export declare class Schema$defsVisitor extends $defsVisitor {
|
|
1761
1795
|
constructor(options: Schema$defsVisitorOptions);
|
|
1762
1796
|
}
|
|
1763
1797
|
|
|
1764
|
-
|
|
1765
|
-
* @public
|
|
1766
|
-
*/
|
|
1767
|
-
export declare interface Schema$defsVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
1768
|
-
}
|
|
1798
|
+
export { Schema$defsVisitorOptions }
|
|
1769
1799
|
|
|
1770
|
-
|
|
1771
|
-
* @public
|
|
1772
|
-
*/
|
|
1773
|
-
export declare class Schema$refVisitor extends FallbackVisitor {
|
|
1774
|
-
readonly element: StringElement;
|
|
1775
|
-
StringElement(stringElement: StringElement): {};
|
|
1776
|
-
}
|
|
1800
|
+
export { Schema$refVisitor }
|
|
1777
1801
|
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
ObjectElement(objectElement: ObjectElement): {};
|
|
1784
|
-
}
|
|
1802
|
+
export { Schema$refVisitorOptions }
|
|
1803
|
+
|
|
1804
|
+
export { Schema$vocabularyVisitor }
|
|
1805
|
+
|
|
1806
|
+
export { Schema$vocabularyVisitorOptions }
|
|
1785
1807
|
|
|
1786
1808
|
/**
|
|
1787
1809
|
* @public
|
|
1788
1810
|
*/
|
|
1789
|
-
export declare class SchemaAllOfVisitor extends
|
|
1790
|
-
readonly element: ArrayElement;
|
|
1811
|
+
export declare class SchemaAllOfVisitor extends AllOfVisitor {
|
|
1791
1812
|
constructor(options: SchemaAllOfVisitorOptions);
|
|
1792
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
1793
1813
|
}
|
|
1794
1814
|
|
|
1795
|
-
|
|
1796
|
-
* @public
|
|
1797
|
-
*/
|
|
1798
|
-
export declare interface SchemaAllOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
1799
|
-
}
|
|
1815
|
+
export { SchemaAllOfVisitorOptions }
|
|
1800
1816
|
|
|
1801
1817
|
/**
|
|
1802
1818
|
* @public
|
|
1803
1819
|
*/
|
|
1804
|
-
export declare class SchemaAnyOfVisitor extends
|
|
1805
|
-
readonly element: ArrayElement;
|
|
1820
|
+
export declare class SchemaAnyOfVisitor extends AnyOfVisitor {
|
|
1806
1821
|
constructor(options: SchemaAnyOfVisitorOptions);
|
|
1807
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
1808
1822
|
}
|
|
1809
1823
|
|
|
1810
|
-
|
|
1811
|
-
* @public
|
|
1812
|
-
*/
|
|
1813
|
-
export declare interface SchemaAnyOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
1814
|
-
}
|
|
1824
|
+
export { SchemaAnyOfVisitorOptions }
|
|
1815
1825
|
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
export declare class SchemaDependentRequiredVisitor extends FallbackVisitor {
|
|
1820
|
-
readonly element: ObjectElement;
|
|
1821
|
-
ObjectElement(objectElement: ObjectElement): {};
|
|
1822
|
-
}
|
|
1826
|
+
export { SchemaDependentRequiredVisitor }
|
|
1827
|
+
|
|
1828
|
+
export { SchemaDependentRequiredVisitorOptions }
|
|
1823
1829
|
|
|
1824
1830
|
/**
|
|
1825
1831
|
* @public
|
|
1826
1832
|
*/
|
|
1827
|
-
export declare class SchemaDependentSchemasVisitor extends
|
|
1828
|
-
readonly element: ObjectElement;
|
|
1829
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
|
|
1833
|
+
export declare class SchemaDependentSchemasVisitor extends DependentSchemasVisitor {
|
|
1830
1834
|
constructor(options: SchemaDependentSchemasVisitorOptions);
|
|
1831
1835
|
}
|
|
1832
1836
|
|
|
1833
|
-
|
|
1834
|
-
* @public
|
|
1835
|
-
*/
|
|
1836
|
-
export declare interface SchemaDependentSchemasVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
1837
|
-
}
|
|
1837
|
+
export { SchemaDependentSchemasVisitorOptions }
|
|
1838
1838
|
|
|
1839
1839
|
/**
|
|
1840
1840
|
* @public
|
|
1841
1841
|
*/
|
|
1842
|
-
export declare class SchemaElement extends
|
|
1842
|
+
export declare class SchemaElement extends JSONSchemaElement {
|
|
1843
1843
|
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
|
|
1844
|
-
/**
|
|
1845
|
-
* Core vocabulary
|
|
1846
|
-
*
|
|
1847
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/core
|
|
1848
|
-
*/
|
|
1849
|
-
get $schema(): StringElement | undefined;
|
|
1850
|
-
set $schema($schema: StringElement | undefined);
|
|
1851
|
-
get $vocabulary(): ObjectElement | undefined;
|
|
1852
|
-
set $vocabulary($vocabulary: ObjectElement | undefined);
|
|
1853
|
-
get $id(): StringElement | undefined;
|
|
1854
|
-
set $id($id: StringElement | undefined);
|
|
1855
|
-
get $anchor(): StringElement | undefined;
|
|
1856
|
-
set $anchor($anchor: StringElement | undefined);
|
|
1857
|
-
get $dynamicAnchor(): StringElement | undefined;
|
|
1858
|
-
set $dynamicAnchor($dynamicAnchor: StringElement | undefined);
|
|
1859
|
-
get $dynamicRef(): StringElement | undefined;
|
|
1860
|
-
set $dynamicRef($dynamicRef: StringElement | undefined);
|
|
1861
|
-
get $ref(): StringElement | undefined;
|
|
1862
|
-
set $ref($ref: StringElement | undefined);
|
|
1863
|
-
get $defs(): ObjectElement | undefined;
|
|
1864
|
-
set $defs($defs: ObjectElement | undefined);
|
|
1865
|
-
get $comment(): StringElement | undefined;
|
|
1866
|
-
set $comment($comment: StringElement | undefined);
|
|
1867
|
-
/**
|
|
1868
|
-
* Applicator vocabulary
|
|
1869
|
-
*
|
|
1870
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/applicator
|
|
1871
|
-
*/
|
|
1872
|
-
get allOf(): ArrayElement | undefined;
|
|
1873
|
-
set allOf(allOf: ArrayElement | undefined);
|
|
1874
|
-
get anyOf(): ArrayElement | undefined;
|
|
1875
|
-
set anyOf(anyOf: ArrayElement | undefined);
|
|
1876
|
-
get oneOf(): ArrayElement | undefined;
|
|
1877
|
-
set oneOf(oneOf: ArrayElement | undefined);
|
|
1878
|
-
get not(): SchemaElement | undefined;
|
|
1879
|
-
set not(not: SchemaElement | undefined);
|
|
1880
|
-
get if(): SchemaElement | undefined;
|
|
1881
|
-
set if(ifSchema: SchemaElement | undefined);
|
|
1882
|
-
get then(): SchemaElement | undefined;
|
|
1883
|
-
set then(thenSchema: SchemaElement | undefined);
|
|
1884
|
-
get else(): SchemaElement | undefined;
|
|
1885
|
-
set else(elseSchema: SchemaElement | undefined);
|
|
1886
|
-
get dependentSchemas(): ObjectElement | undefined;
|
|
1887
|
-
set dependentSchemas(dependentSchemas: ObjectElement | undefined);
|
|
1888
|
-
get prefixItems(): ArrayElement | undefined;
|
|
1889
|
-
set prefixItems(prefixItems: ArrayElement | undefined);
|
|
1890
|
-
get items(): SchemaElement | undefined;
|
|
1891
|
-
set items(items: SchemaElement | undefined);
|
|
1892
|
-
get containsProp(): SchemaElement | undefined;
|
|
1893
|
-
set containsProp(containsProp: SchemaElement | undefined);
|
|
1894
|
-
get properties(): ObjectElement | undefined;
|
|
1895
|
-
set properties(properties: ObjectElement | undefined);
|
|
1896
|
-
get patternProperties(): ObjectElement | undefined;
|
|
1897
|
-
set patternProperties(patternProperties: ObjectElement | undefined);
|
|
1898
|
-
get additionalProperties(): SchemaElement | undefined;
|
|
1899
|
-
set additionalProperties(additionalProperties: SchemaElement | undefined);
|
|
1900
|
-
get propertyNames(): SchemaElement | undefined;
|
|
1901
|
-
set propertyNames(propertyNames: SchemaElement | undefined);
|
|
1902
|
-
/**
|
|
1903
|
-
* Unevaluated Locations vocabulary
|
|
1904
|
-
*
|
|
1905
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/unevaluated
|
|
1906
|
-
*/
|
|
1907
|
-
get unevaluatedItems(): SchemaElement | undefined;
|
|
1908
|
-
set unevaluatedItems(unevaluatedItems: SchemaElement | undefined);
|
|
1909
|
-
get unevaluatedProperties(): SchemaElement | undefined;
|
|
1910
|
-
set unevaluatedProperties(unevaluatedProperties: SchemaElement | undefined);
|
|
1911
|
-
/**
|
|
1912
|
-
* Validation vocabulary
|
|
1913
|
-
*
|
|
1914
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/validation
|
|
1915
|
-
*/
|
|
1916
|
-
/**
|
|
1917
|
-
* Validation Keywords for Any Instance Type
|
|
1918
|
-
*
|
|
1919
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.1
|
|
1920
|
-
*/
|
|
1921
|
-
get type(): ArrayElement | StringElement | undefined;
|
|
1922
|
-
set type(type: ArrayElement | StringElement | undefined);
|
|
1923
|
-
get enum(): ArrayElement | undefined;
|
|
1924
|
-
set enum(enumVal: ArrayElement | undefined);
|
|
1925
|
-
get const(): Element_2 | undefined;
|
|
1926
|
-
set const(constVal: Element_2 | undefined);
|
|
1927
|
-
/**
|
|
1928
|
-
* Validation Keywords for Numeric Instances (number and integer)
|
|
1929
|
-
*
|
|
1930
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#numeric
|
|
1931
|
-
*/
|
|
1932
|
-
get multipleOf(): NumberElement | undefined;
|
|
1933
|
-
set multipleOf(multipleOf: NumberElement | undefined);
|
|
1934
|
-
get maximum(): NumberElement | undefined;
|
|
1935
|
-
set maximum(maximum: NumberElement | undefined);
|
|
1936
|
-
get exclusiveMaximum(): NumberElement | undefined;
|
|
1937
|
-
set exclusiveMaximum(exclusiveMaximum: NumberElement | undefined);
|
|
1938
|
-
get minimum(): NumberElement | undefined;
|
|
1939
|
-
set minimum(minimum: NumberElement | undefined);
|
|
1940
|
-
get exclusiveMinimum(): NumberElement | undefined;
|
|
1941
|
-
set exclusiveMinimum(exclusiveMinimum: NumberElement | undefined);
|
|
1942
|
-
/**
|
|
1943
|
-
* Validation Keywords for Strings
|
|
1944
|
-
*
|
|
1945
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#string
|
|
1946
|
-
*/
|
|
1947
|
-
get maxLength(): NumberElement | undefined;
|
|
1948
|
-
set maxLength(maxLength: NumberElement | undefined);
|
|
1949
|
-
get minLength(): NumberElement | undefined;
|
|
1950
|
-
set minLength(minLength: NumberElement | undefined);
|
|
1951
|
-
get pattern(): StringElement | undefined;
|
|
1952
|
-
set pattern(pattern: StringElement | undefined);
|
|
1953
|
-
/**
|
|
1954
|
-
* Validation Keywords for Arrays
|
|
1955
|
-
*
|
|
1956
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.4
|
|
1957
|
-
*/
|
|
1958
|
-
get maxItems(): NumberElement | undefined;
|
|
1959
|
-
set maxItems(maxItems: NumberElement | undefined);
|
|
1960
|
-
get minItems(): NumberElement | undefined;
|
|
1961
|
-
set minItems(minItems: NumberElement | undefined);
|
|
1962
|
-
get uniqueItems(): BooleanElement | undefined;
|
|
1963
|
-
set uniqueItems(uniqueItems: BooleanElement | undefined);
|
|
1964
|
-
get maxContains(): NumberElement | undefined;
|
|
1965
|
-
set maxContains(maxContains: NumberElement | undefined);
|
|
1966
|
-
get minContains(): NumberElement | undefined;
|
|
1967
|
-
set minContains(minContains: NumberElement | undefined);
|
|
1968
|
-
/**
|
|
1969
|
-
* Validation Keywords for Objects
|
|
1970
|
-
*
|
|
1971
|
-
* URI: https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.section.6.5
|
|
1972
|
-
*/
|
|
1973
|
-
get maxProperties(): NumberElement | undefined;
|
|
1974
|
-
set maxProperties(maxProperties: NumberElement | undefined);
|
|
1975
|
-
get minProperties(): NumberElement | undefined;
|
|
1976
|
-
set minProperties(minProperties: NumberElement | undefined);
|
|
1977
|
-
get required(): ArrayElement | undefined;
|
|
1978
|
-
set required(required: ArrayElement | undefined);
|
|
1979
|
-
get dependentRequired(): ObjectElement | undefined;
|
|
1980
|
-
set dependentRequired(dependentRequired: ObjectElement | undefined);
|
|
1981
|
-
/**
|
|
1982
|
-
* Vocabulary for Basic Meta-Data Annotations
|
|
1983
|
-
*
|
|
1984
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/meta-data
|
|
1985
|
-
*/
|
|
1986
|
-
get title(): StringElement | undefined;
|
|
1987
|
-
set title(title: StringElement | undefined);
|
|
1988
|
-
get description(): StringElement | undefined;
|
|
1989
|
-
set description(description: StringElement | undefined);
|
|
1990
|
-
get default(): Element_2 | undefined;
|
|
1991
|
-
set default(defaultVal: Element_2 | undefined);
|
|
1992
|
-
get deprecated(): BooleanElement | undefined;
|
|
1993
|
-
set deprecated(deprecated: BooleanElement | undefined);
|
|
1994
|
-
get readOnly(): BooleanElement | undefined;
|
|
1995
|
-
set readOnly(readOnly: BooleanElement | undefined);
|
|
1996
|
-
get writeOnly(): BooleanElement | undefined;
|
|
1997
|
-
set writeOnly(writeOnly: BooleanElement | undefined);
|
|
1998
|
-
get examples(): ArrayElement | undefined;
|
|
1999
|
-
set examples(examples: ArrayElement | undefined);
|
|
2000
|
-
/**
|
|
2001
|
-
* Vocabularies for Semantic Content With "format"
|
|
2002
|
-
*
|
|
2003
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/format-annotation
|
|
2004
|
-
*/
|
|
2005
|
-
get format(): StringElement | undefined;
|
|
2006
|
-
set format(format: StringElement | undefined);
|
|
2007
|
-
/**
|
|
2008
|
-
* Vocabulary for the Contents of String-Encoded Data
|
|
2009
|
-
*
|
|
2010
|
-
* URI: https://json-schema.org/draft/2020-12/vocab/content
|
|
2011
|
-
*/
|
|
2012
|
-
get contentEncoding(): StringElement | undefined;
|
|
2013
|
-
set contentEncoding(contentEncoding: StringElement | undefined);
|
|
2014
|
-
get contentMediaType(): StringElement | undefined;
|
|
2015
|
-
set contentMediaType(contentMediaType: StringElement | undefined);
|
|
2016
|
-
get contentSchema(): SchemaElement | undefined;
|
|
2017
|
-
set contentSchema(contentSchema: SchemaElement | undefined);
|
|
2018
1844
|
/**
|
|
2019
1845
|
* OAS base vocabulary
|
|
2020
1846
|
*
|
|
@@ -2036,98 +1862,41 @@ export declare class SchemaElement extends ObjectElement {
|
|
|
2036
1862
|
/**
|
|
2037
1863
|
* @public
|
|
2038
1864
|
*/
|
|
2039
|
-
export declare class
|
|
2040
|
-
readonly element: ArrayElement;
|
|
2041
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* @public
|
|
2046
|
-
*/
|
|
2047
|
-
export declare class SchemaExamplesVisitor extends FallbackVisitor {
|
|
2048
|
-
readonly element: ArrayElement;
|
|
2049
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
/**
|
|
2053
|
-
* @public
|
|
2054
|
-
*/
|
|
2055
|
-
export declare class SchemaOneOfVisitor extends OneOfVisitor_base {
|
|
2056
|
-
readonly element: ArrayElement;
|
|
1865
|
+
export declare class SchemaOneOfVisitor extends OneOfVisitor {
|
|
2057
1866
|
constructor(options: SchemaOneOfVisitorOptions);
|
|
2058
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
2059
1867
|
}
|
|
2060
1868
|
|
|
2061
|
-
|
|
2062
|
-
* @public
|
|
2063
|
-
*/
|
|
2064
|
-
export declare interface SchemaOneOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
2065
|
-
}
|
|
1869
|
+
export { SchemaOneOfVisitorOptions }
|
|
2066
1870
|
|
|
2067
1871
|
/**
|
|
2068
1872
|
* @public
|
|
2069
1873
|
*/
|
|
2070
|
-
export declare class SchemaPatternPropertiesVisitor extends
|
|
2071
|
-
readonly element: ObjectElement;
|
|
2072
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
|
|
1874
|
+
export declare class SchemaPatternPropertiesVisitor extends PatternPropertiesVisitor {
|
|
2073
1875
|
constructor(options: SchemaPatternPropertiesVisitorOptions);
|
|
2074
1876
|
}
|
|
2075
1877
|
|
|
2076
|
-
|
|
2077
|
-
* @public
|
|
2078
|
-
*/
|
|
2079
|
-
export declare interface SchemaPatternPropertiesVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
2080
|
-
}
|
|
1878
|
+
export { SchemaPatternPropertiesVisitorOptions }
|
|
2081
1879
|
|
|
2082
1880
|
/**
|
|
2083
1881
|
* @public
|
|
2084
1882
|
*/
|
|
2085
|
-
export declare class SchemaPrefixItemsVisitor extends
|
|
2086
|
-
readonly element: ArrayElement;
|
|
1883
|
+
export declare class SchemaPrefixItemsVisitor extends PrefixItemsVisitor {
|
|
2087
1884
|
constructor(options: SchemaPrefixItemsVisitorOptions);
|
|
2088
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
2089
1885
|
}
|
|
2090
1886
|
|
|
2091
|
-
|
|
2092
|
-
* @public
|
|
2093
|
-
*/
|
|
2094
|
-
export declare interface SchemaPrefixItemsVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
2095
|
-
}
|
|
1887
|
+
export { SchemaPrefixItemsVisitorOptions }
|
|
2096
1888
|
|
|
2097
1889
|
/**
|
|
2098
1890
|
* @public
|
|
2099
1891
|
*/
|
|
2100
|
-
export declare class SchemaPropertiesVisitor extends
|
|
2101
|
-
readonly element: ObjectElement;
|
|
2102
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
|
|
1892
|
+
export declare class SchemaPropertiesVisitor extends PropertiesVisitor {
|
|
2103
1893
|
constructor(options: SchemaPropertiesVisitorOptions);
|
|
2104
1894
|
}
|
|
2105
1895
|
|
|
2106
|
-
|
|
2107
|
-
* @public
|
|
2108
|
-
*/
|
|
2109
|
-
export declare interface SchemaPropertiesVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
/**
|
|
2113
|
-
* @public
|
|
2114
|
-
*/
|
|
2115
|
-
export declare class SchemaRequiredVisitor extends FallbackVisitor {
|
|
2116
|
-
readonly element: ArrayElement;
|
|
2117
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
2118
|
-
}
|
|
1896
|
+
export { SchemaPropertiesVisitorOptions }
|
|
2119
1897
|
|
|
2120
1898
|
declare const SchemasVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
|
|
2121
1899
|
|
|
2122
|
-
/**
|
|
2123
|
-
* @public
|
|
2124
|
-
*/
|
|
2125
|
-
export declare class SchemaTypeVisitor extends FallbackVisitor {
|
|
2126
|
-
readonly element: StringElement | ArrayElement;
|
|
2127
|
-
StringElement(stringElement: StringElement): {};
|
|
2128
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
1900
|
/**
|
|
2132
1901
|
* @public
|
|
2133
1902
|
*/
|
|
@@ -2142,9 +1911,9 @@ export declare class SchemaVisitor extends SchemaVisitor_base {
|
|
|
2142
1911
|
* works even when no context is provided like when directly refracting generic Object Element
|
|
2143
1912
|
* into Schema Element: `SchemaElement.refract(new ObjectElement({ type: 'object' });`
|
|
2144
1913
|
*/
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
1914
|
+
get defaultDialectIdentifier(): JsonSchemaDialectElement;
|
|
1915
|
+
handleDialectIdentifier(objectElement: ObjectElement): void;
|
|
1916
|
+
handleSchemaIdentifier(objectElement: ObjectElement): void;
|
|
2148
1917
|
}
|
|
2149
1918
|
|
|
2150
1919
|
declare const SchemaVisitor_base: Class<any[], FixedFieldsVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
@@ -2649,30 +2418,38 @@ export declare const specificationObj: {
|
|
|
2649
2418
|
};
|
|
2650
2419
|
};
|
|
2651
2420
|
};
|
|
2652
|
-
readonly
|
|
2653
|
-
readonly $
|
|
2421
|
+
readonly JSONSchema: {
|
|
2422
|
+
readonly $ref: "#/visitors/document/objects/Schema";
|
|
2423
|
+
};
|
|
2424
|
+
readonly LinkDescription: {
|
|
2425
|
+
readonly $visitor: LinkDescriptionVisitor;
|
|
2654
2426
|
readonly fixedFields: {
|
|
2655
|
-
|
|
2656
|
-
|
|
2427
|
+
href: {
|
|
2428
|
+
$ref: string;
|
|
2657
2429
|
};
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
readonly $ref: "#/visitors/value";
|
|
2430
|
+
rel: {
|
|
2431
|
+
$ref: string;
|
|
2661
2432
|
};
|
|
2662
|
-
|
|
2663
|
-
|
|
2433
|
+
title: {
|
|
2434
|
+
$ref: string;
|
|
2664
2435
|
};
|
|
2665
|
-
|
|
2666
|
-
|
|
2436
|
+
targetSchema: SchemaOrReferenceVisitor;
|
|
2437
|
+
mediaType: {
|
|
2438
|
+
$ref: string;
|
|
2667
2439
|
};
|
|
2668
|
-
|
|
2669
|
-
|
|
2440
|
+
method: {
|
|
2441
|
+
$ref: string;
|
|
2670
2442
|
};
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
readonly $comment: {
|
|
2674
|
-
readonly $ref: "#/visitors/value";
|
|
2443
|
+
encType: {
|
|
2444
|
+
$ref: string;
|
|
2675
2445
|
};
|
|
2446
|
+
schema: SchemaOrReferenceVisitor;
|
|
2447
|
+
};
|
|
2448
|
+
};
|
|
2449
|
+
readonly Schema: {
|
|
2450
|
+
readonly $visitor: typeof SchemaVisitor;
|
|
2451
|
+
readonly fixedFields: {
|
|
2452
|
+
readonly $defs: typeof Schema$defsVisitor;
|
|
2676
2453
|
readonly allOf: typeof SchemaAllOfVisitor;
|
|
2677
2454
|
readonly anyOf: typeof SchemaAnyOfVisitor;
|
|
2678
2455
|
readonly oneOf: typeof SchemaOneOfVisitor;
|
|
@@ -2710,102 +2487,93 @@ export declare const specificationObj: {
|
|
|
2710
2487
|
readonly unevaluatedProperties: {
|
|
2711
2488
|
readonly $ref: "#/visitors/document/objects/Schema";
|
|
2712
2489
|
};
|
|
2713
|
-
readonly
|
|
2714
|
-
|
|
2715
|
-
|
|
2490
|
+
readonly contentSchema: {
|
|
2491
|
+
readonly $ref: "#/visitors/document/objects/Schema";
|
|
2492
|
+
};
|
|
2493
|
+
readonly discriminator: {
|
|
2494
|
+
readonly $ref: "#/visitors/document/objects/Discriminator";
|
|
2495
|
+
};
|
|
2496
|
+
readonly xml: {
|
|
2497
|
+
readonly $ref: "#/visitors/document/objects/XML";
|
|
2498
|
+
};
|
|
2499
|
+
readonly externalDocs: {
|
|
2500
|
+
readonly $ref: "#/visitors/document/objects/ExternalDocumentation";
|
|
2501
|
+
};
|
|
2502
|
+
readonly example: {
|
|
2716
2503
|
readonly $ref: "#/visitors/value";
|
|
2717
2504
|
};
|
|
2505
|
+
readonly id: {
|
|
2506
|
+
$ref: string;
|
|
2507
|
+
};
|
|
2508
|
+
readonly $schema: {
|
|
2509
|
+
$ref: string;
|
|
2510
|
+
};
|
|
2718
2511
|
readonly multipleOf: {
|
|
2719
|
-
|
|
2512
|
+
$ref: string;
|
|
2720
2513
|
};
|
|
2721
2514
|
readonly maximum: {
|
|
2722
|
-
|
|
2515
|
+
$ref: string;
|
|
2723
2516
|
};
|
|
2724
2517
|
readonly exclusiveMaximum: {
|
|
2725
|
-
|
|
2518
|
+
$ref: string;
|
|
2726
2519
|
};
|
|
2727
2520
|
readonly minimum: {
|
|
2728
|
-
|
|
2521
|
+
$ref: string;
|
|
2729
2522
|
};
|
|
2730
2523
|
readonly exclusiveMinimum: {
|
|
2731
|
-
|
|
2524
|
+
$ref: string;
|
|
2732
2525
|
};
|
|
2733
2526
|
readonly maxLength: {
|
|
2734
|
-
|
|
2527
|
+
$ref: string;
|
|
2735
2528
|
};
|
|
2736
2529
|
readonly minLength: {
|
|
2737
|
-
|
|
2530
|
+
$ref: string;
|
|
2738
2531
|
};
|
|
2739
2532
|
readonly pattern: {
|
|
2740
|
-
|
|
2533
|
+
$ref: string;
|
|
2741
2534
|
};
|
|
2535
|
+
readonly additionalItems: SchemaOrReferenceVisitor;
|
|
2742
2536
|
readonly maxItems: {
|
|
2743
|
-
|
|
2537
|
+
$ref: string;
|
|
2744
2538
|
};
|
|
2745
2539
|
readonly minItems: {
|
|
2746
|
-
|
|
2540
|
+
$ref: string;
|
|
2747
2541
|
};
|
|
2748
2542
|
readonly uniqueItems: {
|
|
2749
|
-
|
|
2750
|
-
};
|
|
2751
|
-
readonly maxContains: {
|
|
2752
|
-
readonly $ref: "#/visitors/value";
|
|
2753
|
-
};
|
|
2754
|
-
readonly minContains: {
|
|
2755
|
-
readonly $ref: "#/visitors/value";
|
|
2543
|
+
$ref: string;
|
|
2756
2544
|
};
|
|
2757
2545
|
readonly maxProperties: {
|
|
2758
|
-
|
|
2546
|
+
$ref: string;
|
|
2759
2547
|
};
|
|
2760
2548
|
readonly minProperties: {
|
|
2761
|
-
|
|
2762
|
-
};
|
|
2763
|
-
readonly required: {
|
|
2764
|
-
readonly $ref: "#/visitors/value";
|
|
2549
|
+
$ref: string;
|
|
2765
2550
|
};
|
|
2766
|
-
readonly
|
|
2551
|
+
readonly required: RequiredVisitor;
|
|
2552
|
+
readonly dependencies: DependenciesVisitor;
|
|
2553
|
+
readonly enum: EnumVisitor;
|
|
2554
|
+
readonly type: TypeVisitor;
|
|
2555
|
+
readonly definitions: DefinitionsVisitor;
|
|
2767
2556
|
readonly title: {
|
|
2768
|
-
|
|
2557
|
+
$ref: string;
|
|
2769
2558
|
};
|
|
2770
2559
|
readonly description: {
|
|
2771
|
-
|
|
2560
|
+
$ref: string;
|
|
2772
2561
|
};
|
|
2773
2562
|
readonly default: {
|
|
2774
|
-
|
|
2775
|
-
};
|
|
2776
|
-
readonly deprecated: {
|
|
2777
|
-
readonly $ref: "#/visitors/value";
|
|
2563
|
+
$ref: string;
|
|
2778
2564
|
};
|
|
2779
|
-
readonly readOnly: {
|
|
2780
|
-
readonly $ref: "#/visitors/value";
|
|
2781
|
-
};
|
|
2782
|
-
readonly writeOnly: {
|
|
2783
|
-
readonly $ref: "#/visitors/value";
|
|
2784
|
-
};
|
|
2785
|
-
readonly examples: typeof SchemaExamplesVisitor;
|
|
2786
2565
|
readonly format: {
|
|
2787
|
-
|
|
2566
|
+
$ref: string;
|
|
2788
2567
|
};
|
|
2789
|
-
readonly
|
|
2790
|
-
|
|
2568
|
+
readonly base: {
|
|
2569
|
+
$ref: string;
|
|
2791
2570
|
};
|
|
2792
|
-
readonly
|
|
2793
|
-
|
|
2571
|
+
readonly links: LinksVisitor;
|
|
2572
|
+
readonly media: {
|
|
2573
|
+
$ref: string;
|
|
2794
2574
|
};
|
|
2795
|
-
readonly
|
|
2796
|
-
|
|
2797
|
-
};
|
|
2798
|
-
readonly discriminator: {
|
|
2799
|
-
readonly $ref: "#/visitors/document/objects/Discriminator";
|
|
2800
|
-
};
|
|
2801
|
-
readonly xml: {
|
|
2802
|
-
readonly $ref: "#/visitors/document/objects/XML";
|
|
2803
|
-
};
|
|
2804
|
-
readonly externalDocs: {
|
|
2805
|
-
readonly $ref: "#/visitors/document/objects/ExternalDocumentation";
|
|
2806
|
-
};
|
|
2807
|
-
readonly example: {
|
|
2808
|
-
readonly $ref: "#/visitors/value";
|
|
2575
|
+
readonly readOnly: {
|
|
2576
|
+
$ref: string;
|
|
2809
2577
|
};
|
|
2810
2578
|
};
|
|
2811
2579
|
};
|