@speclynx/apidom-ns-openapi-2 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/LICENSE +202 -0
  3. package/LICENSES/AFL-3.0.txt +182 -0
  4. package/LICENSES/Apache-2.0.txt +202 -0
  5. package/LICENSES/BSD-3-Clause.txt +26 -0
  6. package/LICENSES/MIT.txt +9 -0
  7. package/NOTICE +65 -0
  8. package/README.md +215 -0
  9. package/dist/apidom-ns-openapi-2.browser.js +23072 -0
  10. package/dist/apidom-ns-openapi-2.browser.min.js +1 -0
  11. package/package.json +65 -0
  12. package/src/elements/Contact.cjs +33 -0
  13. package/src/elements/Contact.mjs +30 -0
  14. package/src/elements/Definitions.cjs +15 -0
  15. package/src/elements/Definitions.mjs +12 -0
  16. package/src/elements/Example.cjs +15 -0
  17. package/src/elements/Example.mjs +12 -0
  18. package/src/elements/ExternalDocumentation.cjs +27 -0
  19. package/src/elements/ExternalDocumentation.mjs +24 -0
  20. package/src/elements/Header.cjs +185 -0
  21. package/src/elements/Header.mjs +182 -0
  22. package/src/elements/Headers.cjs +15 -0
  23. package/src/elements/Headers.mjs +12 -0
  24. package/src/elements/Info.cjs +52 -0
  25. package/src/elements/Info.mjs +48 -0
  26. package/src/elements/Items.cjs +190 -0
  27. package/src/elements/Items.mjs +187 -0
  28. package/src/elements/License.cjs +27 -0
  29. package/src/elements/License.mjs +24 -0
  30. package/src/elements/Operation.cjs +78 -0
  31. package/src/elements/Operation.mjs +74 -0
  32. package/src/elements/Parameter.cjs +230 -0
  33. package/src/elements/Parameter.mjs +226 -0
  34. package/src/elements/ParametersDefinitions.cjs +15 -0
  35. package/src/elements/ParametersDefinitions.mjs +12 -0
  36. package/src/elements/PathItem.cjs +69 -0
  37. package/src/elements/PathItem.mjs +65 -0
  38. package/src/elements/Paths.cjs +15 -0
  39. package/src/elements/Paths.mjs +12 -0
  40. package/src/elements/Reference.cjs +22 -0
  41. package/src/elements/Reference.mjs +19 -0
  42. package/src/elements/Response.cjs +39 -0
  43. package/src/elements/Response.mjs +35 -0
  44. package/src/elements/Responses.cjs +21 -0
  45. package/src/elements/Responses.mjs +17 -0
  46. package/src/elements/ResponsesDefinitions.cjs +15 -0
  47. package/src/elements/ResponsesDefinitions.mjs +12 -0
  48. package/src/elements/Schema.cjs +116 -0
  49. package/src/elements/Schema.mjs +113 -0
  50. package/src/elements/Scopes.cjs +15 -0
  51. package/src/elements/Scopes.mjs +12 -0
  52. package/src/elements/SecurityDefinitions.cjs +15 -0
  53. package/src/elements/SecurityDefinitions.mjs +12 -0
  54. package/src/elements/SecurityRequirement.cjs +15 -0
  55. package/src/elements/SecurityRequirement.mjs +12 -0
  56. package/src/elements/SecurityScheme.cjs +63 -0
  57. package/src/elements/SecurityScheme.mjs +60 -0
  58. package/src/elements/Swagger.cjs +106 -0
  59. package/src/elements/Swagger.mjs +102 -0
  60. package/src/elements/SwaggerVersion.cjs +17 -0
  61. package/src/elements/SwaggerVersion.mjs +14 -0
  62. package/src/elements/Tag.cjs +33 -0
  63. package/src/elements/Tag.mjs +29 -0
  64. package/src/elements/Xml.cjs +45 -0
  65. package/src/elements/Xml.mjs +42 -0
  66. package/src/elements/nces/OperationConsumes.cjs +16 -0
  67. package/src/elements/nces/OperationConsumes.mjs +13 -0
  68. package/src/elements/nces/OperationParameters.cjs +17 -0
  69. package/src/elements/nces/OperationParameters.mjs +14 -0
  70. package/src/elements/nces/OperationProduces.cjs +16 -0
  71. package/src/elements/nces/OperationProduces.mjs +13 -0
  72. package/src/elements/nces/OperationSchemes.cjs +16 -0
  73. package/src/elements/nces/OperationSchemes.mjs +13 -0
  74. package/src/elements/nces/OperationSecurity.cjs +17 -0
  75. package/src/elements/nces/OperationSecurity.mjs +14 -0
  76. package/src/elements/nces/OperationTags.cjs +17 -0
  77. package/src/elements/nces/OperationTags.mjs +14 -0
  78. package/src/elements/nces/PathItemParameters.cjs +17 -0
  79. package/src/elements/nces/PathItemParameters.mjs +14 -0
  80. package/src/elements/nces/SwaggerConsumes.cjs +16 -0
  81. package/src/elements/nces/SwaggerConsumes.mjs +13 -0
  82. package/src/elements/nces/SwaggerProduces.cjs +16 -0
  83. package/src/elements/nces/SwaggerProduces.mjs +13 -0
  84. package/src/elements/nces/SwaggerSchemes.cjs +16 -0
  85. package/src/elements/nces/SwaggerSchemes.mjs +13 -0
  86. package/src/elements/nces/SwaggerSecurity.cjs +17 -0
  87. package/src/elements/nces/SwaggerSecurity.mjs +14 -0
  88. package/src/elements/nces/SwaggerTags.cjs +16 -0
  89. package/src/elements/nces/SwaggerTags.mjs +13 -0
  90. package/src/index.cjs +135 -0
  91. package/src/index.mjs +31 -0
  92. package/src/media-types.cjs +34 -0
  93. package/src/media-types.mjs +30 -0
  94. package/src/namespace.cjs +71 -0
  95. package/src/namespace.mjs +66 -0
  96. package/src/predicates.cjs +329 -0
  97. package/src/predicates.mjs +324 -0
  98. package/src/refractor/index.cjs +52 -0
  99. package/src/refractor/index.mjs +46 -0
  100. package/src/refractor/plugins/replace-empty-element.cjs +358 -0
  101. package/src/refractor/plugins/replace-empty-element.mjs +350 -0
  102. package/src/refractor/predicates.cjs +25 -0
  103. package/src/refractor/predicates.mjs +20 -0
  104. package/src/refractor/registration.cjs +87 -0
  105. package/src/refractor/registration.mjs +56 -0
  106. package/src/refractor/specification.cjs +490 -0
  107. package/src/refractor/specification.mjs +484 -0
  108. package/src/refractor/toolbox.cjs +23 -0
  109. package/src/refractor/toolbox.mjs +17 -0
  110. package/src/refractor/visitors/FallbackVisitor.cjs +24 -0
  111. package/src/refractor/visitors/FallbackVisitor.mjs +18 -0
  112. package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +18 -0
  113. package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +13 -0
  114. package/src/refractor/visitors/SpecificationVisitor.cjs +74 -0
  115. package/src/refractor/visitors/SpecificationVisitor.mjs +68 -0
  116. package/src/refractor/visitors/Visitor.cjs +31 -0
  117. package/src/refractor/visitors/Visitor.mjs +28 -0
  118. package/src/refractor/visitors/generics/AlternatingVisitor.cjs +42 -0
  119. package/src/refractor/visitors/generics/AlternatingVisitor.mjs +35 -0
  120. package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +67 -0
  121. package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +60 -0
  122. package/src/refractor/visitors/generics/MapVisitor.cjs +21 -0
  123. package/src/refractor/visitors/generics/MapVisitor.mjs +15 -0
  124. package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +60 -0
  125. package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +54 -0
  126. package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +67 -0
  127. package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +61 -0
  128. package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +17 -0
  129. package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +12 -0
  130. package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +22 -0
  131. package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +17 -0
  132. package/src/refractor/visitors/open-api-2/HostVisitor.cjs +17 -0
  133. package/src/refractor/visitors/open-api-2/HostVisitor.mjs +12 -0
  134. package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +22 -0
  135. package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +17 -0
  136. package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +22 -0
  137. package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +17 -0
  138. package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +33 -0
  139. package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +27 -0
  140. package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +26 -0
  141. package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +20 -0
  142. package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +33 -0
  143. package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +27 -0
  144. package/src/refractor/visitors/open-api-2/contact/index.cjs +26 -0
  145. package/src/refractor/visitors/open-api-2/contact/index.mjs +20 -0
  146. package/src/refractor/visitors/open-api-2/definitions/index.cjs +38 -0
  147. package/src/refractor/visitors/open-api-2/definitions/index.mjs +32 -0
  148. package/src/refractor/visitors/open-api-2/example/index.cjs +26 -0
  149. package/src/refractor/visitors/open-api-2/example/index.mjs +20 -0
  150. package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +26 -0
  151. package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +20 -0
  152. package/src/refractor/visitors/open-api-2/header/index.cjs +26 -0
  153. package/src/refractor/visitors/open-api-2/header/index.mjs +20 -0
  154. package/src/refractor/visitors/open-api-2/headers/index.cjs +26 -0
  155. package/src/refractor/visitors/open-api-2/headers/index.mjs +20 -0
  156. package/src/refractor/visitors/open-api-2/index.cjs +26 -0
  157. package/src/refractor/visitors/open-api-2/index.mjs +20 -0
  158. package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +18 -0
  159. package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +13 -0
  160. package/src/refractor/visitors/open-api-2/info/index.cjs +26 -0
  161. package/src/refractor/visitors/open-api-2/info/index.mjs +20 -0
  162. package/src/refractor/visitors/open-api-2/items/index.cjs +28 -0
  163. package/src/refractor/visitors/open-api-2/items/index.mjs +22 -0
  164. package/src/refractor/visitors/open-api-2/license/index.cjs +26 -0
  165. package/src/refractor/visitors/open-api-2/license/index.mjs +20 -0
  166. package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +22 -0
  167. package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +17 -0
  168. package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +38 -0
  169. package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +32 -0
  170. package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +22 -0
  171. package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +17 -0
  172. package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +22 -0
  173. package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +17 -0
  174. package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +33 -0
  175. package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +27 -0
  176. package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +22 -0
  177. package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +17 -0
  178. package/src/refractor/visitors/open-api-2/operation/index.cjs +25 -0
  179. package/src/refractor/visitors/open-api-2/operation/index.mjs +19 -0
  180. package/src/refractor/visitors/open-api-2/parameter/index.cjs +26 -0
  181. package/src/refractor/visitors/open-api-2/parameter/index.mjs +20 -0
  182. package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +25 -0
  183. package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +19 -0
  184. package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +17 -0
  185. package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +12 -0
  186. package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +38 -0
  187. package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +32 -0
  188. package/src/refractor/visitors/open-api-2/path-item/index.cjs +45 -0
  189. package/src/refractor/visitors/open-api-2/path-item/index.mjs +39 -0
  190. package/src/refractor/visitors/open-api-2/paths/index.cjs +43 -0
  191. package/src/refractor/visitors/open-api-2/paths/index.mjs +37 -0
  192. package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +17 -0
  193. package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +12 -0
  194. package/src/refractor/visitors/open-api-2/reference/index.cjs +36 -0
  195. package/src/refractor/visitors/open-api-2/reference/index.mjs +30 -0
  196. package/src/refractor/visitors/open-api-2/response/index.cjs +26 -0
  197. package/src/refractor/visitors/open-api-2/response/index.mjs +20 -0
  198. package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +42 -0
  199. package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +36 -0
  200. package/src/refractor/visitors/open-api-2/responses/index.cjs +52 -0
  201. package/src/refractor/visitors/open-api-2/responses/index.mjs +46 -0
  202. package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +25 -0
  203. package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +19 -0
  204. package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +25 -0
  205. package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +21 -0
  206. package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +32 -0
  207. package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +28 -0
  208. package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +25 -0
  209. package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +21 -0
  210. package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +24 -0
  211. package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +20 -0
  212. package/src/refractor/visitors/open-api-2/schema/index.cjs +26 -0
  213. package/src/refractor/visitors/open-api-2/schema/index.mjs +20 -0
  214. package/src/refractor/visitors/open-api-2/scopes/index.cjs +26 -0
  215. package/src/refractor/visitors/open-api-2/scopes/index.mjs +20 -0
  216. package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +26 -0
  217. package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +20 -0
  218. package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +25 -0
  219. package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +19 -0
  220. package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +26 -0
  221. package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +20 -0
  222. package/src/refractor/visitors/open-api-2/tag/index.cjs +26 -0
  223. package/src/refractor/visitors/open-api-2/tag/index.mjs +20 -0
  224. package/src/refractor/visitors/open-api-2/xml/index.cjs +26 -0
  225. package/src/refractor/visitors/open-api-2/xml/index.mjs +20 -0
  226. package/src/traversal/visitor.cjs +56 -0
  227. package/src/traversal/visitor.mjs +53 -0
  228. package/types/apidom-ns-openapi-2.d.ts +2485 -0
@@ -0,0 +1,2485 @@
1
+ import { AllOfVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
2
+ import { ArrayElement } from '@speclynx/apidom-core';
3
+ import { Attributes } from '@speclynx/apidom-core';
4
+ import { BooleanElement } from '@speclynx/apidom-core';
5
+ import { Class } from 'ts-mixer/dist/types/types.js';
6
+ import { Element as Element_2 } from '@speclynx/apidom-core';
7
+ import { ElementPredicate } from '@speclynx/apidom-core';
8
+ import { EnumVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
9
+ import { isArrayElement } from '@speclynx/apidom-core';
10
+ import { isBooleanElement } from '@speclynx/apidom-core';
11
+ import { isElement } from '@speclynx/apidom-core';
12
+ import { isJSONReferenceElement } from '@speclynx/apidom-ns-json-schema-draft-4';
13
+ import { isJSONReferenceLikeElement } from '@speclynx/apidom-ns-json-schema-draft-4';
14
+ import { isLinkElement as isLinkPrimitiveElement } from '@speclynx/apidom-core';
15
+ import { isMemberElement } from '@speclynx/apidom-core';
16
+ import { isNullElement } from '@speclynx/apidom-core';
17
+ import { isNumberElement } from '@speclynx/apidom-core';
18
+ import { isObjectElement } from '@speclynx/apidom-core';
19
+ import { isRefElement } from '@speclynx/apidom-core';
20
+ import { isStringElement } from '@speclynx/apidom-core';
21
+ import { ItemsVisitor as ItemsVisitor_2 } from '@speclynx/apidom-ns-json-schema-draft-4';
22
+ import { JSONReference$RefVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
23
+ import { JSONReferenceElement } from '@speclynx/apidom-ns-json-schema-draft-4';
24
+ import { JSONReferenceVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
25
+ import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
26
+ import { MediaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
27
+ import { MediaTypes } from '@speclynx/apidom-core';
28
+ import { MemberElement } from '@speclynx/apidom-core';
29
+ import { Meta } from '@speclynx/apidom-core';
30
+ import { Namespace } from 'minim';
31
+ import { NamespacePluginOptions } from '@speclynx/apidom-core';
32
+ import { NumberElement } from '@speclynx/apidom-core';
33
+ import { ObjectElement } from '@speclynx/apidom-core';
34
+ import { PropertiesVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
35
+ import { RequiredVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
36
+ import { AllOfVisitorOptions as SchemaAllOfVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-4';
37
+ import { ItemsVisitorOptions as SchemaItemsVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-4';
38
+ import { SchemaOrReferenceVisitorOptions as SchemaOrJSONReferenceVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-4';
39
+ import { SchemaOrReferenceVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
40
+ import { PropertiesVisitorOptions as SchemaPropertiesVisitorOptions } from '@speclynx/apidom-ns-json-schema-draft-4';
41
+ import { StringElement } from '@speclynx/apidom-core';
42
+ import { TypeVisitor } from '@speclynx/apidom-ns-json-schema-draft-4';
43
+
44
+ /**
45
+ * @public
46
+ */
47
+ export declare class AlternatingVisitor extends SpecificationVisitor {
48
+ protected alternator: Alternator[];
49
+ constructor({ alternator, ...rest }: AlternatingVisitorOptions);
50
+ enter(element: Element_2): {};
51
+ }
52
+
53
+ /**
54
+ * @public
55
+ */
56
+ export declare interface AlternatingVisitorOptions extends SpecificationVisitorOptions {
57
+ readonly alternator?: Alternator[];
58
+ }
59
+
60
+ /**
61
+ * @public
62
+ */
63
+ export declare type Alternator = {
64
+ predicate: (element: unknown) => boolean;
65
+ specPath: string[];
66
+ };
67
+
68
+ /**
69
+ * @public
70
+ */
71
+ export declare class BasePathVisitor extends FallbackVisitor {
72
+ readonly element: StringElement;
73
+ StringElement(stringElement: StringElement): {};
74
+ }
75
+
76
+ /**
77
+ * @public
78
+ */
79
+ export declare class ConsumesVisitor extends FallbackVisitor {
80
+ element: SwaggerConsumesElement;
81
+ constructor(options: VisitorOptions);
82
+ ArrayElement(arrayElement: ArrayElement): {};
83
+ }
84
+
85
+ /**
86
+ * @public
87
+ */
88
+ export declare class ContactElement extends ObjectElement {
89
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
90
+ get name(): StringElement | undefined;
91
+ set name(name: StringElement | undefined);
92
+ get url(): StringElement | undefined;
93
+ set url(url: StringElement | undefined);
94
+ get email(): StringElement | undefined;
95
+ set email(email: StringElement | undefined);
96
+ }
97
+
98
+ /**
99
+ * @public
100
+ */
101
+ export declare class ContactVisitor extends ContactVisitor_base {
102
+ readonly element: ContactElement;
103
+ protected readonly specPath: SpecPath<['document', 'objects', 'Contact']>;
104
+ protected readonly canSupportSpecificationExtensions: true;
105
+ constructor(options: ContactVisitorOptions);
106
+ }
107
+
108
+ declare const ContactVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
109
+
110
+ /**
111
+ * @public
112
+ */
113
+ export declare interface ContactVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
114
+ }
115
+
116
+ /**
117
+ * @public
118
+ */
119
+ export declare const createRefractor: (specPath: string[]) => (value: unknown, options?: {}) => Element_2;
120
+
121
+ declare const DefaultVisitor_base: Class<any[], AlternatingVisitor & FallbackVisitor, typeof AlternatingVisitor & typeof FallbackVisitor>;
122
+
123
+ /**
124
+ * @public
125
+ */
126
+ export declare class DefinitionsElement extends ObjectElement {
127
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
128
+ }
129
+
130
+ /**
131
+ * @public
132
+ */
133
+ export declare class DefinitionsVisitor extends DefinitionsVisitor_base {
134
+ readonly element: DefinitionsElement;
135
+ protected readonly specPath: SpecPath<[
136
+ 'document',
137
+ 'objects',
138
+ 'JSONReference'
139
+ ] | ['document', 'objects', 'Schema']>;
140
+ constructor(options: DefinitionsVisitorOptions);
141
+ ObjectElement(objectElement: ObjectElement): {};
142
+ }
143
+
144
+ declare const DefinitionsVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
145
+
146
+ /**
147
+ * @public
148
+ */
149
+ export declare interface DefinitionsVisitorOptions extends MapVisitorOptions, VisitorOptions {
150
+ }
151
+
152
+ /**
153
+ * @public
154
+ */
155
+ export declare class ExampleElement extends ObjectElement {
156
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
157
+ }
158
+
159
+ /**
160
+ * @public
161
+ */
162
+ export declare class ExampleVisitor extends ExampleVisitor_base {
163
+ readonly element: ExampleElement;
164
+ protected readonly specPath: SpecPath<['value']>;
165
+ protected readonly canSupportSpecificationExtensions: false;
166
+ constructor(options: ExampleVisitorOptions);
167
+ }
168
+
169
+ declare const ExampleVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
170
+
171
+ /**
172
+ * @public
173
+ */
174
+ export declare interface ExampleVisitorOptions extends MapVisitorOptions, VisitorOptions {
175
+ }
176
+
177
+ /**
178
+ * @public
179
+ */
180
+ export declare class ExternalDocumentationElement extends ObjectElement {
181
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
182
+ get description(): StringElement | undefined;
183
+ set description(description: StringElement | undefined);
184
+ get url(): StringElement | undefined;
185
+ set url(url: StringElement | undefined);
186
+ }
187
+
188
+ /**
189
+ * @public
190
+ */
191
+ export declare class ExternalDocumentationVisitor extends ExternalDocumentationVisitor_base {
192
+ readonly element: ExternalDocumentationElement;
193
+ protected readonly specPath: SpecPath<['document', 'objects', 'ExternalDocumentation']>;
194
+ protected readonly canSupportSpecificationExtensions: true;
195
+ constructor(options: ExternalDocumentationVisitorOptions);
196
+ }
197
+
198
+ declare const ExternalDocumentationVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
199
+
200
+ /**
201
+ * @public
202
+ */
203
+ export declare interface ExternalDocumentationVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
204
+ }
205
+
206
+ /**
207
+ * @public
208
+ */
209
+ export declare class FallbackVisitor extends Visitor {
210
+ enter(element: Element_2): {};
211
+ }
212
+
213
+ /**
214
+ * @public
215
+ */
216
+ export declare class FixedFieldsVisitor extends SpecificationVisitor {
217
+ protected specPath: SpecPath;
218
+ protected ignoredFields: string[];
219
+ protected canSupportSpecificationExtensions: boolean;
220
+ protected specificationExtensionPredicate: (element: MemberElement) => boolean;
221
+ constructor({ specPath, ignoredFields, canSupportSpecificationExtensions, specificationExtensionPredicate, ...rest }: FixedFieldsVisitorOptions);
222
+ ObjectElement(objectElement: ObjectElement): {};
223
+ }
224
+
225
+ /**
226
+ * @public
227
+ */
228
+ export declare interface FixedFieldsVisitorOptions extends SpecificationVisitorOptions {
229
+ readonly specPath: SpecPath;
230
+ readonly ignoredFields?: string[];
231
+ readonly canSupportSpecificationExtensions?: boolean;
232
+ readonly specificationExtensionPredicate?: typeof isSwaggerExtension;
233
+ }
234
+
235
+ /**
236
+ * @public
237
+ */
238
+ export declare type Format = 'generic' | 'json' | 'yaml';
239
+
240
+ /**
241
+ * @public
242
+ */
243
+ export declare const getNodeType: <T extends Element_2>(element: T) => string | undefined;
244
+
245
+ /**
246
+ * @public
247
+ */
248
+ export declare class HeaderElement extends JSONSchemaElement {
249
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
250
+ /**
251
+ * Core vocabulary
252
+ *
253
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
254
+ */
255
+ get idProp(): StringElement | undefined;
256
+ set idProp(idProps: StringElement | undefined);
257
+ get $schema(): StringElement | undefined;
258
+ set $schema($schema: StringElement | undefined);
259
+ /**
260
+ * Validation keywords for arrays
261
+ */
262
+ get additionalItems(): this | JSONReferenceElement | BooleanElement | undefined;
263
+ set additionalItems(additionalItems: this | JSONReferenceElement | BooleanElement | undefined);
264
+ get items(): this | undefined;
265
+ set items(items: this | undefined);
266
+ /**
267
+ * Validation keywords for objects
268
+ */
269
+ get maxProperties(): NumberElement | undefined;
270
+ set maxProperties(maxProperties: NumberElement | undefined);
271
+ get minProperties(): NumberElement | undefined;
272
+ set minProperties(minProperties: NumberElement | undefined);
273
+ get required(): ArrayElement | undefined;
274
+ set required(required: ArrayElement | undefined);
275
+ get properties(): ObjectElement | undefined;
276
+ set properties(properties: ObjectElement | undefined);
277
+ get additionalProperties(): this | JSONReferenceElement | BooleanElement | undefined;
278
+ set additionalProperties(additionalProperties: this | JSONReferenceElement | BooleanElement | undefined);
279
+ get patternProperties(): ObjectElement | undefined;
280
+ set patternProperties(patternProperties: ObjectElement | undefined);
281
+ get dependencies(): ObjectElement | undefined;
282
+ set dependencies(dependencies: ObjectElement | undefined);
283
+ /**
284
+ * Validation keywords for any instance type
285
+ */
286
+ get type(): StringElement | undefined;
287
+ set type(type: StringElement | undefined);
288
+ get allOf(): ArrayElement | undefined;
289
+ set allOf(allOf: ArrayElement | undefined);
290
+ get anyOf(): ArrayElement | undefined;
291
+ set anyOf(anyOf: ArrayElement | undefined);
292
+ get oneOf(): ArrayElement | undefined;
293
+ set oneOf(oneOf: ArrayElement | undefined);
294
+ get not(): this | JSONReferenceElement | undefined;
295
+ set not(not: this | JSONReferenceElement | undefined);
296
+ get definitions(): ObjectElement | undefined;
297
+ set definitions(definitions: ObjectElement | undefined);
298
+ /**
299
+ * Metadata keywords
300
+ *
301
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
302
+ */
303
+ get title(): StringElement | undefined;
304
+ set title(title: StringElement | undefined);
305
+ /**
306
+ * JSON Hyper-Schema
307
+ *
308
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
309
+ */
310
+ get base(): StringElement | undefined;
311
+ set base(base: StringElement | undefined);
312
+ get links(): ArrayElement | undefined;
313
+ set links(links: ArrayElement | undefined);
314
+ get media(): MediaElement | undefined;
315
+ set media(media: MediaElement | undefined);
316
+ get readOnly(): BooleanElement | undefined;
317
+ set readOnly(readOnly: BooleanElement | undefined);
318
+ }
319
+
320
+ /**
321
+ * @public
322
+ */
323
+ export declare class HeadersElement extends ObjectElement {
324
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
325
+ }
326
+
327
+ /**
328
+ * @public
329
+ */
330
+ export declare class HeadersVisitor extends HeadersVisitor_base {
331
+ readonly element: HeadersElement;
332
+ protected readonly specPath: SpecPath<['document', 'objects', 'Header']>;
333
+ protected readonly canSupportSpecificationExtensions: false;
334
+ constructor(options: HeadersVisitorOptions);
335
+ }
336
+
337
+ declare const HeadersVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
338
+
339
+ /**
340
+ * @public
341
+ */
342
+ export declare interface HeadersVisitorOptions extends MapVisitorOptions, VisitorOptions {
343
+ }
344
+
345
+ /**
346
+ * @public
347
+ */
348
+ export declare class HeaderVisitor extends HeaderVisitor_base {
349
+ readonly element: HeaderElement;
350
+ protected readonly specPath: SpecPath<['document', 'objects', 'Header']>;
351
+ protected readonly canSupportSpecificationExtensions: true;
352
+ constructor(options: HeaderVisitorOptions);
353
+ }
354
+
355
+ declare const HeaderVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
356
+
357
+ /**
358
+ * @public
359
+ */
360
+ export declare interface HeaderVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
361
+ }
362
+
363
+ /**
364
+ * @public
365
+ */
366
+ export declare class HostVisitor extends FallbackVisitor {
367
+ readonly element: StringElement;
368
+ StringElement(stringElement: StringElement): {};
369
+ }
370
+
371
+ /**
372
+ * @public
373
+ */
374
+ export declare class InfoElement extends ObjectElement {
375
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
376
+ get title(): StringElement | undefined;
377
+ set title(title: StringElement | undefined);
378
+ get description(): StringElement | undefined;
379
+ set description(description: StringElement | undefined);
380
+ get termsOfService(): StringElement | undefined;
381
+ set termsOfService(tos: StringElement | undefined);
382
+ get contact(): ContactElement | undefined;
383
+ set contact(contactElement: ContactElement | undefined);
384
+ get license(): LicenseElement | undefined;
385
+ set license(licenseElement: LicenseElement | undefined);
386
+ get version(): StringElement | undefined;
387
+ set version(version: StringElement | undefined);
388
+ }
389
+
390
+ /**
391
+ * @public
392
+ */
393
+ export declare class InfoVersionVisitor extends FallbackVisitor {
394
+ readonly element: StringElement;
395
+ StringElement(stringElement: StringElement): {};
396
+ }
397
+
398
+ /**
399
+ * @public
400
+ */
401
+ export declare class InfoVisitor extends InfoVisitor_base {
402
+ readonly element: InfoElement;
403
+ protected readonly specPath: SpecPath<['document', 'objects', 'Info']>;
404
+ protected readonly canSupportSpecificationExtensions: true;
405
+ constructor(options: InfoVisitorOptions);
406
+ }
407
+
408
+ declare const InfoVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
409
+
410
+ /**
411
+ * @public
412
+ */
413
+ export declare interface InfoVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
414
+ }
415
+
416
+ export { isArrayElement }
417
+
418
+ export { isBooleanElement }
419
+
420
+ /**
421
+ * @public
422
+ */
423
+ export declare const isContactElement: ElementPredicate<ContactElement>;
424
+
425
+ /**
426
+ * @public
427
+ */
428
+ export declare const isDefinitionsElement: ElementPredicate<DefinitionsElement>;
429
+
430
+ export { isElement }
431
+
432
+ /**
433
+ * @public
434
+ */
435
+ export declare const isExampleElement: ElementPredicate<ExampleElement>;
436
+
437
+ /**
438
+ * @public
439
+ */
440
+ export declare const isExternalDocumentationElement: ElementPredicate<ExternalDocumentationElement>;
441
+
442
+ /**
443
+ * @public
444
+ */
445
+ export declare const isHeaderElement: ElementPredicate<HeaderElement>;
446
+
447
+ /**
448
+ * @public
449
+ */
450
+ export declare const isHeadersElement: ElementPredicate<HeadersElement>;
451
+
452
+ /**
453
+ * @public
454
+ */
455
+ export declare const isInfoElement: ElementPredicate<InfoElement>;
456
+
457
+ /**
458
+ * @public
459
+ */
460
+ export declare const isItemsElement: ElementPredicate<ItemsElement>;
461
+
462
+ export { isJSONReferenceElement }
463
+
464
+ export { isJSONReferenceLikeElement }
465
+
466
+ /**
467
+ * @public
468
+ */
469
+ export declare const isLicenseElement: ElementPredicate<LicenseElement>;
470
+
471
+ export { isLinkPrimitiveElement }
472
+
473
+ export { isMemberElement }
474
+
475
+ export { isNullElement }
476
+
477
+ export { isNumberElement }
478
+
479
+ export { isObjectElement }
480
+
481
+ /**
482
+ * @public
483
+ */
484
+ export declare const isOperationElement: ElementPredicate<OperationElement>;
485
+
486
+ /**
487
+ * @public
488
+ */
489
+ export declare const isParameterElement: ElementPredicate<ParameterElement>;
490
+
491
+ /**
492
+ * @public
493
+ */
494
+ export declare const isParametersDefinitionsElement: ElementPredicate<ParametersDefinitionsElement>;
495
+
496
+ /**
497
+ * @public
498
+ */
499
+ export declare const isPathItemElement: ElementPredicate<PathItemElement>;
500
+
501
+ /**
502
+ * @public
503
+ */
504
+ export declare const isPathsElement: ElementPredicate<PathsElement>;
505
+
506
+ export { isRefElement }
507
+
508
+ /**
509
+ * @public
510
+ */
511
+ export declare const isReferenceElement: ElementPredicate<ReferenceElement>;
512
+
513
+ /**
514
+ * @public
515
+ */
516
+ export declare const isReferenceLikeElement: (element: unknown) => element is ReferenceLikeElement;
517
+
518
+ /**
519
+ * @public
520
+ */
521
+ export declare const isResponseElement: ElementPredicate<ResponseElement>;
522
+
523
+ /**
524
+ * @public
525
+ */
526
+ export declare const isResponsesDefinitionsElement: ElementPredicate<ResponsesDefinitionsElement>;
527
+
528
+ /**
529
+ * @public
530
+ */
531
+ export declare const isResponsesElement: ElementPredicate<ResponsesElement>;
532
+
533
+ /**
534
+ * @public
535
+ */
536
+ export declare const isSchemaElement: ElementPredicate<SchemaElement>;
537
+
538
+ /**
539
+ * @public
540
+ */
541
+ export declare const isScopesElement: ElementPredicate<ScopesElement>;
542
+
543
+ /**
544
+ * @public
545
+ */
546
+ export declare const isSecurityDefinitionsElement: ElementPredicate<SecurityDefinitionsElement>;
547
+
548
+ /**
549
+ * @public
550
+ */
551
+ export declare const isSecurityRequirementElement: ElementPredicate<SecurityRequirementElement>;
552
+
553
+ /**
554
+ * @public
555
+ */
556
+ export declare const isSecuritySchemeElement: ElementPredicate<SecuritySchemeElement>;
557
+
558
+ export { isStringElement }
559
+
560
+ /**
561
+ * @public
562
+ */
563
+ export declare const isSwaggerElement: ElementPredicate<SwaggerElement>;
564
+
565
+ /**
566
+ * @public
567
+ */
568
+ export declare const isSwaggerExtension: (element: MemberElement) => boolean;
569
+
570
+ /**
571
+ * @public
572
+ */
573
+ export declare const isSwaggerVersionElement: ElementPredicate<SwaggerVersionElement>;
574
+
575
+ /**
576
+ * @public
577
+ */
578
+ export declare const isTagElement: ElementPredicate<TagElement>;
579
+
580
+ /**
581
+ * @public
582
+ */
583
+ export declare const isXmlElement: ElementPredicate<XmlElement>;
584
+
585
+ /**
586
+ * @public
587
+ */
588
+ export declare class ItemsElement extends JSONSchemaElement {
589
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
590
+ /**
591
+ * Core vocabulary
592
+ *
593
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
594
+ */
595
+ get idProp(): StringElement | undefined;
596
+ set idProp(idProps: StringElement | undefined);
597
+ get $schema(): StringElement | undefined;
598
+ set $schema($schema: StringElement | undefined);
599
+ /**
600
+ * Validation keywords for arrays
601
+ */
602
+ get additionalItems(): this | JSONReferenceElement | BooleanElement | undefined;
603
+ set additionalItems(additionalItems: this | JSONReferenceElement | BooleanElement | undefined);
604
+ get items(): this | undefined;
605
+ set items(items: this | undefined);
606
+ /**
607
+ * Validation keywords for objects
608
+ */
609
+ get maxProperties(): NumberElement | undefined;
610
+ set maxProperties(maxProperties: NumberElement | undefined);
611
+ get minProperties(): NumberElement | undefined;
612
+ set minProperties(minProperties: NumberElement | undefined);
613
+ get required(): ArrayElement | undefined;
614
+ set required(required: ArrayElement | undefined);
615
+ get properties(): ObjectElement | undefined;
616
+ set properties(properties: ObjectElement | undefined);
617
+ get additionalProperties(): this | JSONReferenceElement | BooleanElement | undefined;
618
+ set additionalProperties(additionalProperties: this | JSONReferenceElement | BooleanElement | undefined);
619
+ get patternProperties(): ObjectElement | undefined;
620
+ set patternProperties(patternProperties: ObjectElement | undefined);
621
+ get dependencies(): ObjectElement | undefined;
622
+ set dependencies(dependencies: ObjectElement | undefined);
623
+ /**
624
+ * Validation keywords for any instance type
625
+ */
626
+ get type(): StringElement | undefined;
627
+ set type(type: StringElement | undefined);
628
+ get allOf(): ArrayElement | undefined;
629
+ set allOf(allOf: ArrayElement | undefined);
630
+ get anyOf(): ArrayElement | undefined;
631
+ set anyOf(anyOf: ArrayElement | undefined);
632
+ get oneOf(): ArrayElement | undefined;
633
+ set oneOf(oneOf: ArrayElement | undefined);
634
+ get not(): this | JSONReferenceElement | undefined;
635
+ set not(not: this | JSONReferenceElement | undefined);
636
+ get definitions(): ObjectElement | undefined;
637
+ set definitions(definitions: ObjectElement | undefined);
638
+ /**
639
+ * Metadata keywords
640
+ *
641
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
642
+ */
643
+ get title(): StringElement | undefined;
644
+ set title(title: StringElement | undefined);
645
+ get description(): StringElement | undefined;
646
+ set description(description: StringElement | undefined);
647
+ /**
648
+ * JSON Hyper-Schema
649
+ *
650
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
651
+ */
652
+ get base(): StringElement | undefined;
653
+ set base(base: StringElement | undefined);
654
+ get links(): ArrayElement | undefined;
655
+ set links(links: ArrayElement | undefined);
656
+ get media(): MediaElement | undefined;
657
+ set media(media: MediaElement | undefined);
658
+ get readOnly(): BooleanElement | undefined;
659
+ set readOnly(readOnly: BooleanElement | undefined);
660
+ }
661
+
662
+ /**
663
+ * @public
664
+ */
665
+ export declare class ItemsVisitor extends ItemsVisitor_base {
666
+ readonly element: ItemsElement;
667
+ protected readonly specPath: SpecPath<['document', 'objects', 'Items']>;
668
+ protected readonly canSupportSpecificationExtensions: true;
669
+ constructor(options: ItemsVisitorOptions);
670
+ }
671
+
672
+ declare const ItemsVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
673
+
674
+ /**
675
+ * @public
676
+ */
677
+ export declare interface ItemsVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
678
+ }
679
+
680
+ export { JSONReferenceElement }
681
+
682
+ /**
683
+ * @public
684
+ */
685
+ export declare const JSONSchemaAllOfVisitor: typeof AllOfVisitor;
686
+
687
+ /**
688
+ * @public
689
+ */
690
+ export declare const JSONSchemaItemsVisitor: typeof ItemsVisitor_2;
691
+
692
+ /**
693
+ * @public
694
+ */
695
+ export declare const JSONSchemaOrJSONReferenceVisitor: typeof SchemaOrReferenceVisitor;
696
+
697
+ /**
698
+ * @public
699
+ */
700
+ export declare const JSONSchemaPropertiesVisitor: typeof PropertiesVisitor;
701
+
702
+ /**
703
+ * There are unfortunately two `LinkElement` types. One is from base namespace
704
+ * and the other one if from this namespace. `LinkElement` from base namespace
705
+ * is used extremely rarely, so it's almost always safe during traversing
706
+ * to assume that `LinkElement` is element from this namespace.
707
+ *
708
+ * To be 100% sure that currently visiting `LinkElement` is from this namespace
709
+ * use `isLinkElement` predicate from this namespace to assert for it.
710
+ * @public
711
+ */
712
+ export declare const keyMap: {
713
+ ObjectElement: string[];
714
+ ArrayElement: string[];
715
+ MemberElement: string[];
716
+ StringElement: never[];
717
+ BooleanElement: never[];
718
+ NumberElement: never[];
719
+ NullElement: never[];
720
+ RefElement: never[];
721
+ LinkElement: never[];
722
+ Annotation: never[];
723
+ Comment: never[];
724
+ ParseResultElement: string[];
725
+ SourceMap: string[];
726
+ SwaggerElement: string[];
727
+ InfoElement: string[];
728
+ ContactElement: string[];
729
+ LicenseElement: string[];
730
+ PathsElement: string[];
731
+ PathItemElement: string[];
732
+ OperationElement: string[];
733
+ ExternalDocumentationElement: string[];
734
+ ParameterElement: string[];
735
+ ItemsElement: string[];
736
+ ExampleElement: string[];
737
+ ResponsesElement: string[];
738
+ ResponseElement: string[];
739
+ HeadersElement: string[];
740
+ HeaderElement: string[];
741
+ TagElement: string[];
742
+ ReferenceElement: string[];
743
+ JSONReferenceElement: string[];
744
+ SchemaElement: string[];
745
+ XmlElement: string[];
746
+ DefinitionsElement: string[];
747
+ ParametersDefinitionsElement: string[];
748
+ ResponsesDefinitionsElement: string[];
749
+ SecurityDefinitionsElement: string[];
750
+ SecuritySchemeElement: string[];
751
+ ScopesElement: string[];
752
+ SecurityRequirementElement: string[];
753
+ };
754
+
755
+ /**
756
+ * @public
757
+ */
758
+ export declare class LicenseElement extends ObjectElement {
759
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
760
+ get name(): StringElement | undefined;
761
+ set name(name: StringElement | undefined);
762
+ get url(): StringElement | undefined;
763
+ set url(url: StringElement | undefined);
764
+ }
765
+
766
+ /**
767
+ * @public
768
+ */
769
+ export declare class LicenseVisitor extends LicenseVisitor_base {
770
+ readonly element: LicenseElement;
771
+ protected readonly specPath: SpecPath<['document', 'objects', 'License']>;
772
+ protected readonly canSupportSpecificationExtensions: true;
773
+ constructor(options: LicenseVisitorOptions);
774
+ }
775
+
776
+ declare const LicenseVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
777
+
778
+ /**
779
+ * @public
780
+ */
781
+ export declare interface LicenseVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
782
+ }
783
+
784
+ /**
785
+ * @public
786
+ */
787
+ export declare class MapVisitor extends PatternedFieldsVisitor {
788
+ constructor(options: MapVisitorOptions);
789
+ }
790
+
791
+ /**
792
+ * @public
793
+ */
794
+ export declare interface MapVisitorOptions extends PatternedFieldsVisitorOptions {
795
+ }
796
+
797
+ /**
798
+ * @public
799
+ */
800
+ export declare const mediaTypes: OpenAPIMediaTypes;
801
+
802
+ /**
803
+ * @public
804
+ */
805
+ export declare class MixedFieldsVisitor extends MixedFieldsVisitor_base {
806
+ protected readonly specPathFixedFields: SpecPath;
807
+ protected readonly specPathPatternedFields: SpecPath;
808
+ constructor({ specPathFixedFields, specPathPatternedFields, ...rest }: MixedFieldsVisitorOptions);
809
+ ObjectElement(objectElement: ObjectElement): {};
810
+ }
811
+
812
+ declare const MixedFieldsVisitor_base: Class<any[], FixedFieldsVisitor & PatternedFieldsVisitor, typeof FixedFieldsVisitor & typeof PatternedFieldsVisitor>;
813
+
814
+ /**
815
+ * @public
816
+ */
817
+ export declare interface MixedFieldsVisitorOptions extends PatternedFieldsVisitorOptions {
818
+ readonly specPathFixedFields: SpecPath;
819
+ readonly specPathPatternedFields: SpecPath;
820
+ }
821
+
822
+ /**
823
+ * @public
824
+ */
825
+ declare const openApi2: {
826
+ namespace: (options: NamespacePluginOptions) => Namespace;
827
+ };
828
+ export default openApi2;
829
+
830
+ /**
831
+ * @public
832
+ */
833
+ export declare class OpenAPIMediaTypes extends MediaTypes<string> {
834
+ filterByFormat(format?: Format): string[];
835
+ findBy(version?: string, format?: Format): string;
836
+ latest(format?: Format): string;
837
+ }
838
+
839
+ /**
840
+ * @public
841
+ */
842
+ export declare class OperationConsumesElement extends ArrayElement {
843
+ static primaryClass: string;
844
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
845
+ }
846
+
847
+ /**
848
+ * @public
849
+ */
850
+ export declare class OperationConsumesVisitor extends FallbackVisitor {
851
+ element: OperationConsumesElement;
852
+ constructor(options: VisitorOptions);
853
+ ArrayElement(arrayElement: ArrayElement): {};
854
+ }
855
+
856
+ /**
857
+ * @public
858
+ */
859
+ export declare class OperationElement extends ObjectElement {
860
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
861
+ get tags(): ArrayElement | undefined;
862
+ set tags(tags: ArrayElement | undefined);
863
+ get summary(): StringElement | undefined;
864
+ set summary(description: StringElement | undefined);
865
+ get description(): StringElement | undefined;
866
+ set description(description: StringElement | undefined);
867
+ set externalDocs(externalDocs: ExternalDocumentationElement | undefined);
868
+ get externalDocs(): ExternalDocumentationElement | undefined;
869
+ get operationId(): StringElement | undefined;
870
+ set operationId(operationId: StringElement | undefined);
871
+ get parameters(): ArrayElement | undefined;
872
+ set parameters(parameters: ArrayElement | undefined);
873
+ get responses(): ResponsesElement | undefined;
874
+ set responses(responses: ResponsesElement | undefined);
875
+ get schemes(): ArrayElement | undefined;
876
+ set schemes(schemes: ArrayElement | undefined);
877
+ get deprecated(): BooleanElement;
878
+ set deprecated(deprecated: BooleanElement);
879
+ get security(): ArrayElement | undefined;
880
+ set security(security: ArrayElement | undefined);
881
+ }
882
+
883
+ /**
884
+ * @public
885
+ */
886
+ export declare class OperationParametersElement extends ArrayElement {
887
+ static primaryClass: string;
888
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
889
+ }
890
+
891
+ /**
892
+ * @public
893
+ */
894
+ export declare class OperationParametersVisitor extends ParametersVisitor_base_2 {
895
+ readonly element: OperationParametersElement;
896
+ constructor(options: OperationParametersVisitorOptions);
897
+ ArrayElement(arrayElement: ArrayElement): {};
898
+ }
899
+
900
+ /**
901
+ * @public
902
+ */
903
+ export declare interface OperationParametersVisitorOptions extends SpecificationVisitorOptions, VisitorOptions {
904
+ }
905
+
906
+ /**
907
+ * @public
908
+ */
909
+ export declare class OperationProducesElement extends ArrayElement {
910
+ static primaryClass: string;
911
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
912
+ }
913
+
914
+ /**
915
+ * @public
916
+ */
917
+ export declare class OperationProducesVisitor extends FallbackVisitor {
918
+ element: OperationProducesElement;
919
+ constructor(options: VisitorOptions);
920
+ ArrayElement(arrayElement: ArrayElement): {};
921
+ }
922
+
923
+ /**
924
+ * @public
925
+ */
926
+ export declare class OperationSchemesElement extends ArrayElement {
927
+ static primaryClass: string;
928
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
929
+ }
930
+
931
+ /**
932
+ * @public
933
+ */
934
+ export declare class OperationSchemesVisitor extends FallbackVisitor {
935
+ element: OperationSchemesElement;
936
+ constructor(options: VisitorOptions);
937
+ ArrayElement(arrayElement: ArrayElement): {};
938
+ }
939
+
940
+ /**
941
+ * @public
942
+ */
943
+ export declare class OperationSecurityElement extends ArrayElement {
944
+ static primaryClass: string;
945
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
946
+ }
947
+
948
+ /**
949
+ * @public
950
+ */
951
+ export declare class OperationSecurityVisitor extends SecurityVisitor_base_2 {
952
+ readonly element: OperationSecurityElement;
953
+ constructor(options: OperationSecurityVisitorOptions);
954
+ ArrayElement(arrayElement: ArrayElement): {};
955
+ }
956
+
957
+ /**
958
+ * @public
959
+ */
960
+ export declare interface OperationSecurityVisitorOptions extends SpecificationVisitorOptions, VisitorOptions {
961
+ }
962
+
963
+ /**
964
+ * @public
965
+ */
966
+ export declare class OperationTagsElement extends ArrayElement {
967
+ static primaryClass: string;
968
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
969
+ }
970
+
971
+ /**
972
+ * @public
973
+ */
974
+ export declare class OperationTagsVisitor extends FallbackVisitor {
975
+ element: OperationTagsElement;
976
+ constructor(options: VisitorOptions);
977
+ ArrayElement(arrayElement: ArrayElement): {};
978
+ }
979
+
980
+ /**
981
+ * @public
982
+ */
983
+ export declare class OperationVisitor extends OperationVisitor_base {
984
+ readonly element: OperationElement;
985
+ protected readonly specPath: SpecPath<['document', 'objects', 'Operation']>;
986
+ constructor(options: OperationVisitorOptions);
987
+ }
988
+
989
+ declare const OperationVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
990
+
991
+ /**
992
+ * @public
993
+ */
994
+ export declare interface OperationVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
995
+ }
996
+
997
+ /**
998
+ * @public
999
+ */
1000
+ export declare class ParameterElement extends JSONSchemaElement {
1001
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1002
+ /**
1003
+ * Core vocabulary
1004
+ *
1005
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
1006
+ */
1007
+ get idProp(): StringElement | undefined;
1008
+ set idProp(idProps: StringElement | undefined);
1009
+ get $schema(): StringElement | undefined;
1010
+ set $schema($schema: StringElement | undefined);
1011
+ /**
1012
+ * Validation keywords for arrays
1013
+ */
1014
+ get additionalItems(): this | JSONReferenceElement | BooleanElement | undefined;
1015
+ set additionalItems(additionalItems: this | JSONReferenceElement | BooleanElement | undefined);
1016
+ get items(): this | undefined;
1017
+ set items(items: this | undefined);
1018
+ /**
1019
+ * Validation keywords for objects
1020
+ */
1021
+ get maxProperties(): NumberElement | undefined;
1022
+ set maxProperties(maxProperties: NumberElement | undefined);
1023
+ get minProperties(): NumberElement | undefined;
1024
+ set minProperties(minProperties: NumberElement | undefined);
1025
+ get required(): BooleanElement | undefined | any;
1026
+ set required(required: BooleanElement | undefined | any);
1027
+ get properties(): ObjectElement | undefined;
1028
+ set properties(properties: ObjectElement | undefined);
1029
+ get additionalProperties(): this | JSONReferenceElement | BooleanElement | undefined;
1030
+ set additionalProperties(additionalProperties: this | JSONReferenceElement | BooleanElement | undefined);
1031
+ get patternProperties(): ObjectElement | undefined;
1032
+ set patternProperties(patternProperties: ObjectElement | undefined);
1033
+ get dependencies(): ObjectElement | undefined;
1034
+ set dependencies(dependencies: ObjectElement | undefined);
1035
+ /**
1036
+ * Validation keywords for any instance type
1037
+ */
1038
+ get type(): StringElement | undefined;
1039
+ set type(type: StringElement | undefined);
1040
+ get allOf(): ArrayElement | undefined;
1041
+ set allOf(allOf: ArrayElement | undefined);
1042
+ get anyOf(): ArrayElement | undefined;
1043
+ set anyOf(anyOf: ArrayElement | undefined);
1044
+ get oneOf(): ArrayElement | undefined;
1045
+ set oneOf(oneOf: ArrayElement | undefined);
1046
+ get not(): this | JSONReferenceElement | undefined;
1047
+ set not(not: this | JSONReferenceElement | undefined);
1048
+ get definitions(): ObjectElement | undefined;
1049
+ set definitions(definitions: ObjectElement | undefined);
1050
+ /**
1051
+ * Metadata keywords
1052
+ *
1053
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
1054
+ */
1055
+ get title(): StringElement | undefined;
1056
+ set title(title: StringElement | undefined);
1057
+ get description(): StringElement | undefined;
1058
+ set description(description: StringElement | undefined);
1059
+ /**
1060
+ * Semantic validation with "format"
1061
+ *
1062
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
1063
+ */
1064
+ get format(): StringElement | undefined;
1065
+ set format(format: StringElement | undefined);
1066
+ /**
1067
+ * JSON Hyper-Schema
1068
+ *
1069
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
1070
+ */
1071
+ get base(): StringElement | undefined;
1072
+ set base(base: StringElement | undefined);
1073
+ get links(): ArrayElement | undefined;
1074
+ set links(links: ArrayElement | undefined);
1075
+ get media(): MediaElement | undefined;
1076
+ set media(media: MediaElement | undefined);
1077
+ get readOnly(): BooleanElement | undefined;
1078
+ set readOnly(readOnly: BooleanElement | undefined);
1079
+ /**
1080
+ * OpenAPI vocabulary
1081
+ */
1082
+ get name(): StringElement | undefined;
1083
+ set name(name: StringElement | undefined);
1084
+ get in(): StringElement | undefined;
1085
+ set in(val: StringElement | undefined);
1086
+ get schema(): SchemaElement | undefined;
1087
+ set schema(schema: SchemaElement | undefined);
1088
+ }
1089
+
1090
+ /**
1091
+ * @public
1092
+ */
1093
+ export declare class ParametersDefinitionsElement extends ObjectElement {
1094
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1095
+ }
1096
+
1097
+ /**
1098
+ * @public
1099
+ */
1100
+ export declare class ParametersDefinitionsVisitor extends ParametersDefinitionsVisitor_base {
1101
+ readonly element: ParametersDefinitionsElement;
1102
+ protected readonly specPath: SpecPath<['document', 'objects', 'Parameter']>;
1103
+ constructor(options: ParametersDefinitionsVisitorOptions);
1104
+ }
1105
+
1106
+ declare const ParametersDefinitionsVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
1107
+
1108
+ /**
1109
+ * @public
1110
+ */
1111
+ export declare interface ParametersDefinitionsVisitorOptions extends MapVisitorOptions, VisitorOptions {
1112
+ }
1113
+
1114
+ declare const ParametersVisitor_base: Class<any[], SpecificationVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof FallbackVisitor>;
1115
+
1116
+ declare const ParametersVisitor_base_2: Class<any[], SpecificationVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof FallbackVisitor>;
1117
+
1118
+ /**
1119
+ * @public
1120
+ */
1121
+ export declare class ParameterVisitor extends ParameterVisitor_base {
1122
+ readonly element: ParameterElement;
1123
+ protected readonly specPath: SpecPath<['document', 'objects', 'Parameter']>;
1124
+ protected readonly canSupportSpecificationExtensions: true;
1125
+ constructor(options: ParameterVisitorOptions);
1126
+ }
1127
+
1128
+ declare const ParameterVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
1129
+
1130
+ /**
1131
+ * @public
1132
+ */
1133
+ export declare interface ParameterVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
1134
+ }
1135
+
1136
+ /**
1137
+ * @public
1138
+ */
1139
+ export declare class PathItem$RefVisitor extends FallbackVisitor {
1140
+ readonly element: StringElement;
1141
+ StringElement(stringElement: StringElement): {};
1142
+ }
1143
+
1144
+ /**
1145
+ * @public
1146
+ */
1147
+ export declare class PathItemElement extends ObjectElement {
1148
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1149
+ get $ref(): StringElement | undefined;
1150
+ set $ref($ref: StringElement | undefined);
1151
+ get GET(): OperationElement;
1152
+ set GET(operation: OperationElement | undefined);
1153
+ get PUT(): OperationElement;
1154
+ set PUT(operation: OperationElement | undefined);
1155
+ get POST(): OperationElement;
1156
+ set POST(operation: OperationElement | undefined);
1157
+ get DELETE(): OperationElement;
1158
+ set DELETE(operation: OperationElement | undefined);
1159
+ get OPTIONS(): OperationElement;
1160
+ set OPTIONS(operation: OperationElement | undefined);
1161
+ get HEAD(): OperationElement;
1162
+ set HEAD(operation: OperationElement | undefined);
1163
+ get PATCH(): OperationElement;
1164
+ set PATCH(operation: OperationElement | undefined);
1165
+ get parameters(): ArrayElement;
1166
+ set parameters(parameters: ArrayElement | undefined);
1167
+ }
1168
+
1169
+ /**
1170
+ * @public
1171
+ */
1172
+ export declare class PathItemParametersElement extends ArrayElement {
1173
+ static primaryClass: string;
1174
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
1175
+ }
1176
+
1177
+ /**
1178
+ * @public
1179
+ */
1180
+ export declare class PathItemParametersVisitor extends ParametersVisitor_base {
1181
+ readonly element: PathItemParametersElement;
1182
+ constructor(options: PathItemParametersVisitorOptions);
1183
+ ArrayElement(arrayElement: ArrayElement): {};
1184
+ }
1185
+
1186
+ /**
1187
+ * @public
1188
+ */
1189
+ export declare interface PathItemParametersVisitorOptions extends SpecificationVisitorOptions, VisitorOptions {
1190
+ }
1191
+
1192
+ /**
1193
+ * @public
1194
+ */
1195
+ export declare class PathItemVisitor extends PathItemVisitor_base {
1196
+ readonly element: PathItemElement;
1197
+ protected readonly specPath: SpecPath<['document', 'objects', 'PathItem']>;
1198
+ constructor(options: PathItemVisitorOptions);
1199
+ ObjectElement(objectElement: ObjectElement): {};
1200
+ }
1201
+
1202
+ declare const PathItemVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
1203
+
1204
+ /**
1205
+ * @public
1206
+ */
1207
+ export declare interface PathItemVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
1208
+ }
1209
+
1210
+ /**
1211
+ * @public
1212
+ */
1213
+ export declare class PathsElement extends ObjectElement {
1214
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1215
+ }
1216
+
1217
+ /**
1218
+ * @public
1219
+ */
1220
+ export declare class PathsVisitor extends PathsVisitor_base {
1221
+ readonly element: PathsElement;
1222
+ protected readonly specPath: SpecPath<['document', 'objects', 'PathItem']>;
1223
+ protected readonly canSupportSpecificationExtensions: true;
1224
+ constructor(options: PathsVisitorOptions);
1225
+ ObjectElement(objectElement: ObjectElement): {};
1226
+ }
1227
+
1228
+ declare const PathsVisitor_base: Class<any[], PatternedFieldsVisitor & FallbackVisitor, typeof PatternedFieldsVisitor & typeof FallbackVisitor>;
1229
+
1230
+ /**
1231
+ * @public
1232
+ */
1233
+ export declare interface PathsVisitorOptions extends PatternedFieldsVisitorOptions, VisitorOptions {
1234
+ }
1235
+
1236
+ /**
1237
+ * @public
1238
+ */
1239
+ export declare class PatternedFieldsVisitor extends SpecificationVisitor {
1240
+ protected specPath: SpecPath;
1241
+ protected ignoredFields: string[];
1242
+ protected fieldPatternPredicate: (value: unknown) => boolean;
1243
+ protected canSupportSpecificationExtensions: boolean;
1244
+ protected specificationExtensionPredicate: (element: MemberElement) => boolean;
1245
+ constructor({ specPath, ignoredFields, fieldPatternPredicate, canSupportSpecificationExtensions, specificationExtensionPredicate, ...rest }: PatternedFieldsVisitorOptions);
1246
+ ObjectElement(objectElement: ObjectElement): {};
1247
+ }
1248
+
1249
+ /**
1250
+ * @public
1251
+ */
1252
+ export declare interface PatternedFieldsVisitorOptions extends SpecificationVisitorOptions {
1253
+ readonly specPath: SpecPath;
1254
+ readonly ignoredFields?: string[];
1255
+ readonly fieldPatternPredicate?: (...args: unknown[]) => boolean;
1256
+ readonly canSupportSpecificationExtensions?: boolean;
1257
+ readonly specificationExtensionPredicate?: typeof isSwaggerExtension;
1258
+ }
1259
+
1260
+ /**
1261
+ * @public
1262
+ */
1263
+ export declare class ProducesVisitor extends FallbackVisitor {
1264
+ element: SwaggerProducesElement;
1265
+ constructor(options: VisitorOptions);
1266
+ ArrayElement(arrayElement: ArrayElement): {};
1267
+ }
1268
+
1269
+ /**
1270
+ * @public
1271
+ */
1272
+ export declare class Reference$RefVisitor extends FallbackVisitor {
1273
+ readonly element: StringElement;
1274
+ StringElement(stringElement: StringElement): {};
1275
+ }
1276
+
1277
+ /**
1278
+ * @public
1279
+ */
1280
+ export declare class ReferenceElement extends ObjectElement {
1281
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1282
+ get $ref(): StringElement | undefined;
1283
+ set $ref($ref: StringElement | undefined);
1284
+ }
1285
+
1286
+ /**
1287
+ * @public
1288
+ */
1289
+ export declare interface ReferenceLikeElement extends ObjectElement {
1290
+ hasKey: (value: '$ref') => true;
1291
+ }
1292
+
1293
+ /**
1294
+ * @public
1295
+ */
1296
+ export declare class ReferenceVisitor extends ReferenceVisitor_base {
1297
+ readonly element: ReferenceElement;
1298
+ protected readonly specPath: SpecPath<['document', 'objects', 'Reference']>;
1299
+ protected readonly canSupportSpecificationExtensions: false;
1300
+ constructor(options: ReferenceVisitorOptions);
1301
+ ObjectElement(objectElement: ObjectElement): {};
1302
+ }
1303
+
1304
+ declare const ReferenceVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
1305
+
1306
+ /**
1307
+ * @public
1308
+ */
1309
+ export declare interface ReferenceVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
1310
+ }
1311
+
1312
+ /**
1313
+ * @public
1314
+ */
1315
+ export declare const refract: <T extends Element_2>(value: unknown, { specPath, plugins }?: {
1316
+ specPath?: string[] | undefined;
1317
+ plugins?: never[] | undefined;
1318
+ }) => T;
1319
+
1320
+ /**
1321
+ * @public
1322
+ */
1323
+ export declare const refractorPluginReplaceEmptyElement: () => () => {
1324
+ visitor: {
1325
+ StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
1326
+ };
1327
+ };
1328
+
1329
+ /**
1330
+ * @public
1331
+ */
1332
+ export declare class ResponseElement extends ObjectElement {
1333
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1334
+ get description(): StringElement | undefined;
1335
+ set description(description: StringElement | undefined);
1336
+ get schema(): SchemaElement | undefined;
1337
+ set schema(schema: SchemaElement | undefined);
1338
+ get headers(): HeadersElement | undefined;
1339
+ set headers(headers: HeadersElement | undefined);
1340
+ get examples(): ExampleElement | undefined;
1341
+ set examples(examples: ExampleElement | undefined);
1342
+ }
1343
+
1344
+ /**
1345
+ * @public
1346
+ */
1347
+ export declare class ResponsesDefaultVisitor extends DefaultVisitor_base {
1348
+ constructor(options: ResponsesDefaultVisitorOptions);
1349
+ ObjectElement(objectElement: ObjectElement): {};
1350
+ }
1351
+
1352
+ /**
1353
+ * @public
1354
+ */
1355
+ export declare interface ResponsesDefaultVisitorOptions extends AlternatingVisitorOptions, VisitorOptions {
1356
+ }
1357
+
1358
+ /**
1359
+ * @public
1360
+ */
1361
+ export declare class ResponsesDefinitionsElement extends ObjectElement {
1362
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1363
+ }
1364
+
1365
+ /**
1366
+ * @public
1367
+ */
1368
+ export declare class ResponsesDefinitionsVisitor extends ResponsesDefinitionsVisitor_base {
1369
+ readonly element: ResponsesDefinitionsElement;
1370
+ protected readonly specPath: SpecPath<['document', 'objects', 'Response']>;
1371
+ constructor(options: ResponsesDefinitionsVisitorOptions);
1372
+ }
1373
+
1374
+ declare const ResponsesDefinitionsVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
1375
+
1376
+ /**
1377
+ * @public
1378
+ */
1379
+ export declare interface ResponsesDefinitionsVisitorOptions extends MapVisitorOptions, VisitorOptions {
1380
+ }
1381
+
1382
+ /**
1383
+ * @public
1384
+ */
1385
+ export declare class ResponsesElement extends ObjectElement {
1386
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1387
+ get default(): ResponseElement | ReferenceElement | undefined;
1388
+ set default(defaultValue: ResponseElement | ReferenceElement | undefined);
1389
+ }
1390
+
1391
+ /**
1392
+ * @public
1393
+ */
1394
+ export declare class ResponsesVisitor extends ResponsesVisitor_base {
1395
+ readonly element: ResponsesElement;
1396
+ protected readonly specPathFixedFields: SpecPath<['document', 'objects', 'Responses']>;
1397
+ protected readonly canSupportSpecificationExtensions: true;
1398
+ protected readonly specPathPatternedFields: SpecPath<[
1399
+ 'document',
1400
+ 'objects',
1401
+ 'Reference'
1402
+ ] | ['document', 'objects', 'Response']>;
1403
+ constructor(options: ResponsesVisitorOptions);
1404
+ ObjectElement(objectElement: ObjectElement): {};
1405
+ }
1406
+
1407
+ declare const ResponsesVisitor_base: Class<any[], MixedFieldsVisitor & FallbackVisitor, typeof MixedFieldsVisitor & typeof FallbackVisitor>;
1408
+
1409
+ /**
1410
+ * @public
1411
+ */
1412
+ export declare interface ResponsesVisitorOptions extends MixedFieldsVisitorOptions, VisitorOptions {
1413
+ }
1414
+
1415
+ /**
1416
+ * @public
1417
+ */
1418
+ export declare class ResponseVisitor extends ResponseVisitor_base {
1419
+ readonly element: ResponseElement;
1420
+ protected readonly specPath: SpecPath<['document', 'objects', 'Response']>;
1421
+ protected readonly canSupportSpecificationExtensions: true;
1422
+ constructor(options: ResponseVisitorOptions);
1423
+ }
1424
+
1425
+ declare const ResponseVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
1426
+
1427
+ /**
1428
+ * @public
1429
+ */
1430
+ export declare interface ResponseVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
1431
+ }
1432
+
1433
+ /**
1434
+ * @public
1435
+ */
1436
+ export declare class SchemaAllOfVisitor extends JSONSchemaAllOfVisitor {
1437
+ ArrayElement(arrayElement: ArrayElement): {};
1438
+ }
1439
+
1440
+ export { SchemaAllOfVisitorOptions }
1441
+
1442
+ /**
1443
+ * @public
1444
+ */
1445
+ export declare class SchemaElement extends JSONSchemaElement {
1446
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1447
+ /**
1448
+ * Core vocabulary
1449
+ *
1450
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
1451
+ */
1452
+ get idProp(): StringElement | undefined;
1453
+ set idProp(idProps: StringElement | undefined);
1454
+ get $schema(): StringElement | undefined;
1455
+ set $schema($schema: StringElement | undefined);
1456
+ /**
1457
+ * Validation keywords for arrays
1458
+ */
1459
+ get additionalItems(): this | JSONReferenceElement | BooleanElement | undefined;
1460
+ set additionalItems(additionalItems: this | JSONReferenceElement | BooleanElement | undefined);
1461
+ /**
1462
+ * Validation keywords for objects
1463
+ */
1464
+ get patternProperties(): ObjectElement | undefined;
1465
+ set patternProperties(patternProperties: ObjectElement | undefined);
1466
+ get dependencies(): ObjectElement | undefined;
1467
+ set dependencies(dependencies: ObjectElement | undefined);
1468
+ /**
1469
+ * Validation keywords for any instance type
1470
+ */
1471
+ get anyOf(): ArrayElement | undefined;
1472
+ set anyOf(anyOf: ArrayElement | undefined);
1473
+ get oneOf(): ArrayElement | undefined;
1474
+ set oneOf(oneOf: ArrayElement | undefined);
1475
+ get not(): this | JSONReferenceElement | undefined;
1476
+ set not(not: this | JSONReferenceElement | undefined);
1477
+ get definitions(): ObjectElement | undefined;
1478
+ set definitions(definitions: ObjectElement | undefined);
1479
+ /**
1480
+ * JSON Hyper-Schema
1481
+ *
1482
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
1483
+ */
1484
+ get base(): StringElement | undefined;
1485
+ set base(base: StringElement | undefined);
1486
+ get links(): ArrayElement | undefined;
1487
+ set links(links: ArrayElement | undefined);
1488
+ get media(): MediaElement | undefined;
1489
+ set media(media: MediaElement | undefined);
1490
+ }
1491
+
1492
+ /**
1493
+ * @public
1494
+ */
1495
+ export declare class SchemaItemsVisitor extends JSONSchemaItemsVisitor {
1496
+ ObjectElement(objectElement: ObjectElement): {};
1497
+ ArrayElement(arrayElement: ArrayElement): {};
1498
+ }
1499
+
1500
+ export { SchemaItemsVisitorOptions }
1501
+
1502
+ /**
1503
+ * @public
1504
+ */
1505
+ export declare class SchemaOrJSONReferenceVisitor extends JSONSchemaOrJSONReferenceVisitor {
1506
+ element: SchemaElement | JSONReferenceElement;
1507
+ ObjectElement(objectElement: ObjectElement): {};
1508
+ }
1509
+
1510
+ export { SchemaOrJSONReferenceVisitorOptions }
1511
+
1512
+ /**
1513
+ * @public
1514
+ */
1515
+ export declare class SchemaPropertiesVisitor extends JSONSchemaPropertiesVisitor {
1516
+ ObjectElement(objectElement: ObjectElement): {};
1517
+ }
1518
+
1519
+ export { SchemaPropertiesVisitorOptions }
1520
+
1521
+ /**
1522
+ * @public
1523
+ */
1524
+ export declare class SchemaVisitor extends SchemaVisitor_base {
1525
+ readonly element: SchemaElement;
1526
+ protected readonly specPath: SpecPath<['document', 'objects', 'Schema']>;
1527
+ protected readonly canSupportSpecificationExtensions: true;
1528
+ constructor(options: SchemaVisitorOptions);
1529
+ }
1530
+
1531
+ declare const SchemaVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
1532
+
1533
+ /**
1534
+ * @public
1535
+ */
1536
+ export declare interface SchemaVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
1537
+ }
1538
+
1539
+ /**
1540
+ * @public
1541
+ */
1542
+ export declare class SchemesVisitor extends FallbackVisitor {
1543
+ element: SwaggerSchemesElement;
1544
+ constructor(options: VisitorOptions);
1545
+ ArrayElement(arrayElement: ArrayElement): {};
1546
+ }
1547
+
1548
+ /**
1549
+ * @public
1550
+ */
1551
+ export declare class ScopesElement extends ObjectElement {
1552
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1553
+ }
1554
+
1555
+ /**
1556
+ * @public
1557
+ */
1558
+ export declare class ScopesVisitor extends ScopesVisitor_base {
1559
+ readonly element: ScopesElement;
1560
+ protected readonly specPath: SpecPath<['value']>;
1561
+ protected readonly canSupportSpecificationExtensions: true;
1562
+ constructor(options: ScopesVisitorOptions);
1563
+ }
1564
+
1565
+ declare const ScopesVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
1566
+
1567
+ /**
1568
+ * @public
1569
+ */
1570
+ export declare interface ScopesVisitorOptions extends MapVisitorOptions, VisitorOptions {
1571
+ }
1572
+
1573
+ /**
1574
+ * @public
1575
+ */
1576
+ export declare class SecurityDefinitionsElement extends ObjectElement {
1577
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1578
+ }
1579
+
1580
+ /**
1581
+ * @public
1582
+ */
1583
+ export declare class SecurityDefinitionsVisitor extends SecurityDefinitionsVisitor_base {
1584
+ readonly element: SecurityDefinitionsElement;
1585
+ protected readonly specPath: SpecPath<['document', 'objects', 'SecurityScheme']>;
1586
+ constructor(options: SecurityDefinitionsVisitorOptions);
1587
+ }
1588
+
1589
+ declare const SecurityDefinitionsVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
1590
+
1591
+ /**
1592
+ * @public
1593
+ */
1594
+ export declare interface SecurityDefinitionsVisitorOptions extends MapVisitorOptions, VisitorOptions {
1595
+ }
1596
+
1597
+ /**
1598
+ * @public
1599
+ */
1600
+ export declare class SecurityRequirementElement extends ObjectElement {
1601
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1602
+ }
1603
+
1604
+ /**
1605
+ * @public
1606
+ */
1607
+ export declare class SecurityRequirementVisitor extends SecurityRequirementVisitor_base {
1608
+ readonly element: SecurityRequirementElement;
1609
+ protected readonly specPath: SpecPath<['value']>;
1610
+ constructor(options: SecurityRequirementVisitorOptions);
1611
+ }
1612
+
1613
+ declare const SecurityRequirementVisitor_base: Class<any[], MapVisitor & FallbackVisitor, typeof MapVisitor & typeof FallbackVisitor>;
1614
+
1615
+ /**
1616
+ * @public
1617
+ */
1618
+ export declare interface SecurityRequirementVisitorOptions extends MapVisitorOptions, VisitorOptions {
1619
+ }
1620
+
1621
+ /**
1622
+ * @public
1623
+ */
1624
+ export declare class SecuritySchemeElement extends ObjectElement {
1625
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
1626
+ get type(): StringElement | undefined;
1627
+ set type(type: StringElement | undefined);
1628
+ get description(): StringElement | undefined;
1629
+ set description(description: StringElement | undefined);
1630
+ get name(): StringElement | undefined;
1631
+ set name(name: StringElement | undefined);
1632
+ get in(): StringElement | undefined;
1633
+ set in(inVal: StringElement | undefined);
1634
+ get flow(): StringElement | undefined;
1635
+ set flow(flow: StringElement | undefined);
1636
+ get authorizationUrl(): StringElement | undefined;
1637
+ set authorizationUrl(authorizationUrl: StringElement | undefined);
1638
+ get tokenUrl(): StringElement | undefined;
1639
+ set tokenUrl(tokenUrl: StringElement | undefined);
1640
+ get scopes(): ArrayElement | undefined;
1641
+ set scopes(scopes: ArrayElement | undefined);
1642
+ }
1643
+
1644
+ /**
1645
+ * @public
1646
+ */
1647
+ export declare class SecuritySchemeVisitor extends SecuritySchemeVisitor_base {
1648
+ readonly element: SecuritySchemeElement;
1649
+ protected readonly specPath: SpecPath<['document', 'objects', 'SecurityScheme']>;
1650
+ protected readonly canSupportSpecificationExtensions: true;
1651
+ constructor(options: SecuritySchemeVisitorOptions);
1652
+ }
1653
+
1654
+ declare const SecuritySchemeVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
1655
+
1656
+ /**
1657
+ * @public
1658
+ */
1659
+ export declare interface SecuritySchemeVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
1660
+ }
1661
+
1662
+ /**
1663
+ * @public
1664
+ */
1665
+ export declare class SecurityVisitor extends SecurityVisitor_base {
1666
+ readonly element: SwaggerSecurityElement;
1667
+ constructor(options: SecurityVisitorOptions);
1668
+ ArrayElement(arrayElement: ArrayElement): {};
1669
+ }
1670
+
1671
+ declare const SecurityVisitor_base: Class<any[], SpecificationVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof FallbackVisitor>;
1672
+
1673
+ declare const SecurityVisitor_base_2: Class<any[], SpecificationVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof FallbackVisitor>;
1674
+
1675
+ /**
1676
+ * @public
1677
+ */
1678
+ export declare interface SecurityVisitorOptions extends SpecificationVisitorOptions, VisitorOptions {
1679
+ }
1680
+
1681
+ /**
1682
+ * @public
1683
+ */
1684
+ export declare class SpecificationExtensionVisitor extends SpecificationVisitor {
1685
+ element: MemberElement;
1686
+ MemberElement(memberElement: MemberElement): {};
1687
+ }
1688
+
1689
+ /**
1690
+ * @public
1691
+ */
1692
+ export declare const specificationObj: {
1693
+ visitors: {
1694
+ value: typeof FallbackVisitor;
1695
+ document: {
1696
+ objects: {
1697
+ JSONReference: {
1698
+ $visitor: JSONReferenceVisitor;
1699
+ fixedFields: {
1700
+ $ref: JSONReference$RefVisitor;
1701
+ };
1702
+ };
1703
+ JSONSchema: {
1704
+ $ref: string;
1705
+ };
1706
+ Swagger: {
1707
+ $visitor: typeof SwaggerVisitor;
1708
+ fixedFields: {
1709
+ swagger: typeof SwaggerVersionVisitor;
1710
+ info: {
1711
+ $ref: string;
1712
+ };
1713
+ host: typeof HostVisitor;
1714
+ basePath: typeof BasePathVisitor;
1715
+ schemes: typeof SchemesVisitor;
1716
+ consumes: typeof ConsumesVisitor;
1717
+ produces: typeof ProducesVisitor;
1718
+ paths: {
1719
+ $ref: string;
1720
+ };
1721
+ definitions: {
1722
+ $ref: string;
1723
+ };
1724
+ parameters: {
1725
+ $ref: string;
1726
+ };
1727
+ responses: {
1728
+ $ref: string;
1729
+ };
1730
+ securityDefinitions: {
1731
+ $ref: string;
1732
+ };
1733
+ security: typeof SecurityVisitor;
1734
+ tags: typeof TagsVisitor;
1735
+ externalDocs: {
1736
+ $ref: string;
1737
+ };
1738
+ };
1739
+ };
1740
+ Info: {
1741
+ $visitor: typeof InfoVisitor;
1742
+ fixedFields: {
1743
+ title: {
1744
+ $ref: string;
1745
+ };
1746
+ description: {
1747
+ $ref: string;
1748
+ };
1749
+ termsOfService: {
1750
+ $ref: string;
1751
+ };
1752
+ contact: {
1753
+ $ref: string;
1754
+ };
1755
+ license: {
1756
+ $ref: string;
1757
+ };
1758
+ version: typeof InfoVersionVisitor;
1759
+ };
1760
+ };
1761
+ Contact: {
1762
+ $visitor: typeof ContactVisitor;
1763
+ fixedFields: {
1764
+ name: {
1765
+ $ref: string;
1766
+ };
1767
+ url: {
1768
+ $ref: string;
1769
+ };
1770
+ email: {
1771
+ $ref: string;
1772
+ };
1773
+ };
1774
+ };
1775
+ License: {
1776
+ $visitor: typeof LicenseVisitor;
1777
+ fixedFields: {
1778
+ name: {
1779
+ $ref: string;
1780
+ };
1781
+ url: {
1782
+ $ref: string;
1783
+ };
1784
+ };
1785
+ };
1786
+ Paths: {
1787
+ $visitor: typeof PathsVisitor;
1788
+ };
1789
+ PathItem: {
1790
+ $visitor: typeof PathItemVisitor;
1791
+ fixedFields: {
1792
+ $ref: typeof PathItem$RefVisitor;
1793
+ get: {
1794
+ $ref: string;
1795
+ };
1796
+ put: {
1797
+ $ref: string;
1798
+ };
1799
+ post: {
1800
+ $ref: string;
1801
+ };
1802
+ delete: {
1803
+ $ref: string;
1804
+ };
1805
+ options: {
1806
+ $ref: string;
1807
+ };
1808
+ head: {
1809
+ $ref: string;
1810
+ };
1811
+ patch: {
1812
+ $ref: string;
1813
+ };
1814
+ parameters: typeof PathItemParametersVisitor;
1815
+ };
1816
+ };
1817
+ Operation: {
1818
+ $visitor: typeof OperationVisitor;
1819
+ fixedFields: {
1820
+ tags: typeof OperationTagsVisitor;
1821
+ summary: {
1822
+ $ref: string;
1823
+ };
1824
+ description: {
1825
+ $ref: string;
1826
+ };
1827
+ externalDocs: {
1828
+ $ref: string;
1829
+ };
1830
+ operationId: {
1831
+ $ref: string;
1832
+ };
1833
+ consumes: typeof OperationConsumesVisitor;
1834
+ produces: typeof OperationProducesVisitor;
1835
+ parameters: typeof OperationParametersVisitor;
1836
+ responses: {
1837
+ $ref: string;
1838
+ };
1839
+ schemes: typeof OperationSchemesVisitor;
1840
+ deprecated: {
1841
+ $ref: string;
1842
+ };
1843
+ security: typeof OperationSecurityVisitor;
1844
+ };
1845
+ };
1846
+ ExternalDocumentation: {
1847
+ $visitor: typeof ExternalDocumentationVisitor;
1848
+ fixedFields: {
1849
+ description: {
1850
+ $ref: string;
1851
+ };
1852
+ url: {
1853
+ $ref: string;
1854
+ };
1855
+ };
1856
+ };
1857
+ Parameter: {
1858
+ $visitor: typeof ParameterVisitor;
1859
+ fixedFields: {
1860
+ name: {
1861
+ $ref: string;
1862
+ };
1863
+ in: {
1864
+ $ref: string;
1865
+ };
1866
+ description: {
1867
+ $ref: string;
1868
+ };
1869
+ required: RequiredVisitor;
1870
+ schema: typeof SchemaOrJSONReferenceVisitor;
1871
+ type: TypeVisitor;
1872
+ format: {
1873
+ $ref: string;
1874
+ };
1875
+ items: {
1876
+ $ref: string;
1877
+ };
1878
+ collectionFormat: {
1879
+ $ref: string;
1880
+ };
1881
+ default: {
1882
+ $ref: string;
1883
+ };
1884
+ maximum: {
1885
+ $ref: string;
1886
+ };
1887
+ exclusiveMaximum: {
1888
+ $ref: string;
1889
+ };
1890
+ minimum: {
1891
+ $ref: string;
1892
+ };
1893
+ exclusiveMinimum: {
1894
+ $ref: string;
1895
+ };
1896
+ maxLength: {
1897
+ $ref: string;
1898
+ };
1899
+ minLength: {
1900
+ $ref: string;
1901
+ };
1902
+ pattern: {
1903
+ $ref: string;
1904
+ };
1905
+ maxItems: {
1906
+ $ref: string;
1907
+ };
1908
+ minItems: {
1909
+ $ref: string;
1910
+ };
1911
+ uniqueItems: {
1912
+ $ref: string;
1913
+ };
1914
+ enum: EnumVisitor;
1915
+ multipleOf: {
1916
+ $ref: string;
1917
+ };
1918
+ };
1919
+ };
1920
+ Items: {
1921
+ $visitor: typeof ItemsVisitor;
1922
+ fixedFields: {
1923
+ type: TypeVisitor;
1924
+ format: {
1925
+ $ref: string;
1926
+ };
1927
+ items: {
1928
+ $ref: string;
1929
+ };
1930
+ collectionFormat: {
1931
+ $ref: string;
1932
+ };
1933
+ default: {
1934
+ $ref: string;
1935
+ };
1936
+ maximum: {
1937
+ $ref: string;
1938
+ };
1939
+ exclusiveMaximum: {
1940
+ $ref: string;
1941
+ };
1942
+ minimum: {
1943
+ $ref: string;
1944
+ };
1945
+ exclusiveMinimum: {
1946
+ $ref: string;
1947
+ };
1948
+ maxLength: {
1949
+ $ref: string;
1950
+ };
1951
+ minLength: {
1952
+ $ref: string;
1953
+ };
1954
+ pattern: {
1955
+ $ref: string;
1956
+ };
1957
+ maxItems: {
1958
+ $ref: string;
1959
+ };
1960
+ minItems: {
1961
+ $ref: string;
1962
+ };
1963
+ uniqueItems: {
1964
+ $ref: string;
1965
+ };
1966
+ enum: EnumVisitor;
1967
+ multipleOf: {
1968
+ $ref: string;
1969
+ };
1970
+ };
1971
+ };
1972
+ Responses: {
1973
+ $visitor: typeof ResponsesVisitor;
1974
+ fixedFields: {
1975
+ default: typeof ResponsesDefaultVisitor;
1976
+ };
1977
+ };
1978
+ Response: {
1979
+ $visitor: typeof ResponseVisitor;
1980
+ fixedFields: {
1981
+ description: {
1982
+ $ref: string;
1983
+ };
1984
+ schema: typeof SchemaOrJSONReferenceVisitor;
1985
+ headers: {
1986
+ $ref: string;
1987
+ };
1988
+ examples: {
1989
+ $ref: string;
1990
+ };
1991
+ };
1992
+ };
1993
+ Headers: {
1994
+ $visitor: typeof HeadersVisitor;
1995
+ };
1996
+ Example: {
1997
+ $visitor: typeof ExampleVisitor;
1998
+ };
1999
+ Header: {
2000
+ $visitor: typeof HeaderVisitor;
2001
+ fixedFields: {
2002
+ description: {
2003
+ $ref: string;
2004
+ };
2005
+ type: TypeVisitor;
2006
+ format: {
2007
+ $ref: string;
2008
+ };
2009
+ items: {
2010
+ $ref: string;
2011
+ };
2012
+ collectionFormat: {
2013
+ $ref: string;
2014
+ };
2015
+ default: {
2016
+ $ref: string;
2017
+ };
2018
+ maximum: {
2019
+ $ref: string;
2020
+ };
2021
+ exclusiveMaximum: {
2022
+ $ref: string;
2023
+ };
2024
+ minimum: {
2025
+ $ref: string;
2026
+ };
2027
+ exclusiveMinimum: {
2028
+ $ref: string;
2029
+ };
2030
+ maxLength: {
2031
+ $ref: string;
2032
+ };
2033
+ minLength: {
2034
+ $ref: string;
2035
+ };
2036
+ pattern: {
2037
+ $ref: string;
2038
+ };
2039
+ maxItems: {
2040
+ $ref: string;
2041
+ };
2042
+ minItems: {
2043
+ $ref: string;
2044
+ };
2045
+ uniqueItems: {
2046
+ $ref: string;
2047
+ };
2048
+ enum: EnumVisitor;
2049
+ multipleOf: {
2050
+ $ref: string;
2051
+ };
2052
+ };
2053
+ };
2054
+ Tag: {
2055
+ $visitor: typeof TagVisitor;
2056
+ fixedFields: {
2057
+ name: {
2058
+ $ref: string;
2059
+ };
2060
+ description: {
2061
+ $ref: string;
2062
+ };
2063
+ externalDocs: {
2064
+ $ref: string;
2065
+ };
2066
+ };
2067
+ };
2068
+ Reference: {
2069
+ $visitor: typeof ReferenceVisitor;
2070
+ fixedFields: {
2071
+ $ref: typeof Reference$RefVisitor;
2072
+ };
2073
+ };
2074
+ Schema: {
2075
+ $visitor: typeof SchemaVisitor;
2076
+ fixedFields: {
2077
+ format: {
2078
+ $ref: string;
2079
+ };
2080
+ title: {
2081
+ $ref: string;
2082
+ };
2083
+ description: {
2084
+ $ref: string;
2085
+ };
2086
+ default: {
2087
+ $ref: string;
2088
+ };
2089
+ multipleOf: {
2090
+ $ref: string;
2091
+ };
2092
+ maximum: {
2093
+ $ref: string;
2094
+ };
2095
+ exclusiveMaximum: {
2096
+ $ref: string;
2097
+ };
2098
+ minimum: {
2099
+ $ref: string;
2100
+ };
2101
+ exclusiveMinimum: {
2102
+ $ref: string;
2103
+ };
2104
+ maxLength: {
2105
+ $ref: string;
2106
+ };
2107
+ minLength: {
2108
+ $ref: string;
2109
+ };
2110
+ pattern: {
2111
+ $ref: string;
2112
+ };
2113
+ maxItems: {
2114
+ $ref: string;
2115
+ };
2116
+ minItems: {
2117
+ $ref: string;
2118
+ };
2119
+ uniqueItems: {
2120
+ $ref: string;
2121
+ };
2122
+ maxProperties: {
2123
+ $ref: string;
2124
+ };
2125
+ minProperties: {
2126
+ $ref: string;
2127
+ };
2128
+ required: RequiredVisitor;
2129
+ enum: EnumVisitor;
2130
+ type: TypeVisitor;
2131
+ readOnly: {
2132
+ $ref: string;
2133
+ };
2134
+ items: typeof SchemaItemsVisitor;
2135
+ allOf: typeof SchemaAllOfVisitor;
2136
+ properties: typeof SchemaPropertiesVisitor;
2137
+ additionalProperties: typeof SchemaOrJSONReferenceVisitor;
2138
+ discriminator: {
2139
+ $ref: string;
2140
+ };
2141
+ xml: {
2142
+ $ref: string;
2143
+ };
2144
+ externalDocs: {
2145
+ $ref: string;
2146
+ };
2147
+ example: {
2148
+ $ref: string;
2149
+ };
2150
+ };
2151
+ };
2152
+ XML: {
2153
+ $visitor: typeof XmlVisitor;
2154
+ fixedFields: {
2155
+ name: {
2156
+ $ref: string;
2157
+ };
2158
+ namespace: {
2159
+ $ref: string;
2160
+ };
2161
+ prefix: {
2162
+ $ref: string;
2163
+ };
2164
+ attribute: {
2165
+ $ref: string;
2166
+ };
2167
+ wrapped: {
2168
+ $ref: string;
2169
+ };
2170
+ };
2171
+ };
2172
+ Definitions: {
2173
+ $visitor: typeof DefinitionsVisitor;
2174
+ };
2175
+ ParametersDefinitions: {
2176
+ $visitor: typeof ParametersDefinitionsVisitor;
2177
+ };
2178
+ ResponsesDefinitions: {
2179
+ $visitor: typeof ResponsesDefinitionsVisitor;
2180
+ };
2181
+ SecurityDefinitions: {
2182
+ $visitor: typeof SecurityDefinitionsVisitor;
2183
+ };
2184
+ SecurityScheme: {
2185
+ $visitor: typeof SecuritySchemeVisitor;
2186
+ fixedFields: {
2187
+ type: {
2188
+ $ref: string;
2189
+ };
2190
+ description: {
2191
+ $ref: string;
2192
+ };
2193
+ name: {
2194
+ $ref: string;
2195
+ };
2196
+ in: {
2197
+ $ref: string;
2198
+ };
2199
+ flow: {
2200
+ $ref: string;
2201
+ };
2202
+ authorizationUrl: {
2203
+ $ref: string;
2204
+ };
2205
+ token: {
2206
+ $ref: string;
2207
+ };
2208
+ scopes: {
2209
+ $ref: string;
2210
+ };
2211
+ };
2212
+ };
2213
+ Scopes: {
2214
+ $visitor: typeof ScopesVisitor;
2215
+ };
2216
+ SecurityRequirement: {
2217
+ $visitor: typeof SecurityRequirementVisitor;
2218
+ };
2219
+ };
2220
+ extension: {
2221
+ $visitor: typeof SpecificationExtensionVisitor;
2222
+ };
2223
+ };
2224
+ };
2225
+ };
2226
+
2227
+ /**
2228
+ * @public
2229
+ */
2230
+ export declare class SpecificationVisitor extends Visitor {
2231
+ protected readonly specObj: typeof specificationObj;
2232
+ protected readonly passingOptionsNames: string[];
2233
+ constructor({ specObj, ...rest }: SpecificationVisitorOptions);
2234
+ retrievePassingOptions(): Pick<this, keyof this>;
2235
+ retrieveFixedFields(specPath: string[]): string[];
2236
+ retrieveVisitor(specPath: string[]): unknown;
2237
+ retrieveVisitorInstance(specPath: string[], options?: {}): Visitor;
2238
+ toRefractedElement(specPath: string[], element: any, options?: {}): any;
2239
+ }
2240
+
2241
+ /**
2242
+ * This is a base Type for every visitor that does
2243
+ * internal look-ups to retrieve other child visitors.
2244
+ * @public
2245
+ */
2246
+ export declare interface SpecificationVisitorOptions extends VisitorOptions {
2247
+ readonly specObj: typeof specificationObj;
2248
+ }
2249
+
2250
+ /**
2251
+ * @public
2252
+ */
2253
+ export declare type SpecPath<T = string[]> = (element: unknown) => T;
2254
+
2255
+ /**
2256
+ * @public
2257
+ */
2258
+ export declare class SwaggerConsumesElement extends ArrayElement {
2259
+ static primaryClass: string;
2260
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
2261
+ }
2262
+
2263
+ /**
2264
+ * @public
2265
+ */
2266
+ export declare class SwaggerElement extends ObjectElement {
2267
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
2268
+ get swagger(): SwaggerVersionElement | undefined;
2269
+ set swagger(swagger: SwaggerVersionElement | undefined);
2270
+ get info(): InfoElement | undefined;
2271
+ set info(info: InfoElement | undefined);
2272
+ get host(): StringElement | undefined;
2273
+ set host(host: StringElement | undefined);
2274
+ get basePath(): StringElement | undefined;
2275
+ set basePath(basePath: StringElement | undefined);
2276
+ get schemes(): ArrayElement | undefined;
2277
+ set schemes(schemes: ArrayElement | undefined);
2278
+ get consumes(): ArrayElement | undefined;
2279
+ set consumes(consumes: ArrayElement | undefined);
2280
+ get produces(): ArrayElement | undefined;
2281
+ set produces(produces: ArrayElement | undefined);
2282
+ get paths(): PathsElement | undefined;
2283
+ set paths(paths: PathsElement | undefined);
2284
+ get definitions(): DefinitionsElement | undefined;
2285
+ set definitions(definitions: DefinitionsElement | undefined);
2286
+ get parameters(): ParametersDefinitionsElement | undefined;
2287
+ set parameters(parameters: ParametersDefinitionsElement | undefined);
2288
+ get responses(): ResponsesDefinitionsElement | undefined;
2289
+ set responses(responses: ResponsesDefinitionsElement | undefined);
2290
+ get securityDefinitions(): SecurityDefinitionsElement | undefined;
2291
+ set securityDefinitions(securityDefinitions: SecurityDefinitionsElement | undefined);
2292
+ get security(): ArrayElement | undefined;
2293
+ set security(security: ArrayElement | undefined);
2294
+ get tags(): ArrayElement | undefined;
2295
+ set tags(tags: ArrayElement | undefined);
2296
+ get externalDocs(): ExternalDocumentationElement | undefined;
2297
+ set externalDocs(externalDocs: ExternalDocumentationElement | undefined);
2298
+ }
2299
+
2300
+ /**
2301
+ * @public
2302
+ */
2303
+ export declare class SwaggerProducesElement extends ArrayElement {
2304
+ static primaryClass: string;
2305
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
2306
+ }
2307
+
2308
+ /**
2309
+ * @public
2310
+ */
2311
+ export declare class SwaggerSchemesElement extends ArrayElement {
2312
+ static primaryClass: string;
2313
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
2314
+ }
2315
+
2316
+ /**
2317
+ * @public
2318
+ */
2319
+ export declare class SwaggerSecurityElement extends ArrayElement {
2320
+ static primaryClass: string;
2321
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
2322
+ }
2323
+
2324
+ /**
2325
+ * @public
2326
+ */
2327
+ export declare class SwaggerTagsElement extends ArrayElement {
2328
+ static primaryClass: string;
2329
+ constructor(content?: Array<unknown>, meta?: Meta, attributes?: Attributes);
2330
+ }
2331
+
2332
+ /**
2333
+ * @public
2334
+ */
2335
+ export declare class SwaggerVersionElement extends StringElement {
2336
+ constructor(content?: string, meta?: Meta, attributes?: Attributes);
2337
+ }
2338
+
2339
+ /**
2340
+ * @public
2341
+ */
2342
+ export declare class SwaggerVersionVisitor extends SwaggerVisitor_base_2 {
2343
+ element: SwaggerVersionElement;
2344
+ StringElement(stringElement: StringElement): {};
2345
+ }
2346
+
2347
+ /**
2348
+ * @public
2349
+ */
2350
+ export declare interface SwaggerVersionVisitorOptions extends SpecificationVisitorOptions, VisitorOptions {
2351
+ }
2352
+
2353
+ /**
2354
+ * @public
2355
+ */
2356
+ export declare class SwaggerVisitor extends SwaggerVisitor_base {
2357
+ readonly element: SwaggerElement;
2358
+ protected readonly specPath: SpecPath<['document', 'objects', 'Swagger']>;
2359
+ protected readonly canSupportSpecificationExtensions: true;
2360
+ constructor(options: SwaggerVisitorOptions);
2361
+ }
2362
+
2363
+ declare const SwaggerVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
2364
+
2365
+ declare const SwaggerVisitor_base_2: Class<any[], SpecificationVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof FallbackVisitor>;
2366
+
2367
+ /**
2368
+ * @public
2369
+ */
2370
+ export declare interface SwaggerVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
2371
+ }
2372
+
2373
+ /**
2374
+ * @public
2375
+ */
2376
+ export declare class TagElement extends ObjectElement {
2377
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
2378
+ get name(): StringElement | undefined;
2379
+ set name(name: StringElement | undefined);
2380
+ get description(): StringElement | undefined;
2381
+ set description(description: StringElement | undefined);
2382
+ get externalDocs(): ExternalDocumentationElement | undefined;
2383
+ set externalDocs(externalDocs: ExternalDocumentationElement | undefined);
2384
+ }
2385
+
2386
+ /**
2387
+ * @public
2388
+ */
2389
+ export declare class TagsVisitor extends TagsVisitor_base {
2390
+ readonly element: SwaggerTagsElement;
2391
+ constructor(options: TagsVisitorOptions);
2392
+ ArrayElement(arrayElement: ArrayElement): {};
2393
+ }
2394
+
2395
+ declare const TagsVisitor_base: Class<any[], SpecificationVisitor & FallbackVisitor, typeof SpecificationVisitor & typeof FallbackVisitor>;
2396
+
2397
+ /**
2398
+ * @public
2399
+ */
2400
+ export declare interface TagsVisitorOptions extends SpecificationVisitorOptions, VisitorOptions {
2401
+ }
2402
+
2403
+ /**
2404
+ * @public
2405
+ */
2406
+ export declare class TagVisitor extends TagVisitor_base {
2407
+ readonly element: TagElement;
2408
+ protected readonly specPath: SpecPath<['document', 'objects', 'Tag']>;
2409
+ protected readonly canSupportSpecificationExtensions: true;
2410
+ constructor(options: TagVisitorOptions);
2411
+ }
2412
+
2413
+ declare const TagVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
2414
+
2415
+ /**
2416
+ * @public
2417
+ */
2418
+ export declare interface TagVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
2419
+ }
2420
+
2421
+ /**
2422
+ * @public
2423
+ */
2424
+ export declare class Visitor {
2425
+ element: Element_2;
2426
+ constructor(options?: VisitorOptions);
2427
+ copyMetaAndAttributes(from: Element_2, to: Element_2): void;
2428
+ }
2429
+
2430
+ /**
2431
+ * @public
2432
+ */
2433
+ declare interface VisitorOptions {
2434
+ }
2435
+ export { VisitorOptions as BasePathVisitorOptions }
2436
+ export { VisitorOptions as ConsumesVisitorOptions }
2437
+ export { VisitorOptions as FallbackVisitorOptions }
2438
+ export { VisitorOptions as HostVisitorOptions }
2439
+ export { VisitorOptions as InfoVersionVisitorOptions }
2440
+ export { VisitorOptions as OperationConsumesVisitorOptions }
2441
+ export { VisitorOptions as OperationProducesVisitorOptions }
2442
+ export { VisitorOptions as OperationSchemesVisitorOptions }
2443
+ export { VisitorOptions as OperationTagsVisitorOptions }
2444
+ export { VisitorOptions as PathItem$RefVisitorOptions }
2445
+ export { VisitorOptions as ProducesVisitorOptions }
2446
+ export { VisitorOptions as Reference$RefVisitorOptions }
2447
+ export { VisitorOptions as SchemesVisitorOptions }
2448
+ export { VisitorOptions }
2449
+
2450
+ /**
2451
+ * @public
2452
+ */
2453
+ export declare class XmlElement extends ObjectElement {
2454
+ constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
2455
+ get name(): StringElement | undefined;
2456
+ set name(name: StringElement | undefined);
2457
+ get namespace(): StringElement | undefined;
2458
+ set namespace(namespace: StringElement | undefined);
2459
+ get prefix(): StringElement | undefined;
2460
+ set prefix(prefix: StringElement | undefined);
2461
+ get attribute(): BooleanElement | undefined;
2462
+ set attribute(attribute: BooleanElement | undefined);
2463
+ get wrapped(): BooleanElement | undefined;
2464
+ set wrapped(wrapped: BooleanElement | undefined);
2465
+ }
2466
+
2467
+ /**
2468
+ * @public
2469
+ */
2470
+ export declare class XmlVisitor extends XmlVisitor_base {
2471
+ readonly element: XmlElement;
2472
+ protected readonly specPath: SpecPath<['document', 'objects', 'XML']>;
2473
+ protected readonly canSupportSpecificationExtensions: true;
2474
+ constructor(options: XmlVisitorOptions);
2475
+ }
2476
+
2477
+ declare const XmlVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
2478
+
2479
+ /**
2480
+ * @public
2481
+ */
2482
+ export declare interface XmlVisitorOptions extends FixedFieldsVisitorOptions, VisitorOptions {
2483
+ }
2484
+
2485
+ export { }