@speclynx/apidom-ns-openapi-2 4.0.2 → 4.0.4

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