@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,39 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class Response extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'response';
13
+ }
14
+ get description() {
15
+ return this.get('description');
16
+ }
17
+ set description(description) {
18
+ this.set('description', description);
19
+ }
20
+ get schema() {
21
+ return this.get('schema');
22
+ }
23
+ set schema(schema) {
24
+ this.set('schema', schema);
25
+ }
26
+ get headers() {
27
+ return this.get('headers');
28
+ }
29
+ set headers(headers) {
30
+ this.set('headers', headers);
31
+ }
32
+ get examples() {
33
+ return this.get('examples');
34
+ }
35
+ set examples(examples) {
36
+ this.set('examples', examples);
37
+ }
38
+ }
39
+ var _default = exports.default = Response;
@@ -0,0 +1,35 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+ /**
3
+ * @public
4
+ */
5
+ class Response extends ObjectElement {
6
+ constructor(content, meta, attributes) {
7
+ super(content, meta, attributes);
8
+ this.element = 'response';
9
+ }
10
+ get description() {
11
+ return this.get('description');
12
+ }
13
+ set description(description) {
14
+ this.set('description', description);
15
+ }
16
+ get schema() {
17
+ return this.get('schema');
18
+ }
19
+ set schema(schema) {
20
+ this.set('schema', schema);
21
+ }
22
+ get headers() {
23
+ return this.get('headers');
24
+ }
25
+ set headers(headers) {
26
+ this.set('headers', headers);
27
+ }
28
+ get examples() {
29
+ return this.get('examples');
30
+ }
31
+ set examples(examples) {
32
+ this.set('examples', examples);
33
+ }
34
+ }
35
+ export default Response;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class Responses extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'responses';
13
+ }
14
+ get default() {
15
+ return this.get('default');
16
+ }
17
+ set default(defaultValue) {
18
+ this.set('default', defaultValue);
19
+ }
20
+ }
21
+ var _default = exports.default = Responses;
@@ -0,0 +1,17 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+ /**
3
+ * @public
4
+ */
5
+ class Responses extends ObjectElement {
6
+ constructor(content, meta, attributes) {
7
+ super(content, meta, attributes);
8
+ this.element = 'responses';
9
+ }
10
+ get default() {
11
+ return this.get('default');
12
+ }
13
+ set default(defaultValue) {
14
+ this.set('default', defaultValue);
15
+ }
16
+ }
17
+ export default Responses;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class ResponsesDefinitions extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'responsesDefinitions';
13
+ }
14
+ }
15
+ var _default = exports.default = ResponsesDefinitions;
@@ -0,0 +1,12 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ class ResponsesDefinitions extends ObjectElement {
7
+ constructor(content, meta, attributes) {
8
+ super(content, meta, attributes);
9
+ this.element = 'responsesDefinitions';
10
+ }
11
+ }
12
+ export default ResponsesDefinitions;
@@ -0,0 +1,116 @@
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 Schema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
11
+ constructor(content, meta, attributes) {
12
+ super(content, meta, attributes);
13
+ this.element = 'schema';
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
+ get idProp() {
23
+ throw new _apidomError.UnsupportedOperationError('idProp getter in Schema class is not not supported.');
24
+ }
25
+ set idProp(idProps) {
26
+ throw new _apidomError.UnsupportedOperationError('idProp setter in Schema class is not not supported.');
27
+ }
28
+ get $schema() {
29
+ throw new _apidomError.UnsupportedOperationError('$schema getter in Schema class is not not supported.');
30
+ }
31
+ set $schema($schema) {
32
+ throw new _apidomError.UnsupportedOperationError('$schema setter in Schema class is not not supported.');
33
+ }
34
+
35
+ /**
36
+ * Validation keywords for arrays
37
+ */
38
+
39
+ get additionalItems() {
40
+ throw new _apidomError.UnsupportedOperationError('additionalItems getter in Schema class is not not supported.');
41
+ }
42
+ set additionalItems(additionalItems) {
43
+ throw new _apidomError.UnsupportedOperationError('additionalItems setter in Schema class is not not supported.');
44
+ }
45
+
46
+ /**
47
+ * Validation keywords for objects
48
+ */
49
+
50
+ get patternProperties() {
51
+ throw new _apidomError.UnsupportedOperationError('patternProperties getter in Schema class is not not supported.');
52
+ }
53
+ set patternProperties(patternProperties) {
54
+ throw new _apidomError.UnsupportedOperationError('patternProperties setter in Schema class is not not supported.');
55
+ }
56
+ get dependencies() {
57
+ throw new _apidomError.UnsupportedOperationError('dependencies getter in Schema class is not not supported.');
58
+ }
59
+ set dependencies(dependencies) {
60
+ throw new _apidomError.UnsupportedOperationError('dependencies setter in Schema class is not not supported.');
61
+ }
62
+
63
+ /**
64
+ * Validation keywords for any instance type
65
+ */
66
+ get anyOf() {
67
+ throw new _apidomError.UnsupportedOperationError('anyOf getter in Schema class is not not supported.');
68
+ }
69
+ set anyOf(anyOf) {
70
+ throw new _apidomError.UnsupportedOperationError('anyOf setter in Schema class is not not supported.');
71
+ }
72
+ get oneOf() {
73
+ throw new _apidomError.UnsupportedOperationError('oneOf getter in Schema class is not not supported.');
74
+ }
75
+ set oneOf(oneOf) {
76
+ throw new _apidomError.UnsupportedOperationError('oneOf setter in Schema class is not not supported.');
77
+ }
78
+ get not() {
79
+ throw new _apidomError.UnsupportedOperationError('not getter in Schema class is not not supported.');
80
+ }
81
+ set not(not) {
82
+ throw new _apidomError.UnsupportedOperationError('not setter in Schema class is not not supported.');
83
+ }
84
+ get definitions() {
85
+ throw new _apidomError.UnsupportedOperationError('definitions getter in Schema class is not not supported.');
86
+ }
87
+ set definitions(definitions) {
88
+ throw new _apidomError.UnsupportedOperationError('definitions setter in Schema class is not not supported.');
89
+ }
90
+
91
+ /**
92
+ * JSON Hyper-Schema
93
+ *
94
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
95
+ */
96
+
97
+ get base() {
98
+ throw new _apidomError.UnsupportedOperationError('base getter in Schema class is not not supported.');
99
+ }
100
+ set base(base) {
101
+ throw new _apidomError.UnsupportedOperationError('base setter in Schema class is not not supported.');
102
+ }
103
+ get links() {
104
+ throw new _apidomError.UnsupportedOperationError('links getter in Schema class is not not supported.');
105
+ }
106
+ set links(links) {
107
+ throw new _apidomError.UnsupportedOperationError('links setter in Schema class is not not supported.');
108
+ }
109
+ get media() {
110
+ throw new _apidomError.UnsupportedOperationError('media getter in Schema class is not not supported.');
111
+ }
112
+ set media(media) {
113
+ throw new _apidomError.UnsupportedOperationError('media setter in Schema class is not not supported.');
114
+ }
115
+ }
116
+ var _default = exports.default = Schema;
@@ -0,0 +1,113 @@
1
+ import { UnsupportedOperationError } from '@speclynx/apidom-error';
2
+ import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
3
+
4
+ /**
5
+ * @public
6
+ */
7
+ class Schema extends JSONSchemaElement {
8
+ constructor(content, meta, attributes) {
9
+ super(content, meta, attributes);
10
+ this.element = 'schema';
11
+ this.classes.push('json-schema-draft-4');
12
+ }
13
+
14
+ /**
15
+ * Core vocabulary
16
+ *
17
+ * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
18
+ */
19
+ get idProp() {
20
+ throw new UnsupportedOperationError('idProp getter in Schema class is not not supported.');
21
+ }
22
+ set idProp(idProps) {
23
+ throw new UnsupportedOperationError('idProp setter in Schema class is not not supported.');
24
+ }
25
+ get $schema() {
26
+ throw new UnsupportedOperationError('$schema getter in Schema class is not not supported.');
27
+ }
28
+ set $schema($schema) {
29
+ throw new UnsupportedOperationError('$schema setter in Schema 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 Schema class is not not supported.');
38
+ }
39
+ set additionalItems(additionalItems) {
40
+ throw new UnsupportedOperationError('additionalItems setter in Schema class is not not supported.');
41
+ }
42
+
43
+ /**
44
+ * Validation keywords for objects
45
+ */
46
+
47
+ get patternProperties() {
48
+ throw new UnsupportedOperationError('patternProperties getter in Schema class is not not supported.');
49
+ }
50
+ set patternProperties(patternProperties) {
51
+ throw new UnsupportedOperationError('patternProperties setter in Schema class is not not supported.');
52
+ }
53
+ get dependencies() {
54
+ throw new UnsupportedOperationError('dependencies getter in Schema class is not not supported.');
55
+ }
56
+ set dependencies(dependencies) {
57
+ throw new UnsupportedOperationError('dependencies setter in Schema class is not not supported.');
58
+ }
59
+
60
+ /**
61
+ * Validation keywords for any instance type
62
+ */
63
+ get anyOf() {
64
+ throw new UnsupportedOperationError('anyOf getter in Schema class is not not supported.');
65
+ }
66
+ set anyOf(anyOf) {
67
+ throw new UnsupportedOperationError('anyOf setter in Schema class is not not supported.');
68
+ }
69
+ get oneOf() {
70
+ throw new UnsupportedOperationError('oneOf getter in Schema class is not not supported.');
71
+ }
72
+ set oneOf(oneOf) {
73
+ throw new UnsupportedOperationError('oneOf setter in Schema class is not not supported.');
74
+ }
75
+ get not() {
76
+ throw new UnsupportedOperationError('not getter in Schema class is not not supported.');
77
+ }
78
+ set not(not) {
79
+ throw new UnsupportedOperationError('not setter in Schema class is not not supported.');
80
+ }
81
+ get definitions() {
82
+ throw new UnsupportedOperationError('definitions getter in Schema class is not not supported.');
83
+ }
84
+ set definitions(definitions) {
85
+ throw new UnsupportedOperationError('definitions setter in Schema class is not not supported.');
86
+ }
87
+
88
+ /**
89
+ * JSON Hyper-Schema
90
+ *
91
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
92
+ */
93
+
94
+ get base() {
95
+ throw new UnsupportedOperationError('base getter in Schema class is not not supported.');
96
+ }
97
+ set base(base) {
98
+ throw new UnsupportedOperationError('base setter in Schema class is not not supported.');
99
+ }
100
+ get links() {
101
+ throw new UnsupportedOperationError('links getter in Schema class is not not supported.');
102
+ }
103
+ set links(links) {
104
+ throw new UnsupportedOperationError('links setter in Schema class is not not supported.');
105
+ }
106
+ get media() {
107
+ throw new UnsupportedOperationError('media getter in Schema class is not not supported.');
108
+ }
109
+ set media(media) {
110
+ throw new UnsupportedOperationError('media setter in Schema class is not not supported.');
111
+ }
112
+ }
113
+ export default Schema;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class Scopes extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'scopes';
13
+ }
14
+ }
15
+ var _default = exports.default = Scopes;
@@ -0,0 +1,12 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ class Scopes extends ObjectElement {
7
+ constructor(content, meta, attributes) {
8
+ super(content, meta, attributes);
9
+ this.element = 'scopes';
10
+ }
11
+ }
12
+ export default Scopes;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class SecurityDefinitions extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'securityDefinitions';
13
+ }
14
+ }
15
+ var _default = exports.default = SecurityDefinitions;
@@ -0,0 +1,12 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ class SecurityDefinitions extends ObjectElement {
7
+ constructor(content, meta, attributes) {
8
+ super(content, meta, attributes);
9
+ this.element = 'securityDefinitions';
10
+ }
11
+ }
12
+ export default SecurityDefinitions;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class SecurityRequirement extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'securityRequirement';
13
+ }
14
+ }
15
+ var _default = exports.default = SecurityRequirement;
@@ -0,0 +1,12 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ class SecurityRequirement extends ObjectElement {
7
+ constructor(content, meta, attributes) {
8
+ super(content, meta, attributes);
9
+ this.element = 'securityRequirement';
10
+ }
11
+ }
12
+ export default SecurityRequirement;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class SecurityScheme extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'securityScheme';
13
+ }
14
+ get type() {
15
+ return this.get('type');
16
+ }
17
+ set type(type) {
18
+ this.set('type', type);
19
+ }
20
+ get description() {
21
+ return this.get('description');
22
+ }
23
+ set description(description) {
24
+ this.set('description', description);
25
+ }
26
+ get name() {
27
+ return this.get('name');
28
+ }
29
+ set name(name) {
30
+ this.set('name', name);
31
+ }
32
+ get in() {
33
+ return this.get('in');
34
+ }
35
+ set in(inVal) {
36
+ this.set('in', inVal);
37
+ }
38
+ get flow() {
39
+ return this.get('flow');
40
+ }
41
+ set flow(flow) {
42
+ this.set('flow', flow);
43
+ }
44
+ get authorizationUrl() {
45
+ return this.get('authorizationUrl');
46
+ }
47
+ set authorizationUrl(authorizationUrl) {
48
+ this.set('authorizationUrl', authorizationUrl);
49
+ }
50
+ get tokenUrl() {
51
+ return this.get('tokenUrl');
52
+ }
53
+ set tokenUrl(tokenUrl) {
54
+ this.set('tokenUrl', tokenUrl);
55
+ }
56
+ get scopes() {
57
+ return this.get('scopes');
58
+ }
59
+ set scopes(scopes) {
60
+ this.set('scopes', scopes);
61
+ }
62
+ }
63
+ var _default = exports.default = SecurityScheme;
@@ -0,0 +1,60 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ class SecurityScheme extends ObjectElement {
7
+ constructor(content, meta, attributes) {
8
+ super(content, meta, attributes);
9
+ this.element = 'securityScheme';
10
+ }
11
+ get type() {
12
+ return this.get('type');
13
+ }
14
+ set type(type) {
15
+ this.set('type', type);
16
+ }
17
+ get description() {
18
+ return this.get('description');
19
+ }
20
+ set description(description) {
21
+ this.set('description', description);
22
+ }
23
+ get name() {
24
+ return this.get('name');
25
+ }
26
+ set name(name) {
27
+ this.set('name', name);
28
+ }
29
+ get in() {
30
+ return this.get('in');
31
+ }
32
+ set in(inVal) {
33
+ this.set('in', inVal);
34
+ }
35
+ get flow() {
36
+ return this.get('flow');
37
+ }
38
+ set flow(flow) {
39
+ this.set('flow', flow);
40
+ }
41
+ get authorizationUrl() {
42
+ return this.get('authorizationUrl');
43
+ }
44
+ set authorizationUrl(authorizationUrl) {
45
+ this.set('authorizationUrl', authorizationUrl);
46
+ }
47
+ get tokenUrl() {
48
+ return this.get('tokenUrl');
49
+ }
50
+ set tokenUrl(tokenUrl) {
51
+ this.set('tokenUrl', tokenUrl);
52
+ }
53
+ get scopes() {
54
+ return this.get('scopes');
55
+ }
56
+ set scopes(scopes) {
57
+ this.set('scopes', scopes);
58
+ }
59
+ }
60
+ export default SecurityScheme;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _apidomCore = require("@speclynx/apidom-core");
6
+ /**
7
+ * @public
8
+ */
9
+ class Swagger extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'swagger';
13
+ this.classes.push('api');
14
+ }
15
+ get swagger() {
16
+ return this.get('swagger');
17
+ }
18
+ set swagger(swagger) {
19
+ this.set('swagger', swagger);
20
+ }
21
+ get info() {
22
+ return this.get('info');
23
+ }
24
+ set info(info) {
25
+ this.set('info', info);
26
+ }
27
+ get host() {
28
+ return this.get('host');
29
+ }
30
+ set host(host) {
31
+ this.set('host', host);
32
+ }
33
+ get basePath() {
34
+ return this.get('basePath');
35
+ }
36
+ set basePath(basePath) {
37
+ this.set('basePath', basePath);
38
+ }
39
+ get schemes() {
40
+ return this.get('schemes');
41
+ }
42
+ set schemes(schemes) {
43
+ this.set('schemes', schemes);
44
+ }
45
+ get consumes() {
46
+ return this.get('consumes');
47
+ }
48
+ set consumes(consumes) {
49
+ this.set('consumes', consumes);
50
+ }
51
+ get produces() {
52
+ return this.get('produces');
53
+ }
54
+ set produces(produces) {
55
+ this.set('produces', produces);
56
+ }
57
+ get paths() {
58
+ return this.get('paths');
59
+ }
60
+ set paths(paths) {
61
+ this.set('paths', paths);
62
+ }
63
+ get definitions() {
64
+ return this.get('definitions');
65
+ }
66
+ set definitions(definitions) {
67
+ this.set('definitions', definitions);
68
+ }
69
+ get parameters() {
70
+ return this.get('parameters');
71
+ }
72
+ set parameters(parameters) {
73
+ this.set('parameters', parameters);
74
+ }
75
+ get responses() {
76
+ return this.get('responses');
77
+ }
78
+ set responses(responses) {
79
+ this.set('responses', responses);
80
+ }
81
+ get securityDefinitions() {
82
+ return this.get('securityDefinitions');
83
+ }
84
+ set securityDefinitions(securityDefinitions) {
85
+ this.set('securityDefinitions', securityDefinitions);
86
+ }
87
+ get security() {
88
+ return this.get('security');
89
+ }
90
+ set security(security) {
91
+ this.set('security', security);
92
+ }
93
+ get tags() {
94
+ return this.get('tags');
95
+ }
96
+ set tags(tags) {
97
+ this.set('tags', tags);
98
+ }
99
+ get externalDocs() {
100
+ return this.get('externalDocs');
101
+ }
102
+ set externalDocs(externalDocs) {
103
+ this.set('externalDocs', externalDocs);
104
+ }
105
+ }
106
+ var _default = exports.default = Swagger;