@speclynx/apidom-ns-openapi-3-0 4.0.3 → 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 (176) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/apidom-ns-openapi-3-0.browser.js +2 -2
  3. package/dist/apidom-ns-openapi-3-0.browser.min.js +1 -1
  4. package/package.json +9 -8
  5. package/src/elements/Callback.ts +0 -13
  6. package/src/elements/Components.ts +0 -85
  7. package/src/elements/Contact.ts +0 -42
  8. package/src/elements/Discriminator.ts +0 -34
  9. package/src/elements/Encoding.ts +0 -59
  10. package/src/elements/Example.ts +0 -51
  11. package/src/elements/ExternalDocumentation.ts +0 -34
  12. package/src/elements/Header.ts +0 -119
  13. package/src/elements/Info.ts +0 -70
  14. package/src/elements/License.ts +0 -34
  15. package/src/elements/Link.ts +0 -85
  16. package/src/elements/MediaType.ts +0 -48
  17. package/src/elements/OAuthFlow.ts +0 -50
  18. package/src/elements/OAuthFlows.ts +0 -47
  19. package/src/elements/OpenApi3-0.ts +0 -90
  20. package/src/elements/Openapi.ts +0 -15
  21. package/src/elements/Operation.ts +0 -124
  22. package/src/elements/Parameter.ts +0 -135
  23. package/src/elements/PathItem.ts +0 -125
  24. package/src/elements/Paths.ts +0 -13
  25. package/src/elements/Reference.ts +0 -27
  26. package/src/elements/RequestBody.ts +0 -46
  27. package/src/elements/Response.ts +0 -50
  28. package/src/elements/Responses.ts +0 -24
  29. package/src/elements/Schema.ts +0 -230
  30. package/src/elements/SecurityRequirement.ts +0 -13
  31. package/src/elements/SecurityScheme.ts +0 -84
  32. package/src/elements/Server.ts +0 -42
  33. package/src/elements/ServerVariable.ts +0 -43
  34. package/src/elements/Tag.ts +0 -44
  35. package/src/elements/Xml.ts +0 -59
  36. package/src/elements/nces/ComponentsCallbacks.ts +0 -15
  37. package/src/elements/nces/ComponentsExamples.ts +0 -16
  38. package/src/elements/nces/ComponentsHeaders.ts +0 -15
  39. package/src/elements/nces/ComponentsLinks.ts +0 -15
  40. package/src/elements/nces/ComponentsParameters.ts +0 -16
  41. package/src/elements/nces/ComponentsRequestBodies.ts +0 -15
  42. package/src/elements/nces/ComponentsResponses.ts +0 -15
  43. package/src/elements/nces/ComponentsSchemas.ts +0 -15
  44. package/src/elements/nces/ComponentsSecuritySchemes.ts +0 -15
  45. package/src/elements/nces/DiscriminatorMapping.ts +0 -15
  46. package/src/elements/nces/EncodingHeaders.ts +0 -15
  47. package/src/elements/nces/HeaderContent.ts +0 -16
  48. package/src/elements/nces/HeaderExamples.ts +0 -16
  49. package/src/elements/nces/LinkParameters.ts +0 -15
  50. package/src/elements/nces/MediaTypeEncoding.ts +0 -15
  51. package/src/elements/nces/MediaTypeExamples.ts +0 -16
  52. package/src/elements/nces/OAuthFlowScopes.ts +0 -15
  53. package/src/elements/nces/OperationCallbacks.ts +0 -15
  54. package/src/elements/nces/OperationParameters.ts +0 -16
  55. package/src/elements/nces/OperationSecurity.ts +0 -16
  56. package/src/elements/nces/OperationServers.ts +0 -16
  57. package/src/elements/nces/OperationTags.ts +0 -15
  58. package/src/elements/nces/ParameterContent.ts +0 -16
  59. package/src/elements/nces/ParameterExamples.ts +0 -16
  60. package/src/elements/nces/PathItemParameters.ts +0 -16
  61. package/src/elements/nces/PathItemServers.ts +0 -16
  62. package/src/elements/nces/RequestBodyContent.ts +0 -16
  63. package/src/elements/nces/ResponseContent.ts +0 -16
  64. package/src/elements/nces/ResponseHeaders.ts +0 -15
  65. package/src/elements/nces/ResponseLinks.ts +0 -15
  66. package/src/elements/nces/Security.ts +0 -15
  67. package/src/elements/nces/ServerVariables.ts +0 -15
  68. package/src/elements/nces/Servers.ts +0 -15
  69. package/src/elements/nces/Tags.ts +0 -15
  70. package/src/index.ts +0 -550
  71. package/src/media-types.ts +0 -52
  72. package/src/namespace.ts +0 -78
  73. package/src/predicates.ts +0 -185
  74. package/src/refractor/index.ts +0 -370
  75. package/src/refractor/inspect.ts +0 -239
  76. package/src/refractor/plugins/replace-empty-element.ts +0 -656
  77. package/src/refractor/predicates.ts +0 -39
  78. package/src/refractor/specification.ts +0 -557
  79. package/src/refractor/toolbox.ts +0 -24
  80. package/src/refractor/visitors/FallbackVisitor.ts +0 -24
  81. package/src/refractor/visitors/SpecificationExtensionVisitor.ts +0 -22
  82. package/src/refractor/visitors/SpecificationVisitor.ts +0 -112
  83. package/src/refractor/visitors/Visitor.ts +0 -47
  84. package/src/refractor/visitors/generics/AlternatingVisitor.ts +0 -45
  85. package/src/refractor/visitors/generics/FixedFieldsVisitor.ts +0 -110
  86. package/src/refractor/visitors/generics/MapVisitor.ts +0 -25
  87. package/src/refractor/visitors/generics/MixedFieldsVisitor.ts +0 -77
  88. package/src/refractor/visitors/generics/PatternedFieldsVisitor.ts +0 -99
  89. package/src/refractor/visitors/open-api-3-0/ContentVisitor.ts +0 -28
  90. package/src/refractor/visitors/open-api-3-0/ExamplesVisitor.ts +0 -48
  91. package/src/refractor/visitors/open-api-3-0/OpenapiVisitor.ts +0 -30
  92. package/src/refractor/visitors/open-api-3-0/ParametersVisitor.ts +0 -47
  93. package/src/refractor/visitors/open-api-3-0/SecurityVisitor.ts +0 -44
  94. package/src/refractor/visitors/open-api-3-0/ServersVisitor.ts +0 -40
  95. package/src/refractor/visitors/open-api-3-0/TagsVisitor.ts +0 -40
  96. package/src/refractor/visitors/open-api-3-0/bases.ts +0 -82
  97. package/src/refractor/visitors/open-api-3-0/callback/index.ts +0 -49
  98. package/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts +0 -45
  99. package/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts +0 -46
  100. package/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.ts +0 -53
  101. package/src/refractor/visitors/open-api-3-0/components/LinksVisitor.ts +0 -45
  102. package/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.ts +0 -46
  103. package/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts +0 -45
  104. package/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts +0 -53
  105. package/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.ts +0 -46
  106. package/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts +0 -45
  107. package/src/refractor/visitors/open-api-3-0/components/index.ts +0 -31
  108. package/src/refractor/visitors/open-api-3-0/contact/index.ts +0 -27
  109. package/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts +0 -24
  110. package/src/refractor/visitors/open-api-3-0/distriminator/index.ts +0 -27
  111. package/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts +0 -57
  112. package/src/refractor/visitors/open-api-3-0/encoding/index.ts +0 -49
  113. package/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts +0 -20
  114. package/src/refractor/visitors/open-api-3-0/example/index.ts +0 -38
  115. package/src/refractor/visitors/open-api-3-0/external-documentation/index.ts +0 -27
  116. package/src/refractor/visitors/open-api-3-0/header/ContentVisitor.ts +0 -18
  117. package/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts +0 -18
  118. package/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.ts +0 -33
  119. package/src/refractor/visitors/open-api-3-0/header/index.ts +0 -27
  120. package/src/refractor/visitors/open-api-3-0/index.ts +0 -39
  121. package/src/refractor/visitors/open-api-3-0/info/VersionVisitor.ts +0 -21
  122. package/src/refractor/visitors/open-api-3-0/info/index.ts +0 -27
  123. package/src/refractor/visitors/open-api-3-0/license/index.ts +0 -27
  124. package/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts +0 -20
  125. package/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts +0 -20
  126. package/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.ts +0 -24
  127. package/src/refractor/visitors/open-api-3-0/link/index.ts +0 -38
  128. package/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts +0 -24
  129. package/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts +0 -18
  130. package/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts +0 -33
  131. package/src/refractor/visitors/open-api-3-0/media-type/index.ts +0 -27
  132. package/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts +0 -24
  133. package/src/refractor/visitors/open-api-3-0/oauth-flow/index.ts +0 -27
  134. package/src/refractor/visitors/open-api-3-0/oauth-flows/index.ts +0 -27
  135. package/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts +0 -45
  136. package/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts +0 -18
  137. package/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts +0 -39
  138. package/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts +0 -41
  139. package/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.ts +0 -18
  140. package/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.ts +0 -32
  141. package/src/refractor/visitors/open-api-3-0/operation/index.ts +0 -27
  142. package/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts +0 -18
  143. package/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts +0 -18
  144. package/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts +0 -36
  145. package/src/refractor/visitors/open-api-3-0/parameter/index.ts +0 -49
  146. package/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts +0 -20
  147. package/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts +0 -18
  148. package/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts +0 -18
  149. package/src/refractor/visitors/open-api-3-0/path-item/index.ts +0 -53
  150. package/src/refractor/visitors/open-api-3-0/paths/index.ts +0 -51
  151. package/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.ts +0 -20
  152. package/src/refractor/visitors/open-api-3-0/reference/index.ts +0 -41
  153. package/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts +0 -18
  154. package/src/refractor/visitors/open-api-3-0/request-body/index.ts +0 -46
  155. package/src/refractor/visitors/open-api-3-0/response/ContentVisitor.ts +0 -18
  156. package/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.ts +0 -57
  157. package/src/refractor/visitors/open-api-3-0/response/LinksVisitor.ts +0 -45
  158. package/src/refractor/visitors/open-api-3-0/response/index.ts +0 -57
  159. package/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts +0 -39
  160. package/src/refractor/visitors/open-api-3-0/responses/index.ts +0 -64
  161. package/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts +0 -34
  162. package/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts +0 -34
  163. package/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts +0 -31
  164. package/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts +0 -34
  165. package/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts +0 -34
  166. package/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts +0 -36
  167. package/src/refractor/visitors/open-api-3-0/schema/TypeVisitor.ts +0 -26
  168. package/src/refractor/visitors/open-api-3-0/schema/index.ts +0 -30
  169. package/src/refractor/visitors/open-api-3-0/security-requirement/index.ts +0 -24
  170. package/src/refractor/visitors/open-api-3-0/security-scheme/index.ts +0 -27
  171. package/src/refractor/visitors/open-api-3-0/server/UrlVisitor.ts +0 -20
  172. package/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.ts +0 -24
  173. package/src/refractor/visitors/open-api-3-0/server/index.ts +0 -27
  174. package/src/refractor/visitors/open-api-3-0/server-variable/index.ts +0 -27
  175. package/src/refractor/visitors/open-api-3-0/tag/index.ts +0 -27
  176. package/src/refractor/visitors/open-api-3-0/xml/index.ts +0 -27
@@ -1,46 +0,0 @@
1
- import {
2
- StringElement,
3
- ObjectElement,
4
- BooleanElement,
5
- type Attributes,
6
- type Meta,
7
- } from '@speclynx/apidom-datamodel';
8
-
9
- /**
10
- * @public
11
- */
12
- class RequestBody extends ObjectElement {
13
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
14
- super(content, meta, attributes);
15
- this.element = 'requestBody';
16
- }
17
-
18
- get description(): StringElement | undefined {
19
- return this.get('description') as StringElement | undefined;
20
- }
21
-
22
- set description(description: StringElement | undefined) {
23
- this.set('description', description);
24
- }
25
-
26
- get contentField(): ObjectElement | undefined {
27
- return this.get('content') as ObjectElement | undefined;
28
- }
29
-
30
- set contentField(content: ObjectElement | undefined) {
31
- this.set('content', content);
32
- }
33
-
34
- get required(): BooleanElement {
35
- if (this.hasKey('required')) {
36
- return this.get('required') as BooleanElement;
37
- }
38
- return new BooleanElement(false);
39
- }
40
-
41
- set required(required: BooleanElement) {
42
- this.set('required', required);
43
- }
44
- }
45
-
46
- export default RequestBody;
@@ -1,50 +0,0 @@
1
- import {
2
- ObjectElement,
3
- StringElement,
4
- type Attributes,
5
- type Meta,
6
- } from '@speclynx/apidom-datamodel';
7
-
8
- /**
9
- * @public
10
- */
11
- class Response extends ObjectElement {
12
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
13
- super(content, meta, attributes);
14
- this.element = 'response';
15
- }
16
-
17
- get description(): StringElement | undefined {
18
- return this.get('description') as StringElement | undefined;
19
- }
20
-
21
- set description(description: StringElement | undefined) {
22
- this.set('description', description);
23
- }
24
-
25
- get headers(): ObjectElement | undefined {
26
- return this.get('headers') as ObjectElement | undefined;
27
- }
28
-
29
- set headers(headers: ObjectElement | undefined) {
30
- this.set('headers', headers);
31
- }
32
-
33
- get contentField(): ObjectElement | undefined {
34
- return this.get('content') as ObjectElement | undefined;
35
- }
36
-
37
- set contentField(content: ObjectElement | undefined) {
38
- this.set('content', content);
39
- }
40
-
41
- get linksField(): ObjectElement | undefined {
42
- return this.get('links') as ObjectElement | undefined;
43
- }
44
-
45
- set linksField(links: ObjectElement | undefined) {
46
- this.set('links', links);
47
- }
48
- }
49
-
50
- export default Response;
@@ -1,24 +0,0 @@
1
- import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
-
3
- import ResponseElement from './Response.ts';
4
- import ReferenceElement from './Reference.ts';
5
-
6
- /**
7
- * @public
8
- */
9
- class Responses extends ObjectElement {
10
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
11
- super(content, meta, attributes);
12
- this.element = 'responses';
13
- }
14
-
15
- get default(): ResponseElement | ReferenceElement | undefined {
16
- return this.get('default') as ResponseElement | ReferenceElement | undefined;
17
- }
18
-
19
- set default(defaultValue: ResponseElement | ReferenceElement | undefined) {
20
- this.set('default', defaultValue);
21
- }
22
- }
23
-
24
- export default Responses;
@@ -1,230 +0,0 @@
1
- import { UnsupportedOperationError } from '@speclynx/apidom-error';
2
- import {
3
- StringElement,
4
- BooleanElement,
5
- Element,
6
- ObjectElement,
7
- ArrayElement,
8
- type Attributes,
9
- type Meta,
10
- } from '@speclynx/apidom-datamodel';
11
- import {
12
- JSONSchemaElement,
13
- MediaElement,
14
- LinkDescriptionElement,
15
- } from '@speclynx/apidom-ns-json-schema-draft-4';
16
-
17
- import ReferenceElement from './Reference.ts';
18
- import DiscriminatorElement from './Discriminator.ts';
19
- import XmlElement from './Xml.ts';
20
- import ExternalDocumentationElement from './ExternalDocumentation.ts';
21
-
22
- /**
23
- * @public
24
- */
25
- class Schema extends JSONSchemaElement {
26
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
27
- super(content, meta, attributes);
28
- this.element = 'schema';
29
- this.classes.push('json-schema-draft-4');
30
- }
31
-
32
- /**
33
- * Core vocabulary
34
- *
35
- * URI: https://tools.ietf.org/html/draft-wright-json-schema-00
36
- */
37
- get idField(): StringElement | undefined {
38
- throw new UnsupportedOperationError('idField getter in Schema class is not not supported.');
39
- }
40
-
41
- set idField(idField: StringElement | undefined) {
42
- throw new UnsupportedOperationError('idField setter in Schema class is not not supported.');
43
- }
44
-
45
- get $schema(): StringElement | undefined {
46
- throw new UnsupportedOperationError('$schema getter in Schema class is not not supported.');
47
- }
48
-
49
- set $schema($schema: StringElement | undefined) {
50
- throw new UnsupportedOperationError('$schema setter in Schema class is not not supported.');
51
- }
52
-
53
- /**
54
- * Validation keywords for arrays
55
- */
56
-
57
- get additionalItems(): this | ReferenceElement | BooleanElement | undefined {
58
- return this.get('additionalItems') as this | ReferenceElement | BooleanElement | undefined;
59
- }
60
-
61
- set additionalItems(additionalItems: this | ReferenceElement | BooleanElement | undefined) {
62
- this.set('additionalItems', additionalItems);
63
- }
64
-
65
- override get itemsField(): this | ReferenceElement | undefined {
66
- return this.get('items') as this | ReferenceElement | undefined;
67
- }
68
-
69
- override set itemsField(items: this | ReferenceElement | undefined) {
70
- this.set('items', items);
71
- }
72
-
73
- /**
74
- * Validation keywords for objects
75
- */
76
-
77
- get additionalProperties(): this | ReferenceElement | BooleanElement | undefined {
78
- return this.get('additionalProperties') as this | ReferenceElement | BooleanElement | undefined;
79
- }
80
-
81
- set additionalProperties(
82
- additionalProperties: this | ReferenceElement | BooleanElement | undefined,
83
- ) {
84
- this.set('additionalProperties', additionalProperties);
85
- }
86
-
87
- get patternProperties(): ObjectElement | undefined {
88
- throw new UnsupportedOperationError(
89
- 'patternProperties getter in Schema class is not not supported.',
90
- );
91
- }
92
-
93
- set patternProperties(patternProperties: ObjectElement | undefined) {
94
- throw new UnsupportedOperationError(
95
- 'patternProperties setter in Schema class is not not supported.',
96
- );
97
- }
98
-
99
- get dependencies(): ObjectElement | undefined {
100
- throw new UnsupportedOperationError(
101
- 'dependencies getter in Schema class is not not supported.',
102
- );
103
- }
104
-
105
- set dependencies(dependencies: ObjectElement | undefined) {
106
- throw new UnsupportedOperationError(
107
- 'dependencies setter in Schema class is not not supported.',
108
- );
109
- }
110
-
111
- /**
112
- * Validation keywords for any instance type
113
- */
114
-
115
- get type(): StringElement | undefined {
116
- return this.get('type') as StringElement | undefined;
117
- }
118
-
119
- set type(type: StringElement | undefined) {
120
- this.set('type', type);
121
- }
122
-
123
- get not(): this | ReferenceElement | undefined {
124
- return this.get('not') as this | ReferenceElement | undefined;
125
- }
126
-
127
- set not(not: this | ReferenceElement | undefined) {
128
- this.set('not', not);
129
- }
130
-
131
- get definitions(): ObjectElement | undefined {
132
- throw new UnsupportedOperationError('definitions getter in Schema class is not not supported.');
133
- }
134
-
135
- set definitions(definitions: ObjectElement | undefined) {
136
- throw new UnsupportedOperationError('definitions setter in Schema class is not not supported.');
137
- }
138
-
139
- /**
140
- * JSON Hyper-Schema
141
- *
142
- * URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
143
- */
144
-
145
- get base(): StringElement | undefined {
146
- throw new UnsupportedOperationError('base getter in Schema class is not not supported.');
147
- }
148
-
149
- set base(base: StringElement | undefined) {
150
- throw new UnsupportedOperationError('base setter in Schema class is not not supported.');
151
- }
152
-
153
- override get linksField(): ArrayElement<LinkDescriptionElement> | undefined {
154
- throw new UnsupportedOperationError('linksField getter in Schema class is not not supported.');
155
- }
156
-
157
- override set linksField(links: ArrayElement<LinkDescriptionElement> | undefined) {
158
- throw new UnsupportedOperationError('linksField setter in Schema class is not not supported.');
159
- }
160
-
161
- get media(): MediaElement | undefined {
162
- throw new UnsupportedOperationError('media getter in Schema class is not not supported.');
163
- }
164
-
165
- set media(media: MediaElement | undefined) {
166
- throw new UnsupportedOperationError('media setter in Schema class is not not supported.');
167
- }
168
-
169
- /**
170
- * OpenAPI vocabulary
171
- */
172
-
173
- get nullable(): BooleanElement | undefined {
174
- return this.get('nullable') as BooleanElement | undefined;
175
- }
176
-
177
- set nullable(nullable: BooleanElement | undefined) {
178
- this.set('nullable', nullable);
179
- }
180
-
181
- get discriminator(): DiscriminatorElement | undefined {
182
- return this.get('discriminator') as DiscriminatorElement | undefined;
183
- }
184
-
185
- set discriminator(discriminator: DiscriminatorElement | undefined) {
186
- this.set('discriminator', discriminator);
187
- }
188
-
189
- get writeOnly(): BooleanElement | undefined {
190
- return this.get('writeOnly') as BooleanElement | undefined;
191
- }
192
-
193
- set writeOnly(writeOnly: BooleanElement | undefined) {
194
- this.set('writeOnly', writeOnly);
195
- }
196
-
197
- get xml(): XmlElement | undefined {
198
- return this.get('xml') as XmlElement | undefined;
199
- }
200
-
201
- set xml(xml: XmlElement | undefined) {
202
- this.set('xml', xml);
203
- }
204
-
205
- get externalDocs(): ExternalDocumentationElement | undefined {
206
- return this.get('externalDocs') as ExternalDocumentationElement | undefined;
207
- }
208
-
209
- set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
210
- this.set('externalDocs', externalDocs);
211
- }
212
-
213
- get example(): Element | undefined {
214
- return this.get('example') as Element | undefined;
215
- }
216
-
217
- set example(example: Element | undefined) {
218
- this.set('example', example);
219
- }
220
-
221
- get deprecated(): BooleanElement | undefined {
222
- return this.get('deprecated') as BooleanElement | undefined;
223
- }
224
-
225
- set deprecated(deprecated: BooleanElement | undefined) {
226
- this.set('deprecated', deprecated);
227
- }
228
- }
229
-
230
- export default Schema;
@@ -1,13 +0,0 @@
1
- import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class SecurityRequirement extends ObjectElement {
7
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
8
- super(content, meta, attributes);
9
- this.element = 'securityRequirement';
10
- }
11
- }
12
-
13
- export default SecurityRequirement;
@@ -1,84 +0,0 @@
1
- import {
2
- ObjectElement,
3
- StringElement,
4
- type Attributes,
5
- type Meta,
6
- } from '@speclynx/apidom-datamodel';
7
-
8
- import OAuthFlowsElement from './OAuthFlows.ts';
9
-
10
- /**
11
- * @public
12
- */
13
- class SecurityScheme extends ObjectElement {
14
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
15
- super(content, meta, attributes);
16
- this.element = 'securityScheme';
17
- }
18
-
19
- get type(): StringElement | undefined {
20
- return this.get('type') as StringElement | undefined;
21
- }
22
-
23
- set type(type: StringElement | undefined) {
24
- this.set('type', type);
25
- }
26
-
27
- get description(): StringElement | undefined {
28
- return this.get('description') as StringElement | undefined;
29
- }
30
-
31
- set description(description: StringElement | undefined) {
32
- this.set('description', description);
33
- }
34
-
35
- get name(): StringElement | undefined {
36
- return this.get('name') as StringElement | undefined;
37
- }
38
-
39
- set name(name: StringElement | undefined) {
40
- this.set('name', name);
41
- }
42
-
43
- get in(): StringElement | undefined {
44
- return this.get('in') as StringElement | undefined;
45
- }
46
-
47
- set in(inVal: StringElement | undefined) {
48
- this.set('in', inVal);
49
- }
50
-
51
- get scheme(): StringElement | undefined {
52
- return this.get('scheme') as StringElement | undefined;
53
- }
54
-
55
- set scheme(scheme: StringElement | undefined) {
56
- this.set('scheme', scheme);
57
- }
58
-
59
- get bearerFormat(): StringElement | undefined {
60
- return this.get('bearerFormat') as StringElement | undefined;
61
- }
62
-
63
- set bearerFormat(bearerFormat: StringElement | undefined) {
64
- this.set('bearerFormat', bearerFormat);
65
- }
66
-
67
- get flows(): OAuthFlowsElement | undefined {
68
- return this.get('flows') as OAuthFlowsElement | undefined;
69
- }
70
-
71
- set flows(flows: OAuthFlowsElement | undefined) {
72
- this.set('flows', flows);
73
- }
74
-
75
- get openIdConnectUrl(): StringElement | undefined {
76
- return this.get('openIdConnectUrl') as StringElement | undefined;
77
- }
78
-
79
- set openIdConnectUrl(openIdConnectUrl: StringElement | undefined) {
80
- this.set('openIdConnectUrl', openIdConnectUrl);
81
- }
82
- }
83
-
84
- export default SecurityScheme;
@@ -1,42 +0,0 @@
1
- import {
2
- ObjectElement,
3
- StringElement,
4
- type Attributes,
5
- type Meta,
6
- } from '@speclynx/apidom-datamodel';
7
-
8
- /**
9
- * @public
10
- */
11
- class Server extends ObjectElement {
12
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
13
- super(content, meta, attributes);
14
- this.element = 'server';
15
- }
16
-
17
- get url(): StringElement | undefined {
18
- return this.get('url') as StringElement | undefined;
19
- }
20
-
21
- set url(url: StringElement | undefined) {
22
- this.set('url', url);
23
- }
24
-
25
- get description(): StringElement | undefined {
26
- return this.get('description') as StringElement | undefined;
27
- }
28
-
29
- set description(description: StringElement | undefined) {
30
- this.set('description', description);
31
- }
32
-
33
- get variables(): ObjectElement | undefined {
34
- return this.get('variables') as ObjectElement | undefined;
35
- }
36
-
37
- set variables(variables: ObjectElement | undefined) {
38
- this.set('variables', variables);
39
- }
40
- }
41
-
42
- export default Server;
@@ -1,43 +0,0 @@
1
- import {
2
- ObjectElement,
3
- ArrayElement,
4
- StringElement,
5
- type Attributes,
6
- type Meta,
7
- } from '@speclynx/apidom-datamodel';
8
-
9
- /**
10
- * @public
11
- */
12
- class ServerVariable extends ObjectElement {
13
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
14
- super(content, meta, attributes);
15
- this.element = 'serverVariable';
16
- }
17
-
18
- get enum(): ArrayElement | undefined {
19
- return this.get('enum') as ArrayElement | undefined;
20
- }
21
-
22
- set enum(value: ArrayElement | undefined) {
23
- this.set('enum', value);
24
- }
25
-
26
- get default(): StringElement | undefined {
27
- return this.get('default') as StringElement | undefined;
28
- }
29
-
30
- set default(value: StringElement | undefined) {
31
- this.set('default', value);
32
- }
33
-
34
- get description(): StringElement | undefined {
35
- return this.get('description') as StringElement | undefined;
36
- }
37
-
38
- set description(description: StringElement | undefined) {
39
- this.set('description', description);
40
- }
41
- }
42
-
43
- export default ServerVariable;
@@ -1,44 +0,0 @@
1
- import {
2
- ObjectElement,
3
- StringElement,
4
- type Attributes,
5
- type Meta,
6
- } from '@speclynx/apidom-datamodel';
7
-
8
- import ExternalDocumentationElement from './ExternalDocumentation.ts';
9
-
10
- /**
11
- * @public
12
- */
13
- class Tag extends ObjectElement {
14
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
15
- super(content, meta, attributes);
16
- this.element = 'tag';
17
- }
18
-
19
- get name(): StringElement | undefined {
20
- return this.get('name') as StringElement | undefined;
21
- }
22
-
23
- set name(name: StringElement | undefined) {
24
- this.set('name', name);
25
- }
26
-
27
- get description(): StringElement | undefined {
28
- return this.get('description') as StringElement | undefined;
29
- }
30
-
31
- set description(description: StringElement | undefined) {
32
- this.set('description', description);
33
- }
34
-
35
- get externalDocs(): ExternalDocumentationElement | undefined {
36
- return this.get('externalDocs') as ExternalDocumentationElement | undefined;
37
- }
38
-
39
- set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
40
- this.set('externalDocs', externalDocs);
41
- }
42
- }
43
-
44
- export default Tag;
@@ -1,59 +0,0 @@
1
- import {
2
- StringElement,
3
- ObjectElement,
4
- BooleanElement,
5
- type Attributes,
6
- type Meta,
7
- } from '@speclynx/apidom-datamodel';
8
-
9
- /**
10
- * @public
11
- */
12
- class Xml extends ObjectElement {
13
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
14
- super(content, meta, attributes);
15
- this.element = 'xml';
16
- }
17
-
18
- get name(): StringElement | undefined {
19
- return this.get('name') as StringElement | undefined;
20
- }
21
-
22
- set name(name: StringElement | undefined) {
23
- this.set('name', name);
24
- }
25
-
26
- get namespace(): StringElement | undefined {
27
- return this.get('namespace') as StringElement | undefined;
28
- }
29
-
30
- set namespace(namespace: StringElement | undefined) {
31
- this.set('namespace', namespace);
32
- }
33
-
34
- get prefix(): StringElement | undefined {
35
- return this.get('prefix') as StringElement | undefined;
36
- }
37
-
38
- set prefix(prefix: StringElement | undefined) {
39
- this.set('prefix', prefix);
40
- }
41
-
42
- get attribute(): BooleanElement | undefined {
43
- return this.get('attribute') as BooleanElement | undefined;
44
- }
45
-
46
- set attribute(attribute: BooleanElement | undefined) {
47
- this.set('attribute', attribute);
48
- }
49
-
50
- get wrapped(): BooleanElement | undefined {
51
- return this.get('wrapped') as BooleanElement | undefined;
52
- }
53
-
54
- set wrapped(wrapped: BooleanElement | undefined) {
55
- this.set('wrapped', wrapped);
56
- }
57
- }
58
-
59
- export default Xml;
@@ -1,15 +0,0 @@
1
- import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class ComponentsCallbacks extends ObjectElement {
7
- static primaryClass = 'components-callbacks';
8
-
9
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
10
- super(content, meta, attributes);
11
- this.classes.push(ComponentsCallbacks.primaryClass);
12
- }
13
- }
14
-
15
- export default ComponentsCallbacks;
@@ -1,16 +0,0 @@
1
- import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class ComponentsExamples extends ObjectElement {
7
- static primaryClass = 'components-examples';
8
-
9
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
10
- super(content, meta, attributes);
11
- this.classes.push(ComponentsExamples.primaryClass);
12
- this.classes.push('examples');
13
- }
14
- }
15
-
16
- export default ComponentsExamples;
@@ -1,15 +0,0 @@
1
- import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
2
-
3
- /**
4
- * @public
5
- */
6
- class ComponentsHeaders extends ObjectElement {
7
- static primaryClass = 'components-headers';
8
-
9
- constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
10
- super(content, meta, attributes);
11
- this.classes.push(ComponentsHeaders.primaryClass);
12
- }
13
- }
14
-
15
- export default ComponentsHeaders;