@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,190 @@
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 Items extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
11
+ constructor(content, meta, attributes) {
12
+ super(content, meta, attributes);
13
+ this.element = 'items';
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 Items class is not not supported.');
24
+ }
25
+ set idProp(idProps) {
26
+ throw new _apidomError.UnsupportedOperationError('idProp setter in Items class is not not supported.');
27
+ }
28
+ get $schema() {
29
+ throw new _apidomError.UnsupportedOperationError('$schema getter in Items class is not not supported.');
30
+ }
31
+ set $schema($schema) {
32
+ throw new _apidomError.UnsupportedOperationError('$schema setter in Items 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 Items class is not not supported.');
41
+ }
42
+ set additionalItems(additionalItems) {
43
+ throw new _apidomError.UnsupportedOperationError('additionalItems setter in Items class is not not supported.');
44
+ }
45
+ get items() {
46
+ return this.get('items');
47
+ }
48
+ set items(items) {
49
+ this.set('items', items);
50
+ }
51
+
52
+ /**
53
+ * Validation keywords for objects
54
+ */
55
+
56
+ get maxProperties() {
57
+ throw new _apidomError.UnsupportedOperationError('maxProperties getter in Items class is not not supported.');
58
+ }
59
+ set maxProperties(maxProperties) {
60
+ throw new _apidomError.UnsupportedOperationError('maxProperties setter in Items class is not not supported.');
61
+ }
62
+ get minProperties() {
63
+ throw new _apidomError.UnsupportedOperationError('minProperties getter in Items class is not not supported.');
64
+ }
65
+ set minProperties(minProperties) {
66
+ throw new _apidomError.UnsupportedOperationError('minProperties setter in Items class is not not supported.');
67
+ }
68
+ get required() {
69
+ throw new _apidomError.UnsupportedOperationError('required getter in Items class is not not supported.');
70
+ }
71
+ set required(required) {
72
+ throw new _apidomError.UnsupportedOperationError('required setter in Items class is not not supported.');
73
+ }
74
+ get properties() {
75
+ throw new _apidomError.UnsupportedOperationError('properties getter in Items class is not not supported.');
76
+ }
77
+ set properties(properties) {
78
+ throw new _apidomError.UnsupportedOperationError('properties setter in Items class is not not supported.');
79
+ }
80
+ get additionalProperties() {
81
+ throw new _apidomError.UnsupportedOperationError('additionalProperties getter in Items class is not not supported.');
82
+ }
83
+ set additionalProperties(additionalProperties) {
84
+ throw new _apidomError.UnsupportedOperationError('additionalProperties setter in Items class is not not supported.');
85
+ }
86
+ get patternProperties() {
87
+ throw new _apidomError.UnsupportedOperationError('patternProperties getter in Items class is not not supported.');
88
+ }
89
+ set patternProperties(patternProperties) {
90
+ throw new _apidomError.UnsupportedOperationError('patternProperties setter in Items class is not not supported.');
91
+ }
92
+ get dependencies() {
93
+ throw new _apidomError.UnsupportedOperationError('dependencies getter in Items class is not not supported.');
94
+ }
95
+ set dependencies(dependencies) {
96
+ throw new _apidomError.UnsupportedOperationError('dependencies setter in Items class is not not supported.');
97
+ }
98
+
99
+ /**
100
+ * Validation keywords for any instance type
101
+ */
102
+
103
+ get type() {
104
+ return this.get('type');
105
+ }
106
+ set type(type) {
107
+ this.set('type', type);
108
+ }
109
+ get allOf() {
110
+ throw new _apidomError.UnsupportedOperationError('allOf getter in Items class is not not supported.');
111
+ }
112
+ set allOf(allOf) {
113
+ throw new _apidomError.UnsupportedOperationError('allOf setter in Items class is not not supported.');
114
+ }
115
+ get anyOf() {
116
+ throw new _apidomError.UnsupportedOperationError('anyOf getter in Items class is not not supported.');
117
+ }
118
+ set anyOf(anyOf) {
119
+ throw new _apidomError.UnsupportedOperationError('anyOf setter in Items class is not not supported.');
120
+ }
121
+ get oneOf() {
122
+ throw new _apidomError.UnsupportedOperationError('oneOf getter in Items class is not not supported.');
123
+ }
124
+ set oneOf(oneOf) {
125
+ throw new _apidomError.UnsupportedOperationError('oneOf setter in Items class is not not supported.');
126
+ }
127
+ get not() {
128
+ throw new _apidomError.UnsupportedOperationError('not getter in Items class is not not supported.');
129
+ }
130
+ set not(not) {
131
+ throw new _apidomError.UnsupportedOperationError('not setter in Items class is not not supported.');
132
+ }
133
+ get definitions() {
134
+ throw new _apidomError.UnsupportedOperationError('definitions getter in Items class is not not supported.');
135
+ }
136
+ set definitions(definitions) {
137
+ throw new _apidomError.UnsupportedOperationError('definitions setter in Items class is not not supported.');
138
+ }
139
+
140
+ /**
141
+ * Metadata keywords
142
+ *
143
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
144
+ */
145
+
146
+ get title() {
147
+ throw new _apidomError.UnsupportedOperationError('title getter in Items class is not not supported.');
148
+ }
149
+ set title(title) {
150
+ throw new _apidomError.UnsupportedOperationError('title setter in Items class is not not supported.');
151
+ }
152
+ get description() {
153
+ throw new _apidomError.UnsupportedOperationError('description getter in Items class is not not supported.');
154
+ }
155
+ set description(description) {
156
+ throw new _apidomError.UnsupportedOperationError('description setter in Items class is not not supported.');
157
+ }
158
+
159
+ /**
160
+ * JSON Hyper-Schema
161
+ *
162
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
163
+ */
164
+
165
+ get base() {
166
+ throw new _apidomError.UnsupportedOperationError('base getter in Items class is not not supported.');
167
+ }
168
+ set base(base) {
169
+ throw new _apidomError.UnsupportedOperationError('base setter in Items class is not not supported.');
170
+ }
171
+ get links() {
172
+ throw new _apidomError.UnsupportedOperationError('links getter in Items class is not not supported.');
173
+ }
174
+ set links(links) {
175
+ throw new _apidomError.UnsupportedOperationError('links setter in Items class is not not supported.');
176
+ }
177
+ get media() {
178
+ throw new _apidomError.UnsupportedOperationError('media getter in Items class is not not supported.');
179
+ }
180
+ set media(media) {
181
+ throw new _apidomError.UnsupportedOperationError('media setter in Items class is not not supported.');
182
+ }
183
+ get readOnly() {
184
+ throw new _apidomError.UnsupportedOperationError('readOnly getter in Items class is not not supported.');
185
+ }
186
+ set readOnly(readOnly) {
187
+ throw new _apidomError.UnsupportedOperationError('readOnly setter in Items class is not not supported.');
188
+ }
189
+ }
190
+ var _default = exports.default = Items;
@@ -0,0 +1,187 @@
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 Items extends JSONSchemaElement {
8
+ constructor(content, meta, attributes) {
9
+ super(content, meta, attributes);
10
+ this.element = 'items';
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 Items class is not not supported.');
21
+ }
22
+ set idProp(idProps) {
23
+ throw new UnsupportedOperationError('idProp setter in Items class is not not supported.');
24
+ }
25
+ get $schema() {
26
+ throw new UnsupportedOperationError('$schema getter in Items class is not not supported.');
27
+ }
28
+ set $schema($schema) {
29
+ throw new UnsupportedOperationError('$schema setter in Items 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 Items class is not not supported.');
38
+ }
39
+ set additionalItems(additionalItems) {
40
+ throw new UnsupportedOperationError('additionalItems setter in Items class is not not supported.');
41
+ }
42
+ get items() {
43
+ return this.get('items');
44
+ }
45
+ set items(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 Items class is not not supported.');
55
+ }
56
+ set maxProperties(maxProperties) {
57
+ throw new UnsupportedOperationError('maxProperties setter in Items class is not not supported.');
58
+ }
59
+ get minProperties() {
60
+ throw new UnsupportedOperationError('minProperties getter in Items class is not not supported.');
61
+ }
62
+ set minProperties(minProperties) {
63
+ throw new UnsupportedOperationError('minProperties setter in Items class is not not supported.');
64
+ }
65
+ get required() {
66
+ throw new UnsupportedOperationError('required getter in Items class is not not supported.');
67
+ }
68
+ set required(required) {
69
+ throw new UnsupportedOperationError('required setter in Items class is not not supported.');
70
+ }
71
+ get properties() {
72
+ throw new UnsupportedOperationError('properties getter in Items class is not not supported.');
73
+ }
74
+ set properties(properties) {
75
+ throw new UnsupportedOperationError('properties setter in Items class is not not supported.');
76
+ }
77
+ get additionalProperties() {
78
+ throw new UnsupportedOperationError('additionalProperties getter in Items class is not not supported.');
79
+ }
80
+ set additionalProperties(additionalProperties) {
81
+ throw new UnsupportedOperationError('additionalProperties setter in Items class is not not supported.');
82
+ }
83
+ get patternProperties() {
84
+ throw new UnsupportedOperationError('patternProperties getter in Items class is not not supported.');
85
+ }
86
+ set patternProperties(patternProperties) {
87
+ throw new UnsupportedOperationError('patternProperties setter in Items class is not not supported.');
88
+ }
89
+ get dependencies() {
90
+ throw new UnsupportedOperationError('dependencies getter in Items class is not not supported.');
91
+ }
92
+ set dependencies(dependencies) {
93
+ throw new UnsupportedOperationError('dependencies setter in Items class is not not supported.');
94
+ }
95
+
96
+ /**
97
+ * Validation keywords for any instance type
98
+ */
99
+
100
+ get type() {
101
+ return this.get('type');
102
+ }
103
+ set type(type) {
104
+ this.set('type', type);
105
+ }
106
+ get allOf() {
107
+ throw new UnsupportedOperationError('allOf getter in Items class is not not supported.');
108
+ }
109
+ set allOf(allOf) {
110
+ throw new UnsupportedOperationError('allOf setter in Items class is not not supported.');
111
+ }
112
+ get anyOf() {
113
+ throw new UnsupportedOperationError('anyOf getter in Items class is not not supported.');
114
+ }
115
+ set anyOf(anyOf) {
116
+ throw new UnsupportedOperationError('anyOf setter in Items class is not not supported.');
117
+ }
118
+ get oneOf() {
119
+ throw new UnsupportedOperationError('oneOf getter in Items class is not not supported.');
120
+ }
121
+ set oneOf(oneOf) {
122
+ throw new UnsupportedOperationError('oneOf setter in Items class is not not supported.');
123
+ }
124
+ get not() {
125
+ throw new UnsupportedOperationError('not getter in Items class is not not supported.');
126
+ }
127
+ set not(not) {
128
+ throw new UnsupportedOperationError('not setter in Items class is not not supported.');
129
+ }
130
+ get definitions() {
131
+ throw new UnsupportedOperationError('definitions getter in Items class is not not supported.');
132
+ }
133
+ set definitions(definitions) {
134
+ throw new UnsupportedOperationError('definitions setter in Items class is not not supported.');
135
+ }
136
+
137
+ /**
138
+ * Metadata keywords
139
+ *
140
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
141
+ */
142
+
143
+ get title() {
144
+ throw new UnsupportedOperationError('title getter in Items class is not not supported.');
145
+ }
146
+ set title(title) {
147
+ throw new UnsupportedOperationError('title setter in Items class is not not supported.');
148
+ }
149
+ get description() {
150
+ throw new UnsupportedOperationError('description getter in Items class is not not supported.');
151
+ }
152
+ set description(description) {
153
+ throw new UnsupportedOperationError('description setter in Items class is not not supported.');
154
+ }
155
+
156
+ /**
157
+ * JSON Hyper-Schema
158
+ *
159
+ * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
160
+ */
161
+
162
+ get base() {
163
+ throw new UnsupportedOperationError('base getter in Items class is not not supported.');
164
+ }
165
+ set base(base) {
166
+ throw new UnsupportedOperationError('base setter in Items class is not not supported.');
167
+ }
168
+ get links() {
169
+ throw new UnsupportedOperationError('links getter in Items class is not not supported.');
170
+ }
171
+ set links(links) {
172
+ throw new UnsupportedOperationError('links setter in Items class is not not supported.');
173
+ }
174
+ get media() {
175
+ throw new UnsupportedOperationError('media getter in Items class is not not supported.');
176
+ }
177
+ set media(media) {
178
+ throw new UnsupportedOperationError('media setter in Items class is not not supported.');
179
+ }
180
+ get readOnly() {
181
+ throw new UnsupportedOperationError('readOnly getter in Items class is not not supported.');
182
+ }
183
+ set readOnly(readOnly) {
184
+ throw new UnsupportedOperationError('readOnly setter in Items class is not not supported.');
185
+ }
186
+ }
187
+ export default Items;
@@ -0,0 +1,27 @@
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 License extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'license';
13
+ }
14
+ get name() {
15
+ return this.get('name');
16
+ }
17
+ set name(name) {
18
+ this.set('name', name);
19
+ }
20
+ get url() {
21
+ return this.get('url');
22
+ }
23
+ set url(url) {
24
+ this.set('url', url);
25
+ }
26
+ }
27
+ var _default = exports.default = License;
@@ -0,0 +1,24 @@
1
+ import { ObjectElement } from '@speclynx/apidom-core';
2
+
3
+ /**
4
+ * @public
5
+ */
6
+ class License extends ObjectElement {
7
+ constructor(content, meta, attributes) {
8
+ super(content, meta, attributes);
9
+ this.element = 'license';
10
+ }
11
+ get name() {
12
+ return this.get('name');
13
+ }
14
+ set name(name) {
15
+ this.set('name', name);
16
+ }
17
+ get url() {
18
+ return this.get('url');
19
+ }
20
+ set url(url) {
21
+ this.set('url', url);
22
+ }
23
+ }
24
+ export default License;
@@ -0,0 +1,78 @@
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 Operation extends _apidomCore.ObjectElement {
10
+ constructor(content, meta, attributes) {
11
+ super(content, meta, attributes);
12
+ this.element = 'operation';
13
+ }
14
+ get tags() {
15
+ return this.get('tags');
16
+ }
17
+ set tags(tags) {
18
+ this.set('tags', tags);
19
+ }
20
+ get summary() {
21
+ return this.get('summary');
22
+ }
23
+ set summary(description) {
24
+ this.set('summary', description);
25
+ }
26
+ get description() {
27
+ return this.get('description');
28
+ }
29
+ set description(description) {
30
+ this.set('description', description);
31
+ }
32
+ set externalDocs(externalDocs) {
33
+ this.set('externalDocs', externalDocs);
34
+ }
35
+ get externalDocs() {
36
+ return this.get('externalDocs');
37
+ }
38
+ get operationId() {
39
+ return this.get('operationId');
40
+ }
41
+ set operationId(operationId) {
42
+ this.set('operationId', operationId);
43
+ }
44
+ get parameters() {
45
+ return this.get('parameters');
46
+ }
47
+ set parameters(parameters) {
48
+ this.set('parameters', parameters);
49
+ }
50
+ get responses() {
51
+ return this.get('responses');
52
+ }
53
+ set responses(responses) {
54
+ this.set('responses', responses);
55
+ }
56
+ get schemes() {
57
+ return this.get('schemes');
58
+ }
59
+ set schemes(schemes) {
60
+ this.set('schemes', schemes);
61
+ }
62
+ get deprecated() {
63
+ if (this.hasKey('deprecated')) {
64
+ return this.get('deprecated');
65
+ }
66
+ return new _apidomCore.BooleanElement(false);
67
+ }
68
+ set deprecated(deprecated) {
69
+ this.set('deprecated', deprecated);
70
+ }
71
+ get security() {
72
+ return this.get('security');
73
+ }
74
+ set security(security) {
75
+ this.set('security', security);
76
+ }
77
+ }
78
+ var _default = exports.default = Operation;
@@ -0,0 +1,74 @@
1
+ import { ObjectElement, BooleanElement } from '@speclynx/apidom-core';
2
+ /**
3
+ * @public
4
+ */
5
+ class Operation extends ObjectElement {
6
+ constructor(content, meta, attributes) {
7
+ super(content, meta, attributes);
8
+ this.element = 'operation';
9
+ }
10
+ get tags() {
11
+ return this.get('tags');
12
+ }
13
+ set tags(tags) {
14
+ this.set('tags', tags);
15
+ }
16
+ get summary() {
17
+ return this.get('summary');
18
+ }
19
+ set summary(description) {
20
+ this.set('summary', description);
21
+ }
22
+ get description() {
23
+ return this.get('description');
24
+ }
25
+ set description(description) {
26
+ this.set('description', description);
27
+ }
28
+ set externalDocs(externalDocs) {
29
+ this.set('externalDocs', externalDocs);
30
+ }
31
+ get externalDocs() {
32
+ return this.get('externalDocs');
33
+ }
34
+ get operationId() {
35
+ return this.get('operationId');
36
+ }
37
+ set operationId(operationId) {
38
+ this.set('operationId', operationId);
39
+ }
40
+ get parameters() {
41
+ return this.get('parameters');
42
+ }
43
+ set parameters(parameters) {
44
+ this.set('parameters', parameters);
45
+ }
46
+ get responses() {
47
+ return this.get('responses');
48
+ }
49
+ set responses(responses) {
50
+ this.set('responses', responses);
51
+ }
52
+ get schemes() {
53
+ return this.get('schemes');
54
+ }
55
+ set schemes(schemes) {
56
+ this.set('schemes', schemes);
57
+ }
58
+ get deprecated() {
59
+ if (this.hasKey('deprecated')) {
60
+ return this.get('deprecated');
61
+ }
62
+ return new BooleanElement(false);
63
+ }
64
+ set deprecated(deprecated) {
65
+ this.set('deprecated', deprecated);
66
+ }
67
+ get security() {
68
+ return this.get('security');
69
+ }
70
+ set security(security) {
71
+ this.set('security', security);
72
+ }
73
+ }
74
+ export default Operation;