@swagger-api/apidom-ns-openapi-3-1 1.0.0-beta.8 → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +191 -0
  2. package/README.md +371 -1
  3. package/dist/apidom-ns-openapi-3-1.browser.js +29414 -24750
  4. package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
  5. package/package.json +10 -9
  6. package/src/elements/Schema.cjs +2 -427
  7. package/src/elements/Schema.mjs +2 -427
  8. package/src/index.cjs +3 -1
  9. package/src/index.mjs +1 -0
  10. package/src/refractor/plugins/normalize-discriminator-mapping.cjs +173 -0
  11. package/src/refractor/plugins/normalize-discriminator-mapping.mjs +167 -0
  12. package/src/refractor/plugins/replace-empty-element.cjs +2 -1
  13. package/src/refractor/plugins/replace-empty-element.mjs +3 -2
  14. package/src/refractor/specification.cjs +55 -157
  15. package/src/refractor/specification.mjs +13 -115
  16. package/src/refractor/toolbox.cjs +2 -2
  17. package/src/refractor/toolbox.mjs +1 -1
  18. package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.cjs +13 -0
  19. package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.mjs +13 -2
  20. package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.cjs +2 -10
  21. package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.mjs +4 -9
  22. package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.cjs +2 -25
  23. package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.mjs +2 -23
  24. package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.cjs +2 -25
  25. package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.mjs +2 -23
  26. package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.cjs +2 -14
  27. package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.mjs +2 -12
  28. package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.cjs +2 -25
  29. package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.mjs +2 -23
  30. package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.cjs +2 -14
  31. package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.mjs +2 -12
  32. package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.cjs +2 -25
  33. package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.mjs +2 -23
  34. package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.cjs +2 -14
  35. package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.mjs +2 -12
  36. package/src/refractor/visitors/open-api-3-1/schema/index.cjs +10 -31
  37. package/src/refractor/visitors/open-api-3-1/schema/index.mjs +12 -33
  38. package/types/apidom-ns-openapi-3-1.d.ts +183 -408
  39. package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.cjs +0 -16
  40. package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.mjs +0 -12
  41. package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.cjs +0 -16
  42. package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.mjs +0 -12
  43. package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.cjs +0 -16
  44. package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.mjs +0 -12
  45. package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.cjs +0 -16
  46. package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.mjs +0 -12
  47. package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.cjs +0 -16
  48. package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.mjs +0 -12
  49. package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.cjs +0 -17
  50. package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.mjs +0 -13
  51. package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.cjs +0 -16
  52. package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.mjs +0 -12
  53. package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.cjs +0 -21
  54. 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
 
@@ -982,7 +1000,6 @@ export declare const keyMap: {
982
1000
  Annotation: never[];
983
1001
  Comment: never[];
984
1002
  ParseResultElement: string[];
985
- SourceMap: string[];
986
1003
  CallbackElement: string[];
987
1004
  ComponentsElement: string[];
988
1005
  ContactElement: string[];
@@ -1146,8 +1163,6 @@ export declare class OAuthFlowVisitor extends BaseOAuthFlowVisitor {
1146
1163
 
1147
1164
  export { OAuthFlowVisitorOptions }
1148
1165
 
1149
- declare const OneOfVisitor_base: Class<any[], SpecificationVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
1150
-
1151
1166
  /**
1152
1167
  * @public
1153
1168
  */
@@ -1347,17 +1362,7 @@ export declare class ParameterVisitor extends BaseParameterVisitor {
1347
1362
 
1348
1363
  export { ParameterVisitorOptions }
1349
1364
 
1350
- declare class ParentSchemaAwareVisitor {
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
- }
1365
+ export { ParentSchemaAwareVisitorOptions }
1361
1366
 
1362
1367
  export { PathItem$RefVisitor }
1363
1368
 
@@ -1429,12 +1434,6 @@ export { PatternedFieldsVisitor }
1429
1434
 
1430
1435
  export { PatternedFieldsVisitorOptions }
1431
1436
 
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
1437
  export { Reference$RefVisitor }
1439
1438
 
1440
1439
  export { Reference$RefVisitorOptions }
@@ -1455,6 +1454,42 @@ export declare class ReferenceVisitor extends BaseReferenceVisitor {
1455
1454
 
1456
1455
  export { ReferenceVisitorOptions }
1457
1456
 
1457
+ /**
1458
+ * @public
1459
+ */
1460
+ export declare const refractorPluginNormalizeDiscriminatorMapping: ({ storageField, baseURI }?: RefractorPluginNormalizeDiscriminatorMappingOptions) => (toolbox: Toolbox) => {
1461
+ visitor: {
1462
+ OpenApi3_1Element: {
1463
+ enter(element: OpenApi3_1Element): void;
1464
+ leave(): void;
1465
+ };
1466
+ SchemaElement: {
1467
+ leave(schemaElement: SchemaElement, key: string | number, parent: Element_2 | undefined, path: (string | number)[], ancestors: [Element_2 | Element_2[]]): void;
1468
+ };
1469
+ };
1470
+ };
1471
+
1472
+ /**
1473
+ * Normalization of Discriminator.mapping field.
1474
+ *
1475
+ * Discriminator.mapping fields are normalized by adding missing mappings from oneOf/anyOf items
1476
+ * of the parent Schema Object and transforming existing mappings to Schema Objects.
1477
+ *
1478
+ * In case of allOf discriminator, the plugin will add missing mappings based on
1479
+ * allOf items of other Schema Objects.
1480
+ *
1481
+ * The normalized mapping is stored in the Schema.discriminator field as `x-normalized-mapping`.
1482
+ *
1483
+ * This plugin is designed to be used on dereferenced OpenAPI 3.1 documents.
1484
+ *
1485
+ * NOTE: this plugin is idempotent
1486
+ * @public
1487
+ */
1488
+ export declare interface RefractorPluginNormalizeDiscriminatorMappingOptions {
1489
+ storageField?: string;
1490
+ baseURI?: string;
1491
+ }
1492
+
1458
1493
  /**
1459
1494
  * @public
1460
1495
  */
@@ -1672,7 +1707,15 @@ export declare const refractorPluginReplaceEmptyElement: () => ({ predicates }:
1672
1707
  predicates: ToolboxPredicates;
1673
1708
  }) => {
1674
1709
  visitor: {
1675
- StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
1710
+ StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): {
1711
+ [key: string]: any;
1712
+ startPositionRow?: number;
1713
+ startPositionColumn?: number;
1714
+ startIndex?: number;
1715
+ endPositionRow?: number;
1716
+ endPositionColumn?: number;
1717
+ endIndex?: number;
1718
+ } | undefined;
1676
1719
  };
1677
1720
  };
1678
1721
 
@@ -1755,266 +1798,56 @@ export { ResponseVisitorOptions }
1755
1798
  /**
1756
1799
  * @public
1757
1800
  */
1758
- export declare class Schema$defsVisitor extends $defsVisitor_base {
1759
- readonly element: ObjectElement;
1760
- protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
1801
+ export declare class Schema$defsVisitor extends $defsVisitor {
1761
1802
  constructor(options: Schema$defsVisitorOptions);
1762
1803
  }
1763
1804
 
1764
- /**
1765
- * @public
1766
- */
1767
- export declare interface Schema$defsVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
1768
- }
1805
+ export { Schema$defsVisitorOptions }
1769
1806
 
1770
- /**
1771
- * @public
1772
- */
1773
- export declare class Schema$refVisitor extends FallbackVisitor {
1774
- readonly element: StringElement;
1775
- StringElement(stringElement: StringElement): {};
1776
- }
1807
+ export { Schema$refVisitor }
1777
1808
 
1778
- /**
1779
- * @public
1780
- */
1781
- export declare class Schema$vocabularyVisitor extends FallbackVisitor {
1782
- readonly element: ObjectElement;
1783
- ObjectElement(objectElement: ObjectElement): {};
1784
- }
1809
+ export { Schema$refVisitorOptions }
1810
+
1811
+ export { Schema$vocabularyVisitor }
1812
+
1813
+ export { Schema$vocabularyVisitorOptions }
1785
1814
 
1786
1815
  /**
1787
1816
  * @public
1788
1817
  */
1789
- export declare class SchemaAllOfVisitor extends AllOfVisitor_base {
1790
- readonly element: ArrayElement;
1818
+ export declare class SchemaAllOfVisitor extends AllOfVisitor {
1791
1819
  constructor(options: SchemaAllOfVisitorOptions);
1792
- ArrayElement(arrayElement: ArrayElement): {};
1793
1820
  }
1794
1821
 
1795
- /**
1796
- * @public
1797
- */
1798
- export declare interface SchemaAllOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
1799
- }
1822
+ export { SchemaAllOfVisitorOptions }
1800
1823
 
1801
1824
  /**
1802
1825
  * @public
1803
1826
  */
1804
- export declare class SchemaAnyOfVisitor extends AnyOfVisitor_base {
1805
- readonly element: ArrayElement;
1827
+ export declare class SchemaAnyOfVisitor extends AnyOfVisitor {
1806
1828
  constructor(options: SchemaAnyOfVisitorOptions);
1807
- ArrayElement(arrayElement: ArrayElement): {};
1808
1829
  }
1809
1830
 
1810
- /**
1811
- * @public
1812
- */
1813
- export declare interface SchemaAnyOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
1814
- }
1831
+ export { SchemaAnyOfVisitorOptions }
1815
1832
 
1816
- /**
1817
- * @public
1818
- */
1819
- export declare class SchemaDependentRequiredVisitor extends FallbackVisitor {
1820
- readonly element: ObjectElement;
1821
- ObjectElement(objectElement: ObjectElement): {};
1822
- }
1833
+ export { SchemaDependentRequiredVisitor }
1834
+
1835
+ export { SchemaDependentRequiredVisitorOptions }
1823
1836
 
1824
1837
  /**
1825
1838
  * @public
1826
1839
  */
1827
- export declare class SchemaDependentSchemasVisitor extends DependentSchemasVisitor_base {
1828
- readonly element: ObjectElement;
1829
- protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
1840
+ export declare class SchemaDependentSchemasVisitor extends DependentSchemasVisitor {
1830
1841
  constructor(options: SchemaDependentSchemasVisitorOptions);
1831
1842
  }
1832
1843
 
1833
- /**
1834
- * @public
1835
- */
1836
- export declare interface SchemaDependentSchemasVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
1837
- }
1844
+ export { SchemaDependentSchemasVisitorOptions }
1838
1845
 
1839
1846
  /**
1840
1847
  * @public
1841
1848
  */
1842
- export declare class SchemaElement extends ObjectElement {
1849
+ export declare class SchemaElement extends JSONSchemaElement {
1843
1850
  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
1851
  /**
2019
1852
  * OAS base vocabulary
2020
1853
  *
@@ -2036,98 +1869,41 @@ export declare class SchemaElement extends ObjectElement {
2036
1869
  /**
2037
1870
  * @public
2038
1871
  */
2039
- export declare class SchemaEnumVisitor extends FallbackVisitor {
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;
1872
+ export declare class SchemaOneOfVisitor extends OneOfVisitor {
2057
1873
  constructor(options: SchemaOneOfVisitorOptions);
2058
- ArrayElement(arrayElement: ArrayElement): {};
2059
1874
  }
2060
1875
 
2061
- /**
2062
- * @public
2063
- */
2064
- export declare interface SchemaOneOfVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
2065
- }
1876
+ export { SchemaOneOfVisitorOptions }
2066
1877
 
2067
1878
  /**
2068
1879
  * @public
2069
1880
  */
2070
- export declare class SchemaPatternPropertiesVisitor extends PatternPropertiesVisitor_base {
2071
- readonly element: ObjectElement;
2072
- protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
1881
+ export declare class SchemaPatternPropertiesVisitor extends PatternPropertiesVisitor {
2073
1882
  constructor(options: SchemaPatternPropertiesVisitorOptions);
2074
1883
  }
2075
1884
 
2076
- /**
2077
- * @public
2078
- */
2079
- export declare interface SchemaPatternPropertiesVisitorOptions extends MapVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
2080
- }
1885
+ export { SchemaPatternPropertiesVisitorOptions }
2081
1886
 
2082
1887
  /**
2083
1888
  * @public
2084
1889
  */
2085
- export declare class SchemaPrefixItemsVisitor extends PrefixItemsVisitor_base {
2086
- readonly element: ArrayElement;
1890
+ export declare class SchemaPrefixItemsVisitor extends PrefixItemsVisitor {
2087
1891
  constructor(options: SchemaPrefixItemsVisitorOptions);
2088
- ArrayElement(arrayElement: ArrayElement): {};
2089
1892
  }
2090
1893
 
2091
- /**
2092
- * @public
2093
- */
2094
- export declare interface SchemaPrefixItemsVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
2095
- }
1894
+ export { SchemaPrefixItemsVisitorOptions }
2096
1895
 
2097
1896
  /**
2098
1897
  * @public
2099
1898
  */
2100
- export declare class SchemaPropertiesVisitor extends PropertiesVisitor_base {
2101
- readonly element: ObjectElement;
2102
- protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
1899
+ export declare class SchemaPropertiesVisitor extends PropertiesVisitor {
2103
1900
  constructor(options: SchemaPropertiesVisitorOptions);
2104
1901
  }
2105
1902
 
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
- }
1903
+ export { SchemaPropertiesVisitorOptions }
2119
1904
 
2120
1905
  declare const SchemasVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
2121
1906
 
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
1907
  /**
2132
1908
  * @public
2133
1909
  */
@@ -2142,9 +1918,9 @@ export declare class SchemaVisitor extends SchemaVisitor_base {
2142
1918
  * works even when no context is provided like when directly refracting generic Object Element
2143
1919
  * into Schema Element: `SchemaElement.refract(new ObjectElement({ type: 'object' });`
2144
1920
  */
2145
- getJsonSchemaDialect(): JsonSchemaDialectElement;
2146
- handle$schema(objectElement: ObjectElement): void;
2147
- handle$id(objectElement: ObjectElement): void;
1921
+ get defaultDialectIdentifier(): JsonSchemaDialectElement;
1922
+ handleDialectIdentifier(objectElement: ObjectElement): void;
1923
+ handleSchemaIdentifier(objectElement: ObjectElement): void;
2148
1924
  }
2149
1925
 
2150
1926
  declare const SchemaVisitor_base: Class<any[], FixedFieldsVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
@@ -2649,30 +2425,38 @@ export declare const specificationObj: {
2649
2425
  };
2650
2426
  };
2651
2427
  };
2652
- readonly Schema: {
2653
- readonly $visitor: typeof SchemaVisitor;
2428
+ readonly JSONSchema: {
2429
+ readonly $ref: "#/visitors/document/objects/Schema";
2430
+ };
2431
+ readonly LinkDescription: {
2432
+ readonly $visitor: LinkDescriptionVisitor;
2654
2433
  readonly fixedFields: {
2655
- readonly $schema: {
2656
- readonly $ref: "#/visitors/value";
2434
+ href: {
2435
+ $ref: string;
2657
2436
  };
2658
- readonly $vocabulary: typeof Schema$vocabularyVisitor;
2659
- readonly $id: {
2660
- readonly $ref: "#/visitors/value";
2437
+ rel: {
2438
+ $ref: string;
2661
2439
  };
2662
- readonly $anchor: {
2663
- readonly $ref: "#/visitors/value";
2440
+ title: {
2441
+ $ref: string;
2664
2442
  };
2665
- readonly $dynamicAnchor: {
2666
- readonly $ref: "#/visitors/value";
2443
+ targetSchema: SchemaOrReferenceVisitor;
2444
+ mediaType: {
2445
+ $ref: string;
2667
2446
  };
2668
- readonly $dynamicRef: {
2669
- readonly $ref: "#/visitors/value";
2447
+ method: {
2448
+ $ref: string;
2670
2449
  };
2671
- readonly $ref: typeof Schema$refVisitor;
2672
- readonly $defs: typeof Schema$defsVisitor;
2673
- readonly $comment: {
2674
- readonly $ref: "#/visitors/value";
2450
+ encType: {
2451
+ $ref: string;
2675
2452
  };
2453
+ schema: SchemaOrReferenceVisitor;
2454
+ };
2455
+ };
2456
+ readonly Schema: {
2457
+ readonly $visitor: typeof SchemaVisitor;
2458
+ readonly fixedFields: {
2459
+ readonly $defs: typeof Schema$defsVisitor;
2676
2460
  readonly allOf: typeof SchemaAllOfVisitor;
2677
2461
  readonly anyOf: typeof SchemaAnyOfVisitor;
2678
2462
  readonly oneOf: typeof SchemaOneOfVisitor;
@@ -2710,102 +2494,93 @@ export declare const specificationObj: {
2710
2494
  readonly unevaluatedProperties: {
2711
2495
  readonly $ref: "#/visitors/document/objects/Schema";
2712
2496
  };
2713
- readonly type: typeof SchemaTypeVisitor;
2714
- readonly enum: typeof SchemaEnumVisitor;
2715
- readonly const: {
2497
+ readonly contentSchema: {
2498
+ readonly $ref: "#/visitors/document/objects/Schema";
2499
+ };
2500
+ readonly discriminator: {
2501
+ readonly $ref: "#/visitors/document/objects/Discriminator";
2502
+ };
2503
+ readonly xml: {
2504
+ readonly $ref: "#/visitors/document/objects/XML";
2505
+ };
2506
+ readonly externalDocs: {
2507
+ readonly $ref: "#/visitors/document/objects/ExternalDocumentation";
2508
+ };
2509
+ readonly example: {
2716
2510
  readonly $ref: "#/visitors/value";
2717
2511
  };
2512
+ readonly id: {
2513
+ $ref: string;
2514
+ };
2515
+ readonly $schema: {
2516
+ $ref: string;
2517
+ };
2718
2518
  readonly multipleOf: {
2719
- readonly $ref: "#/visitors/value";
2519
+ $ref: string;
2720
2520
  };
2721
2521
  readonly maximum: {
2722
- readonly $ref: "#/visitors/value";
2522
+ $ref: string;
2723
2523
  };
2724
2524
  readonly exclusiveMaximum: {
2725
- readonly $ref: "#/visitors/value";
2525
+ $ref: string;
2726
2526
  };
2727
2527
  readonly minimum: {
2728
- readonly $ref: "#/visitors/value";
2528
+ $ref: string;
2729
2529
  };
2730
2530
  readonly exclusiveMinimum: {
2731
- readonly $ref: "#/visitors/value";
2531
+ $ref: string;
2732
2532
  };
2733
2533
  readonly maxLength: {
2734
- readonly $ref: "#/visitors/value";
2534
+ $ref: string;
2735
2535
  };
2736
2536
  readonly minLength: {
2737
- readonly $ref: "#/visitors/value";
2537
+ $ref: string;
2738
2538
  };
2739
2539
  readonly pattern: {
2740
- readonly $ref: "#/visitors/value";
2540
+ $ref: string;
2741
2541
  };
2542
+ readonly additionalItems: SchemaOrReferenceVisitor;
2742
2543
  readonly maxItems: {
2743
- readonly $ref: "#/visitors/value";
2544
+ $ref: string;
2744
2545
  };
2745
2546
  readonly minItems: {
2746
- readonly $ref: "#/visitors/value";
2547
+ $ref: string;
2747
2548
  };
2748
2549
  readonly uniqueItems: {
2749
- readonly $ref: "#/visitors/value";
2750
- };
2751
- readonly maxContains: {
2752
- readonly $ref: "#/visitors/value";
2753
- };
2754
- readonly minContains: {
2755
- readonly $ref: "#/visitors/value";
2550
+ $ref: string;
2756
2551
  };
2757
2552
  readonly maxProperties: {
2758
- readonly $ref: "#/visitors/value";
2553
+ $ref: string;
2759
2554
  };
2760
2555
  readonly minProperties: {
2761
- readonly $ref: "#/visitors/value";
2762
- };
2763
- readonly required: {
2764
- readonly $ref: "#/visitors/value";
2556
+ $ref: string;
2765
2557
  };
2766
- readonly dependentRequired: typeof SchemaDependentRequiredVisitor;
2558
+ readonly required: RequiredVisitor;
2559
+ readonly dependencies: DependenciesVisitor;
2560
+ readonly enum: EnumVisitor;
2561
+ readonly type: TypeVisitor;
2562
+ readonly definitions: DefinitionsVisitor;
2767
2563
  readonly title: {
2768
- readonly $ref: "#/visitors/value";
2564
+ $ref: string;
2769
2565
  };
2770
2566
  readonly description: {
2771
- readonly $ref: "#/visitors/value";
2567
+ $ref: string;
2772
2568
  };
2773
2569
  readonly default: {
2774
- readonly $ref: "#/visitors/value";
2775
- };
2776
- readonly deprecated: {
2777
- readonly $ref: "#/visitors/value";
2570
+ $ref: string;
2778
2571
  };
2779
- readonly readOnly: {
2780
- readonly $ref: "#/visitors/value";
2781
- };
2782
- readonly writeOnly: {
2783
- readonly $ref: "#/visitors/value";
2784
- };
2785
- readonly examples: typeof SchemaExamplesVisitor;
2786
2572
  readonly format: {
2787
- readonly $ref: "#/visitors/value";
2573
+ $ref: string;
2788
2574
  };
2789
- readonly contentEncoding: {
2790
- readonly $ref: "#/visitors/value";
2575
+ readonly base: {
2576
+ $ref: string;
2791
2577
  };
2792
- readonly contentMediaType: {
2793
- readonly $ref: "#/visitors/value";
2578
+ readonly links: LinksVisitor;
2579
+ readonly media: {
2580
+ $ref: string;
2794
2581
  };
2795
- readonly contentSchema: {
2796
- readonly $ref: "#/visitors/document/objects/Schema";
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";
2582
+ readonly readOnly: {
2583
+ $ref: string;
2809
2584
  };
2810
2585
  };
2811
2586
  };