@speclynx/apidom-ns-openapi-2 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/apidom-ns-openapi-2.browser.js +49 -49
  3. package/dist/apidom-ns-openapi-2.browser.min.js +1 -1
  4. package/package.json +7 -7
  5. package/src/elements/Contact.cjs +0 -33
  6. package/src/elements/Contact.mjs +0 -30
  7. package/src/elements/Definitions.cjs +0 -15
  8. package/src/elements/Definitions.mjs +0 -12
  9. package/src/elements/Example.cjs +0 -15
  10. package/src/elements/Example.mjs +0 -12
  11. package/src/elements/ExternalDocumentation.cjs +0 -27
  12. package/src/elements/ExternalDocumentation.mjs +0 -24
  13. package/src/elements/Header.cjs +0 -185
  14. package/src/elements/Header.mjs +0 -182
  15. package/src/elements/Headers.cjs +0 -15
  16. package/src/elements/Headers.mjs +0 -12
  17. package/src/elements/Info.cjs +0 -52
  18. package/src/elements/Info.mjs +0 -48
  19. package/src/elements/Items.cjs +0 -190
  20. package/src/elements/Items.mjs +0 -187
  21. package/src/elements/License.cjs +0 -27
  22. package/src/elements/License.mjs +0 -24
  23. package/src/elements/Operation.cjs +0 -78
  24. package/src/elements/Operation.mjs +0 -74
  25. package/src/elements/Parameter.cjs +0 -230
  26. package/src/elements/Parameter.mjs +0 -226
  27. package/src/elements/ParametersDefinitions.cjs +0 -15
  28. package/src/elements/ParametersDefinitions.mjs +0 -12
  29. package/src/elements/PathItem.cjs +0 -69
  30. package/src/elements/PathItem.mjs +0 -65
  31. package/src/elements/Paths.cjs +0 -15
  32. package/src/elements/Paths.mjs +0 -12
  33. package/src/elements/Reference.cjs +0 -22
  34. package/src/elements/Reference.mjs +0 -19
  35. package/src/elements/Response.cjs +0 -39
  36. package/src/elements/Response.mjs +0 -35
  37. package/src/elements/Responses.cjs +0 -21
  38. package/src/elements/Responses.mjs +0 -17
  39. package/src/elements/ResponsesDefinitions.cjs +0 -15
  40. package/src/elements/ResponsesDefinitions.mjs +0 -12
  41. package/src/elements/Schema.cjs +0 -151
  42. package/src/elements/Schema.mjs +0 -147
  43. package/src/elements/Scopes.cjs +0 -15
  44. package/src/elements/Scopes.mjs +0 -12
  45. package/src/elements/SecurityDefinitions.cjs +0 -15
  46. package/src/elements/SecurityDefinitions.mjs +0 -12
  47. package/src/elements/SecurityRequirement.cjs +0 -15
  48. package/src/elements/SecurityRequirement.mjs +0 -12
  49. package/src/elements/SecurityScheme.cjs +0 -63
  50. package/src/elements/SecurityScheme.mjs +0 -60
  51. package/src/elements/Swagger.cjs +0 -106
  52. package/src/elements/Swagger.mjs +0 -102
  53. package/src/elements/SwaggerVersion.cjs +0 -17
  54. package/src/elements/SwaggerVersion.mjs +0 -14
  55. package/src/elements/Tag.cjs +0 -33
  56. package/src/elements/Tag.mjs +0 -29
  57. package/src/elements/Xml.cjs +0 -45
  58. package/src/elements/Xml.mjs +0 -42
  59. package/src/elements/nces/OperationConsumes.cjs +0 -16
  60. package/src/elements/nces/OperationConsumes.mjs +0 -13
  61. package/src/elements/nces/OperationParameters.cjs +0 -17
  62. package/src/elements/nces/OperationParameters.mjs +0 -14
  63. package/src/elements/nces/OperationProduces.cjs +0 -16
  64. package/src/elements/nces/OperationProduces.mjs +0 -13
  65. package/src/elements/nces/OperationSchemes.cjs +0 -16
  66. package/src/elements/nces/OperationSchemes.mjs +0 -13
  67. package/src/elements/nces/OperationSecurity.cjs +0 -17
  68. package/src/elements/nces/OperationSecurity.mjs +0 -14
  69. package/src/elements/nces/OperationTags.cjs +0 -17
  70. package/src/elements/nces/OperationTags.mjs +0 -14
  71. package/src/elements/nces/PathItemParameters.cjs +0 -17
  72. package/src/elements/nces/PathItemParameters.mjs +0 -14
  73. package/src/elements/nces/SwaggerConsumes.cjs +0 -16
  74. package/src/elements/nces/SwaggerConsumes.mjs +0 -13
  75. package/src/elements/nces/SwaggerProduces.cjs +0 -16
  76. package/src/elements/nces/SwaggerProduces.mjs +0 -13
  77. package/src/elements/nces/SwaggerSchemes.cjs +0 -16
  78. package/src/elements/nces/SwaggerSchemes.mjs +0 -13
  79. package/src/elements/nces/SwaggerSecurity.cjs +0 -17
  80. package/src/elements/nces/SwaggerSecurity.mjs +0 -14
  81. package/src/elements/nces/SwaggerTags.cjs +0 -16
  82. package/src/elements/nces/SwaggerTags.mjs +0 -13
  83. package/src/index.cjs +0 -156
  84. package/src/index.mjs +0 -32
  85. package/src/media-types.cjs +0 -34
  86. package/src/media-types.mjs +0 -30
  87. package/src/namespace.cjs +0 -71
  88. package/src/namespace.mjs +0 -66
  89. package/src/predicates.cjs +0 -193
  90. package/src/predicates.mjs +0 -161
  91. package/src/refractor/index.cjs +0 -316
  92. package/src/refractor/index.mjs +0 -283
  93. package/src/refractor/inspect.cjs +0 -157
  94. package/src/refractor/inspect.mjs +0 -126
  95. package/src/refractor/plugins/replace-empty-element.cjs +0 -366
  96. package/src/refractor/plugins/replace-empty-element.mjs +0 -358
  97. package/src/refractor/predicates.cjs +0 -26
  98. package/src/refractor/predicates.mjs +0 -21
  99. package/src/refractor/specification.cjs +0 -519
  100. package/src/refractor/specification.mjs +0 -513
  101. package/src/refractor/toolbox.cjs +0 -28
  102. package/src/refractor/toolbox.mjs +0 -21
  103. package/src/refractor/visitors/FallbackVisitor.cjs +0 -24
  104. package/src/refractor/visitors/FallbackVisitor.mjs +0 -18
  105. package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +0 -18
  106. package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +0 -13
  107. package/src/refractor/visitors/SpecificationVisitor.cjs +0 -75
  108. package/src/refractor/visitors/SpecificationVisitor.mjs +0 -69
  109. package/src/refractor/visitors/Visitor.cjs +0 -36
  110. package/src/refractor/visitors/Visitor.mjs +0 -33
  111. package/src/refractor/visitors/generics/AlternatingVisitor.cjs +0 -42
  112. package/src/refractor/visitors/generics/AlternatingVisitor.mjs +0 -35
  113. package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +0 -73
  114. package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +0 -66
  115. package/src/refractor/visitors/generics/MapVisitor.cjs +0 -21
  116. package/src/refractor/visitors/generics/MapVisitor.mjs +0 -15
  117. package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +0 -67
  118. package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +0 -61
  119. package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +0 -72
  120. package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +0 -66
  121. package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +0 -16
  122. package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +0 -11
  123. package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +0 -23
  124. package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +0 -18
  125. package/src/refractor/visitors/open-api-2/HostVisitor.cjs +0 -16
  126. package/src/refractor/visitors/open-api-2/HostVisitor.mjs +0 -11
  127. package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +0 -23
  128. package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +0 -18
  129. package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +0 -23
  130. package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +0 -18
  131. package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +0 -27
  132. package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +0 -22
  133. package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +0 -21
  134. package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +0 -16
  135. package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +0 -27
  136. package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +0 -22
  137. package/src/refractor/visitors/open-api-2/bases.cjs +0 -72
  138. package/src/refractor/visitors/open-api-2/bases.mjs +0 -67
  139. package/src/refractor/visitors/open-api-2/contact/index.cjs +0 -20
  140. package/src/refractor/visitors/open-api-2/contact/index.mjs +0 -15
  141. package/src/refractor/visitors/open-api-2/definitions/index.cjs +0 -31
  142. package/src/refractor/visitors/open-api-2/definitions/index.mjs +0 -26
  143. package/src/refractor/visitors/open-api-2/example/index.cjs +0 -20
  144. package/src/refractor/visitors/open-api-2/example/index.mjs +0 -15
  145. package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +0 -20
  146. package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +0 -15
  147. package/src/refractor/visitors/open-api-2/header/index.cjs +0 -20
  148. package/src/refractor/visitors/open-api-2/header/index.mjs +0 -15
  149. package/src/refractor/visitors/open-api-2/headers/index.cjs +0 -20
  150. package/src/refractor/visitors/open-api-2/headers/index.mjs +0 -15
  151. package/src/refractor/visitors/open-api-2/index.cjs +0 -21
  152. package/src/refractor/visitors/open-api-2/index.mjs +0 -16
  153. package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +0 -17
  154. package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +0 -12
  155. package/src/refractor/visitors/open-api-2/info/index.cjs +0 -20
  156. package/src/refractor/visitors/open-api-2/info/index.mjs +0 -15
  157. package/src/refractor/visitors/open-api-2/items/index.cjs +0 -22
  158. package/src/refractor/visitors/open-api-2/items/index.mjs +0 -17
  159. package/src/refractor/visitors/open-api-2/license/index.cjs +0 -20
  160. package/src/refractor/visitors/open-api-2/license/index.mjs +0 -15
  161. package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +0 -23
  162. package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +0 -18
  163. package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +0 -32
  164. package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +0 -27
  165. package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +0 -23
  166. package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +0 -18
  167. package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +0 -23
  168. package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +0 -18
  169. package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +0 -27
  170. package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +0 -22
  171. package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +0 -23
  172. package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +0 -18
  173. package/src/refractor/visitors/open-api-2/operation/index.cjs +0 -19
  174. package/src/refractor/visitors/open-api-2/operation/index.mjs +0 -14
  175. package/src/refractor/visitors/open-api-2/parameter/index.cjs +0 -20
  176. package/src/refractor/visitors/open-api-2/parameter/index.mjs +0 -15
  177. package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +0 -19
  178. package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +0 -14
  179. package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +0 -16
  180. package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +0 -11
  181. package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +0 -32
  182. package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +0 -27
  183. package/src/refractor/visitors/open-api-2/path-item/index.cjs +0 -40
  184. package/src/refractor/visitors/open-api-2/path-item/index.mjs +0 -35
  185. package/src/refractor/visitors/open-api-2/paths/index.cjs +0 -37
  186. package/src/refractor/visitors/open-api-2/paths/index.mjs +0 -32
  187. package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +0 -16
  188. package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +0 -11
  189. package/src/refractor/visitors/open-api-2/reference/index.cjs +0 -29
  190. package/src/refractor/visitors/open-api-2/reference/index.mjs +0 -24
  191. package/src/refractor/visitors/open-api-2/response/index.cjs +0 -20
  192. package/src/refractor/visitors/open-api-2/response/index.mjs +0 -15
  193. package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +0 -36
  194. package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +0 -31
  195. package/src/refractor/visitors/open-api-2/responses/index.cjs +0 -46
  196. package/src/refractor/visitors/open-api-2/responses/index.mjs +0 -41
  197. package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +0 -19
  198. package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +0 -14
  199. package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +0 -24
  200. package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +0 -20
  201. package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +0 -26
  202. package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +0 -23
  203. package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +0 -24
  204. package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +0 -20
  205. package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +0 -23
  206. package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +0 -19
  207. package/src/refractor/visitors/open-api-2/schema/index.cjs +0 -20
  208. package/src/refractor/visitors/open-api-2/schema/index.mjs +0 -15
  209. package/src/refractor/visitors/open-api-2/scopes/index.cjs +0 -20
  210. package/src/refractor/visitors/open-api-2/scopes/index.mjs +0 -15
  211. package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +0 -20
  212. package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +0 -15
  213. package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +0 -19
  214. package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +0 -14
  215. package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +0 -20
  216. package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +0 -15
  217. package/src/refractor/visitors/open-api-2/tag/index.cjs +0 -20
  218. package/src/refractor/visitors/open-api-2/tag/index.mjs +0 -15
  219. package/src/refractor/visitors/open-api-2/xml/index.cjs +0 -20
  220. package/src/refractor/visitors/open-api-2/xml/index.mjs +0 -15
@@ -1,230 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _apidomError = require("@speclynx/apidom-error");
6
- var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-4");
7
- /**
8
- * @public
9
- */
10
- class Parameter extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
11
- constructor(content, meta, attributes) {
12
- super(content, meta, attributes);
13
- this.element = 'parameter';
14
- this.classes.push('json-schema-draft-4');
15
- }
16
-
17
- /**
18
- * Core vocabulary
19
- *
20
- * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
21
- */
22
-
23
- get idField() {
24
- throw new _apidomError.UnsupportedOperationError('idField getter in Parameter class is not not supported.');
25
- }
26
- set idField(idField) {
27
- throw new _apidomError.UnsupportedOperationError('idField setter in Parameter class is not not supported.');
28
- }
29
- get $schema() {
30
- throw new _apidomError.UnsupportedOperationError('$schema getter in Parameter class is not not supported.');
31
- }
32
- set $schema($schema) {
33
- throw new _apidomError.UnsupportedOperationError('$schema setter in Parameter class is not not supported.');
34
- }
35
-
36
- /**
37
- * Validation keywords for arrays
38
- */
39
-
40
- get additionalItems() {
41
- throw new _apidomError.UnsupportedOperationError('additionalItems getter in Parameter class is not not supported.');
42
- }
43
- set additionalItems(additionalItems) {
44
- throw new _apidomError.UnsupportedOperationError('additionalItems setter in Parameter class is not not supported.');
45
- }
46
- get itemsField() {
47
- return this.get('items');
48
- }
49
- set itemsField(items) {
50
- this.set('items', items);
51
- }
52
-
53
- /**
54
- * Validation keywords for objects
55
- */
56
-
57
- get maxProperties() {
58
- throw new _apidomError.UnsupportedOperationError('maxProperties getter in Parameter class is not not supported.');
59
- }
60
- set maxProperties(maxProperties) {
61
- throw new _apidomError.UnsupportedOperationError('maxProperties setter in Parameter class is not not supported.');
62
- }
63
- get minProperties() {
64
- throw new _apidomError.UnsupportedOperationError('minProperties getter in Parameter class is not not supported.');
65
- }
66
- set minProperties(minProperties) {
67
- throw new _apidomError.UnsupportedOperationError('minProperties setter in Parameter class is not not supported.');
68
- }
69
-
70
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
- get required() {
72
- return this.get('required');
73
- }
74
-
75
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
76
- set required(required) {
77
- this.set('required', required);
78
- }
79
- get properties() {
80
- throw new _apidomError.UnsupportedOperationError('properties getter in Parameter class is not not supported.');
81
- }
82
- set properties(properties) {
83
- throw new _apidomError.UnsupportedOperationError('properties setter in Parameter class is not not supported.');
84
- }
85
- get additionalProperties() {
86
- throw new _apidomError.UnsupportedOperationError('additionalProperties getter in Parameter class is not not supported.');
87
- }
88
- set additionalProperties(additionalProperties) {
89
- throw new _apidomError.UnsupportedOperationError('additionalProperties setter in Parameter class is not not supported.');
90
- }
91
- get patternProperties() {
92
- throw new _apidomError.UnsupportedOperationError('patternProperties getter in Parameter class is not not supported.');
93
- }
94
- set patternProperties(patternProperties) {
95
- throw new _apidomError.UnsupportedOperationError('patternProperties setter in Parameter class is not not supported.');
96
- }
97
- get dependencies() {
98
- throw new _apidomError.UnsupportedOperationError('dependencies getter in Parameter class is not not supported.');
99
- }
100
- set dependencies(dependencies) {
101
- throw new _apidomError.UnsupportedOperationError('dependencies setter in Parameter class is not not supported.');
102
- }
103
-
104
- /**
105
- * Validation keywords for any instance type
106
- */
107
-
108
- get type() {
109
- return this.get('type');
110
- }
111
- set type(type) {
112
- this.set('type', type);
113
- }
114
- get allOf() {
115
- throw new _apidomError.UnsupportedOperationError('allOf getter in Parameter class is not not supported.');
116
- }
117
- set allOf(allOf) {
118
- throw new _apidomError.UnsupportedOperationError('allOf setter in Parameter class is not not supported.');
119
- }
120
- get anyOf() {
121
- throw new _apidomError.UnsupportedOperationError('anyOf getter in Parameter class is not not supported.');
122
- }
123
- set anyOf(anyOf) {
124
- throw new _apidomError.UnsupportedOperationError('anyOf setter in Parameter class is not not supported.');
125
- }
126
- get oneOf() {
127
- throw new _apidomError.UnsupportedOperationError('oneOf getter in Parameter class is not not supported.');
128
- }
129
- set oneOf(oneOf) {
130
- throw new _apidomError.UnsupportedOperationError('oneOf setter in Parameter class is not not supported.');
131
- }
132
- get not() {
133
- throw new _apidomError.UnsupportedOperationError('not getter in Parameter class is not not supported.');
134
- }
135
- set not(not) {
136
- throw new _apidomError.UnsupportedOperationError('not setter in Parameter class is not not supported.');
137
- }
138
- get definitions() {
139
- throw new _apidomError.UnsupportedOperationError('definitions getter in Parameter class is not not supported.');
140
- }
141
- set definitions(definitions) {
142
- throw new _apidomError.UnsupportedOperationError('definitions setter in Parameter class is not not supported.');
143
- }
144
-
145
- /**
146
- * Metadata keywords
147
- *
148
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
149
- */
150
-
151
- get title() {
152
- throw new _apidomError.UnsupportedOperationError('title getter in Parameter class is not not supported.');
153
- }
154
- set title(title) {
155
- throw new _apidomError.UnsupportedOperationError('title setter in Parameter class is not not supported.');
156
- }
157
- get description() {
158
- return this.get('description');
159
- }
160
- set description(description) {
161
- this.set('description', description);
162
- }
163
-
164
- /**
165
- * Semantic validation with "format"
166
- *
167
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
168
- */
169
-
170
- get format() {
171
- return this.get('format');
172
- }
173
- set format(format) {
174
- this.set('format', format);
175
- }
176
-
177
- /**
178
- * JSON Hyper-Schema
179
- *
180
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
181
- */
182
-
183
- get base() {
184
- throw new _apidomError.UnsupportedOperationError('base getter in Parameter class is not not supported.');
185
- }
186
- set base(base) {
187
- throw new _apidomError.UnsupportedOperationError('base setter in Parameter class is not not supported.');
188
- }
189
- get linksField() {
190
- throw new _apidomError.UnsupportedOperationError('linksField getter in Parameter class is not not supported.');
191
- }
192
- set linksField(links) {
193
- throw new _apidomError.UnsupportedOperationError('linksField setter in Parameter class is not not supported.');
194
- }
195
- get media() {
196
- throw new _apidomError.UnsupportedOperationError('media getter in Parameter class is not not supported.');
197
- }
198
- set media(media) {
199
- throw new _apidomError.UnsupportedOperationError('media setter in Parameter class is not not supported.');
200
- }
201
- get readOnly() {
202
- throw new _apidomError.UnsupportedOperationError('readOnly getter in Parameter class is not not supported.');
203
- }
204
- set readOnly(readOnly) {
205
- throw new _apidomError.UnsupportedOperationError('readOnly setter in Parameter class is not not supported.');
206
- }
207
-
208
- /**
209
- * OpenAPI vocabulary
210
- */
211
- get name() {
212
- return this.get('name');
213
- }
214
- set name(name) {
215
- this.set('name', name);
216
- }
217
- get in() {
218
- return this.get('in');
219
- }
220
- set in(val) {
221
- this.set('in', val);
222
- }
223
- get schema() {
224
- return this.get('schema');
225
- }
226
- set schema(schema) {
227
- this.set('schema', schema);
228
- }
229
- }
230
- var _default = exports.default = Parameter;
@@ -1,226 +0,0 @@
1
- import { UnsupportedOperationError } from '@speclynx/apidom-error';
2
- import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
3
- /**
4
- * @public
5
- */
6
- class Parameter extends JSONSchemaElement {
7
- constructor(content, meta, attributes) {
8
- super(content, meta, attributes);
9
- this.element = 'parameter';
10
- this.classes.push('json-schema-draft-4');
11
- }
12
-
13
- /**
14
- * Core vocabulary
15
- *
16
- * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
17
- */
18
-
19
- get idField() {
20
- throw new UnsupportedOperationError('idField getter in Parameter class is not not supported.');
21
- }
22
- set idField(idField) {
23
- throw new UnsupportedOperationError('idField setter in Parameter class is not not supported.');
24
- }
25
- get $schema() {
26
- throw new UnsupportedOperationError('$schema getter in Parameter class is not not supported.');
27
- }
28
- set $schema($schema) {
29
- throw new UnsupportedOperationError('$schema setter in Parameter class is not not supported.');
30
- }
31
-
32
- /**
33
- * Validation keywords for arrays
34
- */
35
-
36
- get additionalItems() {
37
- throw new UnsupportedOperationError('additionalItems getter in Parameter class is not not supported.');
38
- }
39
- set additionalItems(additionalItems) {
40
- throw new UnsupportedOperationError('additionalItems setter in Parameter class is not not supported.');
41
- }
42
- get itemsField() {
43
- return this.get('items');
44
- }
45
- set itemsField(items) {
46
- this.set('items', items);
47
- }
48
-
49
- /**
50
- * Validation keywords for objects
51
- */
52
-
53
- get maxProperties() {
54
- throw new UnsupportedOperationError('maxProperties getter in Parameter class is not not supported.');
55
- }
56
- set maxProperties(maxProperties) {
57
- throw new UnsupportedOperationError('maxProperties setter in Parameter class is not not supported.');
58
- }
59
- get minProperties() {
60
- throw new UnsupportedOperationError('minProperties getter in Parameter class is not not supported.');
61
- }
62
- set minProperties(minProperties) {
63
- throw new UnsupportedOperationError('minProperties setter in Parameter class is not not supported.');
64
- }
65
-
66
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
- get required() {
68
- return this.get('required');
69
- }
70
-
71
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
72
- set required(required) {
73
- this.set('required', required);
74
- }
75
- get properties() {
76
- throw new UnsupportedOperationError('properties getter in Parameter class is not not supported.');
77
- }
78
- set properties(properties) {
79
- throw new UnsupportedOperationError('properties setter in Parameter class is not not supported.');
80
- }
81
- get additionalProperties() {
82
- throw new UnsupportedOperationError('additionalProperties getter in Parameter class is not not supported.');
83
- }
84
- set additionalProperties(additionalProperties) {
85
- throw new UnsupportedOperationError('additionalProperties setter in Parameter class is not not supported.');
86
- }
87
- get patternProperties() {
88
- throw new UnsupportedOperationError('patternProperties getter in Parameter class is not not supported.');
89
- }
90
- set patternProperties(patternProperties) {
91
- throw new UnsupportedOperationError('patternProperties setter in Parameter class is not not supported.');
92
- }
93
- get dependencies() {
94
- throw new UnsupportedOperationError('dependencies getter in Parameter class is not not supported.');
95
- }
96
- set dependencies(dependencies) {
97
- throw new UnsupportedOperationError('dependencies setter in Parameter class is not not supported.');
98
- }
99
-
100
- /**
101
- * Validation keywords for any instance type
102
- */
103
-
104
- get type() {
105
- return this.get('type');
106
- }
107
- set type(type) {
108
- this.set('type', type);
109
- }
110
- get allOf() {
111
- throw new UnsupportedOperationError('allOf getter in Parameter class is not not supported.');
112
- }
113
- set allOf(allOf) {
114
- throw new UnsupportedOperationError('allOf setter in Parameter class is not not supported.');
115
- }
116
- get anyOf() {
117
- throw new UnsupportedOperationError('anyOf getter in Parameter class is not not supported.');
118
- }
119
- set anyOf(anyOf) {
120
- throw new UnsupportedOperationError('anyOf setter in Parameter class is not not supported.');
121
- }
122
- get oneOf() {
123
- throw new UnsupportedOperationError('oneOf getter in Parameter class is not not supported.');
124
- }
125
- set oneOf(oneOf) {
126
- throw new UnsupportedOperationError('oneOf setter in Parameter class is not not supported.');
127
- }
128
- get not() {
129
- throw new UnsupportedOperationError('not getter in Parameter class is not not supported.');
130
- }
131
- set not(not) {
132
- throw new UnsupportedOperationError('not setter in Parameter class is not not supported.');
133
- }
134
- get definitions() {
135
- throw new UnsupportedOperationError('definitions getter in Parameter class is not not supported.');
136
- }
137
- set definitions(definitions) {
138
- throw new UnsupportedOperationError('definitions setter in Parameter class is not not supported.');
139
- }
140
-
141
- /**
142
- * Metadata keywords
143
- *
144
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
145
- */
146
-
147
- get title() {
148
- throw new UnsupportedOperationError('title getter in Parameter class is not not supported.');
149
- }
150
- set title(title) {
151
- throw new UnsupportedOperationError('title setter in Parameter class is not not supported.');
152
- }
153
- get description() {
154
- return this.get('description');
155
- }
156
- set description(description) {
157
- this.set('description', description);
158
- }
159
-
160
- /**
161
- * Semantic validation with "format"
162
- *
163
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
164
- */
165
-
166
- get format() {
167
- return this.get('format');
168
- }
169
- set format(format) {
170
- this.set('format', format);
171
- }
172
-
173
- /**
174
- * JSON Hyper-Schema
175
- *
176
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
177
- */
178
-
179
- get base() {
180
- throw new UnsupportedOperationError('base getter in Parameter class is not not supported.');
181
- }
182
- set base(base) {
183
- throw new UnsupportedOperationError('base setter in Parameter class is not not supported.');
184
- }
185
- get linksField() {
186
- throw new UnsupportedOperationError('linksField getter in Parameter class is not not supported.');
187
- }
188
- set linksField(links) {
189
- throw new UnsupportedOperationError('linksField setter in Parameter class is not not supported.');
190
- }
191
- get media() {
192
- throw new UnsupportedOperationError('media getter in Parameter class is not not supported.');
193
- }
194
- set media(media) {
195
- throw new UnsupportedOperationError('media setter in Parameter class is not not supported.');
196
- }
197
- get readOnly() {
198
- throw new UnsupportedOperationError('readOnly getter in Parameter class is not not supported.');
199
- }
200
- set readOnly(readOnly) {
201
- throw new UnsupportedOperationError('readOnly setter in Parameter class is not not supported.');
202
- }
203
-
204
- /**
205
- * OpenAPI vocabulary
206
- */
207
- get name() {
208
- return this.get('name');
209
- }
210
- set name(name) {
211
- this.set('name', name);
212
- }
213
- get in() {
214
- return this.get('in');
215
- }
216
- set in(val) {
217
- this.set('in', val);
218
- }
219
- get schema() {
220
- return this.get('schema');
221
- }
222
- set schema(schema) {
223
- this.set('schema', schema);
224
- }
225
- }
226
- export default Parameter;
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _apidomDatamodel = require("@speclynx/apidom-datamodel");
6
- /**
7
- * @public
8
- */
9
- class ParametersDefinitions extends _apidomDatamodel.ObjectElement {
10
- constructor(content, meta, attributes) {
11
- super(content, meta, attributes);
12
- this.element = 'parametersDefinitions';
13
- }
14
- }
15
- var _default = exports.default = ParametersDefinitions;
@@ -1,12 +0,0 @@
1
- import { ObjectElement } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class ParametersDefinitions extends ObjectElement {
7
- constructor(content, meta, attributes) {
8
- super(content, meta, attributes);
9
- this.element = 'parametersDefinitions';
10
- }
11
- }
12
- export default ParametersDefinitions;
@@ -1,69 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _apidomDatamodel = require("@speclynx/apidom-datamodel");
6
- /**
7
- * @public
8
- */
9
- class PathItem extends _apidomDatamodel.ObjectElement {
10
- constructor(content, meta, attributes) {
11
- super(content, meta, attributes);
12
- this.element = 'pathItem';
13
- }
14
- get $ref() {
15
- return this.get('$ref');
16
- }
17
- set $ref($ref) {
18
- this.set('$ref', $ref);
19
- }
20
- get getField() {
21
- return this.get('get');
22
- }
23
- set getField(operation) {
24
- this.set('get', operation);
25
- }
26
- get put() {
27
- return this.get('put');
28
- }
29
- set put(operation) {
30
- this.set('put', operation);
31
- }
32
- get post() {
33
- return this.get('post');
34
- }
35
- set post(operation) {
36
- this.set('post', operation);
37
- }
38
- get deleteField() {
39
- return this.get('delete');
40
- }
41
- set deleteField(operation) {
42
- this.set('delete', operation);
43
- }
44
- get options() {
45
- return this.get('options');
46
- }
47
- set options(operation) {
48
- this.set('options', operation);
49
- }
50
- get head() {
51
- return this.get('head');
52
- }
53
- set head(operation) {
54
- this.set('head', operation);
55
- }
56
- get patch() {
57
- return this.get('patch');
58
- }
59
- set patch(operation) {
60
- this.set('patch', operation);
61
- }
62
- get parameters() {
63
- return this.get('parameters');
64
- }
65
- set parameters(parameters) {
66
- this.set('parameters', parameters);
67
- }
68
- }
69
- var _default = exports.default = PathItem;
@@ -1,65 +0,0 @@
1
- import { ObjectElement } from '@speclynx/apidom-datamodel';
2
- /**
3
- * @public
4
- */
5
- class PathItem extends ObjectElement {
6
- constructor(content, meta, attributes) {
7
- super(content, meta, attributes);
8
- this.element = 'pathItem';
9
- }
10
- get $ref() {
11
- return this.get('$ref');
12
- }
13
- set $ref($ref) {
14
- this.set('$ref', $ref);
15
- }
16
- get getField() {
17
- return this.get('get');
18
- }
19
- set getField(operation) {
20
- this.set('get', operation);
21
- }
22
- get put() {
23
- return this.get('put');
24
- }
25
- set put(operation) {
26
- this.set('put', operation);
27
- }
28
- get post() {
29
- return this.get('post');
30
- }
31
- set post(operation) {
32
- this.set('post', operation);
33
- }
34
- get deleteField() {
35
- return this.get('delete');
36
- }
37
- set deleteField(operation) {
38
- this.set('delete', operation);
39
- }
40
- get options() {
41
- return this.get('options');
42
- }
43
- set options(operation) {
44
- this.set('options', operation);
45
- }
46
- get head() {
47
- return this.get('head');
48
- }
49
- set head(operation) {
50
- this.set('head', operation);
51
- }
52
- get patch() {
53
- return this.get('patch');
54
- }
55
- set patch(operation) {
56
- this.set('patch', operation);
57
- }
58
- get parameters() {
59
- return this.get('parameters');
60
- }
61
- set parameters(parameters) {
62
- this.set('parameters', parameters);
63
- }
64
- }
65
- export default PathItem;
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _apidomDatamodel = require("@speclynx/apidom-datamodel");
6
- /**
7
- * @public
8
- */
9
- class Paths extends _apidomDatamodel.ObjectElement {
10
- constructor(content, meta, attributes) {
11
- super(content, meta, attributes);
12
- this.element = 'paths';
13
- }
14
- }
15
- var _default = exports.default = Paths;
@@ -1,12 +0,0 @@
1
- import { ObjectElement } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class Paths extends ObjectElement {
7
- constructor(content, meta, attributes) {
8
- super(content, meta, attributes);
9
- this.element = 'paths';
10
- }
11
- }
12
- export default Paths;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _apidomDatamodel = require("@speclynx/apidom-datamodel");
6
- /**
7
- * @public
8
- */
9
- class Reference extends _apidomDatamodel.ObjectElement {
10
- constructor(content, meta, attributes) {
11
- super(content, meta, attributes);
12
- this.element = 'reference';
13
- this.classes.push('openapi-reference');
14
- }
15
- get $ref() {
16
- return this.get('$ref');
17
- }
18
- set $ref($ref) {
19
- this.set('$ref', $ref);
20
- }
21
- }
22
- var _default = exports.default = Reference;
@@ -1,19 +0,0 @@
1
- import { ObjectElement } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class Reference extends ObjectElement {
7
- constructor(content, meta, attributes) {
8
- super(content, meta, attributes);
9
- this.element = 'reference';
10
- this.classes.push('openapi-reference');
11
- }
12
- get $ref() {
13
- return this.get('$ref');
14
- }
15
- set $ref($ref) {
16
- this.set('$ref', $ref);
17
- }
18
- }
19
- export default Reference;