@speclynx/apidom-ns-openapi-3-1 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.
- package/CHANGELOG.md +6 -0
- package/dist/apidom-ns-openapi-3-1.browser.js +6 -6
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +10 -9
- package/src/elements/Callback.ts +0 -8
- package/src/elements/Components.ts +0 -17
- package/src/elements/Contact.ts +0 -8
- package/src/elements/Discriminator.ts +0 -8
- package/src/elements/Encoding.ts +0 -8
- package/src/elements/Example.ts +0 -8
- package/src/elements/ExternalDocumentation.ts +0 -8
- package/src/elements/Header.ts +0 -18
- package/src/elements/Info.ts +0 -27
- package/src/elements/JsonSchemaDialect.ts +0 -15
- package/src/elements/License.ts +0 -17
- package/src/elements/Link.ts +0 -8
- package/src/elements/MediaType.ts +0 -18
- package/src/elements/OAuthFlow.ts +0 -8
- package/src/elements/OAuthFlows.ts +0 -8
- package/src/elements/OpenApi3-1.ts +0 -107
- package/src/elements/Openapi.ts +0 -8
- package/src/elements/Operation.ts +0 -19
- package/src/elements/Parameter.ts +0 -18
- package/src/elements/PathItem.ts +0 -74
- package/src/elements/Paths.ts +0 -8
- package/src/elements/Reference.ts +0 -29
- package/src/elements/RequestBody.ts +0 -8
- package/src/elements/Response.ts +0 -8
- package/src/elements/Responses.ts +0 -8
- package/src/elements/Schema.ts +0 -59
- package/src/elements/SecurityRequirement.ts +0 -8
- package/src/elements/SecurityScheme.ts +0 -8
- package/src/elements/Server.ts +0 -8
- package/src/elements/ServerVariable.ts +0 -8
- package/src/elements/Tag.ts +0 -8
- package/src/elements/Xml.ts +0 -8
- package/src/elements/nces/ComponentsPathItems.ts +0 -15
- package/src/elements/nces/Webhooks.ts +0 -15
- package/src/index.ts +0 -592
- package/src/media-types.ts +0 -46
- package/src/namespace.ts +0 -80
- package/src/predicates.ts +0 -229
- package/src/refractor/index.ts +0 -380
- package/src/refractor/inspect.ts +0 -241
- package/src/refractor/plugins/normalize-header-examples/NormalizeStorage.ts +0 -53
- package/src/refractor/plugins/normalize-header-examples/index.ts +0 -125
- package/src/refractor/plugins/normalize-operation-ids.ts +0 -198
- package/src/refractor/plugins/normalize-parameter-examples.ts +0 -128
- package/src/refractor/plugins/normalize-parameters.ts +0 -136
- package/src/refractor/plugins/normalize-security-requirements.ts +0 -87
- package/src/refractor/plugins/normalize-servers.ts +0 -144
- package/src/refractor/plugins/replace-empty-element.ts +0 -726
- package/src/refractor/predicates.ts +0 -39
- package/src/refractor/specification.ts +0 -594
- package/src/refractor/toolbox.ts +0 -70
- package/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts +0 -32
- package/src/refractor/visitors/open-api-3-1/OpenapiVisitor.ts +0 -30
- package/src/refractor/visitors/open-api-3-1/WebhooksVisitor.ts +0 -57
- package/src/refractor/visitors/open-api-3-1/bases.ts +0 -66
- package/src/refractor/visitors/open-api-3-1/callback/index.ts +0 -56
- package/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts +0 -45
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.ts +0 -26
- package/src/refractor/visitors/open-api-3-1/components/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/contact/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/distriminator/index.ts +0 -32
- package/src/refractor/visitors/open-api-3-1/encoding/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/example/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/external-documentation/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/header/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/index.ts +0 -52
- package/src/refractor/visitors/open-api-3-1/info/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/license/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/link/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/media-type/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/oauth-flow/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/oauth-flows/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/operation/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/parameter/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/path-item/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/paths/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/reference/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/request-body/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/response/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/responses/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.ts +0 -21
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/index.ts +0 -88
- package/src/refractor/visitors/open-api-3-1/security-requirement/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/security-scheme/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/server/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/server-variable/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/tag/index.ts +0 -29
- package/src/refractor/visitors/open-api-3-1/xml/index.ts +0 -29
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class ComponentsPathItems extends ObjectElement {
|
|
7
|
-
static primaryClass = 'components-path-items';
|
|
8
|
-
|
|
9
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
10
|
-
super(content, meta, attributes);
|
|
11
|
-
this.classes.push(ComponentsPathItems.primaryClass);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default ComponentsPathItems;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Webhooks extends ObjectElement {
|
|
7
|
-
static primaryClass = 'webhooks';
|
|
8
|
-
|
|
9
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
10
|
-
super(content, meta, attributes);
|
|
11
|
-
this.classes.push(Webhooks.primaryClass);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default Webhooks;
|
package/src/index.ts
DELETED
|
@@ -1,592 +0,0 @@
|
|
|
1
|
-
export { default as mediaTypes, OpenAPIMediaTypes } from './media-types.ts';
|
|
2
|
-
export type { Format } from './media-types.ts';
|
|
3
|
-
|
|
4
|
-
export { default } from './namespace.ts';
|
|
5
|
-
|
|
6
|
-
export { default as refractorPluginReplaceEmptyElement } from './refractor/plugins/replace-empty-element.ts';
|
|
7
|
-
export { default as refractorPluginNormalizeParameters } from './refractor/plugins/normalize-parameters.ts';
|
|
8
|
-
export type { PluginOptions as RefractorPluginNormalizeParametersOptions } from './refractor/plugins/normalize-parameters.ts';
|
|
9
|
-
export { default as refractorPluginNormalizeSecurityRequirements } from './refractor/plugins/normalize-security-requirements.ts';
|
|
10
|
-
export type { PluginOptions as RefractorPluginNormalizeSecurityRequirementsOptions } from './refractor/plugins/normalize-security-requirements.ts';
|
|
11
|
-
export { default as refractorPluginNormalizeServers } from './refractor/plugins/normalize-servers.ts';
|
|
12
|
-
export type { PluginOptions as RefractorPluginNormalizeServersOptions } from './refractor/plugins/normalize-servers.ts';
|
|
13
|
-
export { default as refractorPluginNormalizeOperationIds } from './refractor/plugins/normalize-operation-ids.ts';
|
|
14
|
-
export type { PluginOptions as RefractorPluginNormalizeOperationIdsOptions } from './refractor/plugins/normalize-operation-ids.ts';
|
|
15
|
-
export { default as refractorPluginNormalizeParameterExamples } from './refractor/plugins/normalize-parameter-examples.ts';
|
|
16
|
-
export type { PluginOptions as RefractorPluginNormalizeParameterExamplesOptions } from './refractor/plugins/normalize-parameter-examples.ts';
|
|
17
|
-
export { default as refractorPluginNormalizeHeaderExamples } from './refractor/plugins/normalize-header-examples/index.ts';
|
|
18
|
-
export type { PluginOptions as RefractorPluginNormalizeHeaderExamplesOptions } from './refractor/plugins/normalize-header-examples/index.ts';
|
|
19
|
-
export { default as createToolbox } from './refractor/toolbox.ts';
|
|
20
|
-
export type { Toolbox, ancestorLineageToJSONPointer } from './refractor/toolbox.ts';
|
|
21
|
-
export { default as specificationObj } from './refractor/specification.ts';
|
|
22
|
-
export {
|
|
23
|
-
default as refract,
|
|
24
|
-
refractOpenApi3_1,
|
|
25
|
-
refractInfo,
|
|
26
|
-
refractContact,
|
|
27
|
-
refractLicense,
|
|
28
|
-
refractServer,
|
|
29
|
-
refractServerVariable,
|
|
30
|
-
refractComponents,
|
|
31
|
-
refractPaths,
|
|
32
|
-
refractPathItem,
|
|
33
|
-
refractOperation,
|
|
34
|
-
refractExternalDocumentation,
|
|
35
|
-
refractParameter,
|
|
36
|
-
refractRequestBody,
|
|
37
|
-
refractMediaType,
|
|
38
|
-
refractEncoding,
|
|
39
|
-
refractResponses,
|
|
40
|
-
refractResponse,
|
|
41
|
-
refractCallback,
|
|
42
|
-
refractExample,
|
|
43
|
-
refractLink,
|
|
44
|
-
refractHeader,
|
|
45
|
-
refractTag,
|
|
46
|
-
refractReference,
|
|
47
|
-
refractSchema,
|
|
48
|
-
refractDiscriminator,
|
|
49
|
-
refractXml,
|
|
50
|
-
refractSecurityScheme,
|
|
51
|
-
refractOAuthFlows,
|
|
52
|
-
refractOAuthFlow,
|
|
53
|
-
refractSecurityRequirement,
|
|
54
|
-
refractJsonSchemaDialect,
|
|
55
|
-
} from './refractor/index.ts';
|
|
56
|
-
export type { RefractorOptions, RefractorPlugin } from './refractor/index.ts';
|
|
57
|
-
|
|
58
|
-
export { AlternatingVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
59
|
-
export type { AlternatingVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
60
|
-
export { FixedFieldsVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
61
|
-
export type { FixedFieldsVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
62
|
-
export { MapVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
63
|
-
export type { MapVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
64
|
-
export { MixedFieldsVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
65
|
-
export type { MixedFieldsVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
66
|
-
export { PatternedFieldsVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
67
|
-
export type { PatternedFieldsVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
68
|
-
export { FallbackVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
69
|
-
export type { FallbackVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
70
|
-
export { SpecificationExtensionVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
71
|
-
export type { SpecificationExtensionVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
72
|
-
export { SpecificationVisitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
73
|
-
export type { SpecificationVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
74
|
-
export { Visitor } from '@speclynx/apidom-ns-openapi-3-0';
|
|
75
|
-
export type { VisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
76
|
-
|
|
77
|
-
// Base visitor classes (Mixin combinations)
|
|
78
|
-
export {
|
|
79
|
-
BaseSpecificationVisitor,
|
|
80
|
-
BaseFixedFieldsVisitor,
|
|
81
|
-
BaseMapVisitor,
|
|
82
|
-
BaseSchemaVisitor,
|
|
83
|
-
} from './refractor/visitors/open-api-3-1/bases.ts';
|
|
84
|
-
export type {
|
|
85
|
-
BaseSpecificationVisitorOptions,
|
|
86
|
-
BaseFixedFieldsVisitorOptions,
|
|
87
|
-
BaseMapVisitorOptions,
|
|
88
|
-
BaseSchemaVisitorOptions,
|
|
89
|
-
} from './refractor/visitors/open-api-3-1/bases.ts';
|
|
90
|
-
|
|
91
|
-
export type {
|
|
92
|
-
default as CallbackVisitor,
|
|
93
|
-
CallbackVisitorOptions,
|
|
94
|
-
BaseCallbackVisitor,
|
|
95
|
-
} from './refractor/visitors/open-api-3-1/callback/index.ts';
|
|
96
|
-
export type {
|
|
97
|
-
ComponentsCallbacksVisitor,
|
|
98
|
-
ComponentsCallbacksVisitorOptions,
|
|
99
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
100
|
-
export type {
|
|
101
|
-
ComponentsExamplesVisitor,
|
|
102
|
-
ComponentsExamplesVisitorOptions,
|
|
103
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
104
|
-
export type {
|
|
105
|
-
ComponentsHeadersVisitor,
|
|
106
|
-
ComponentsHeadersVisitorOptions,
|
|
107
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
108
|
-
export type {
|
|
109
|
-
default as ComponentsVisitor,
|
|
110
|
-
ComponentsVisitorOptions,
|
|
111
|
-
BaseComponentsVisitor,
|
|
112
|
-
} from './refractor/visitors/open-api-3-1/components/index.ts';
|
|
113
|
-
export type {
|
|
114
|
-
ComponentsLinksVisitor,
|
|
115
|
-
ComponentsLinksVisitorOptions,
|
|
116
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
117
|
-
export type {
|
|
118
|
-
ComponentsParametersVisitor,
|
|
119
|
-
ComponentsParametersVisitorOptions,
|
|
120
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
121
|
-
export type {
|
|
122
|
-
ComponentsRequestBodiesVisitor,
|
|
123
|
-
ComponentsRequestBodiesVisitorOptions,
|
|
124
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
125
|
-
export type {
|
|
126
|
-
ComponentsResponsesVisitor,
|
|
127
|
-
ComponentsResponsesVisitorOptions,
|
|
128
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
129
|
-
export type {
|
|
130
|
-
default as ComponentsPathItemsVisitor,
|
|
131
|
-
PathItemsVisitorOptions as ComponentsPathItemsVisitorOptions,
|
|
132
|
-
} from './refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts';
|
|
133
|
-
export type {
|
|
134
|
-
default as ComponentsSchemasVisitor,
|
|
135
|
-
SchemasVisitorOptions as ComponentsSchemasVisitorOptions,
|
|
136
|
-
} from './refractor/visitors/open-api-3-1/components/SchemasVisitor.ts';
|
|
137
|
-
export type {
|
|
138
|
-
ComponentsSecuritySchemesVisitor,
|
|
139
|
-
ComponentsSecuritySchemesVisitorOptions,
|
|
140
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
141
|
-
export type {
|
|
142
|
-
default as ContactVisitor,
|
|
143
|
-
ContactVisitorOptions,
|
|
144
|
-
BaseContactVisitor,
|
|
145
|
-
} from './refractor/visitors/open-api-3-1/contact/index.ts';
|
|
146
|
-
export type {
|
|
147
|
-
default as DiscriminatorVisitor,
|
|
148
|
-
DiscriminatorVisitorOptions,
|
|
149
|
-
BaseDiscriminatorVisitor,
|
|
150
|
-
} from './refractor/visitors/open-api-3-1/distriminator/index.ts';
|
|
151
|
-
export type {
|
|
152
|
-
DiscriminatorMappingVisitor,
|
|
153
|
-
DiscriminatorMappingVisitorOptions,
|
|
154
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
155
|
-
export type {
|
|
156
|
-
EncodingHeadersVisitor,
|
|
157
|
-
EncodingHeadersVisitorOptions,
|
|
158
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
159
|
-
export type {
|
|
160
|
-
default as EncodingVisitor,
|
|
161
|
-
EncodingVisitorOptions,
|
|
162
|
-
BaseEncodingVisitor,
|
|
163
|
-
} from './refractor/visitors/open-api-3-1/encoding/index.ts';
|
|
164
|
-
export type {
|
|
165
|
-
ExampleExternalValueVisitor,
|
|
166
|
-
ExampleExternalValueVisitorOptions,
|
|
167
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
168
|
-
export type {
|
|
169
|
-
default as ExampleVisitor,
|
|
170
|
-
ExampleVisitorOptions,
|
|
171
|
-
BaseExampleVisitor,
|
|
172
|
-
} from './refractor/visitors/open-api-3-1/example/index.ts';
|
|
173
|
-
export type {
|
|
174
|
-
default as ExternalDocumentationVisitor,
|
|
175
|
-
ExternalDocumentationVisitorOptions,
|
|
176
|
-
BaseExternalDocumentationVisitor,
|
|
177
|
-
} from './refractor/visitors/open-api-3-1/external-documentation/index.ts';
|
|
178
|
-
export type {
|
|
179
|
-
HeaderContentVisitor,
|
|
180
|
-
HeaderContentVisitorOptions,
|
|
181
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
182
|
-
export type {
|
|
183
|
-
HeaderExamplesVisitor,
|
|
184
|
-
HeaderExamplesVisitorOptions,
|
|
185
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
186
|
-
export type {
|
|
187
|
-
default as HeaderVisitor,
|
|
188
|
-
HeaderVisitorOptions,
|
|
189
|
-
BaseHeaderVisitor,
|
|
190
|
-
} from './refractor/visitors/open-api-3-1/header/index.ts';
|
|
191
|
-
export type {
|
|
192
|
-
HeaderSchemaVisitor,
|
|
193
|
-
HeaderSchemaVisitorOptions,
|
|
194
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
195
|
-
export type {
|
|
196
|
-
default as InfoVisitor,
|
|
197
|
-
InfoVisitorOptions,
|
|
198
|
-
BaseInfoVisitor,
|
|
199
|
-
} from './refractor/visitors/open-api-3-1/info/index.ts';
|
|
200
|
-
export type {
|
|
201
|
-
InfoVersionVisitor,
|
|
202
|
-
InfoVersionVisitorOptions,
|
|
203
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
204
|
-
export type {
|
|
205
|
-
default as LicenseVisitor,
|
|
206
|
-
LicenseVisitorOptions,
|
|
207
|
-
BaseLicenseVisitor,
|
|
208
|
-
} from './refractor/visitors/open-api-3-1/license/index.ts';
|
|
209
|
-
export type {
|
|
210
|
-
default as LinkVisitor,
|
|
211
|
-
LinkVisitorOptions,
|
|
212
|
-
BaseLinkVisitor,
|
|
213
|
-
} from './refractor/visitors/open-api-3-1/link/index.ts';
|
|
214
|
-
export type {
|
|
215
|
-
LinkOperationIdVisitor,
|
|
216
|
-
LinkOperationIdVisitorOptions,
|
|
217
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
218
|
-
export type {
|
|
219
|
-
LinkOperationRefVisitor,
|
|
220
|
-
LinkOperationRefVisitorOptions,
|
|
221
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
222
|
-
export type {
|
|
223
|
-
LinkParametersVisitor,
|
|
224
|
-
LinkParametersVisitorOptions,
|
|
225
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
226
|
-
export type {
|
|
227
|
-
MediaTypeEncodingVisitor,
|
|
228
|
-
MediaTypeEncodingVisitorOptions,
|
|
229
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
230
|
-
export type {
|
|
231
|
-
MediaTypeExamplesVisitor,
|
|
232
|
-
MediaTypeExamplesVisitorOptions,
|
|
233
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
234
|
-
export type {
|
|
235
|
-
default as MediaTypeVisitor,
|
|
236
|
-
MediaTypeVisitorOptions,
|
|
237
|
-
BaseMediaTypeVisitor,
|
|
238
|
-
} from './refractor/visitors/open-api-3-1/media-type/index.ts';
|
|
239
|
-
export type {
|
|
240
|
-
MediaTypeSchemaVisitor,
|
|
241
|
-
MediaTypeSchemaVisitorOptions,
|
|
242
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
243
|
-
export type {
|
|
244
|
-
default as OAuthFlowVisitor,
|
|
245
|
-
OAuthFlowVisitorOptions,
|
|
246
|
-
BaseOAuthFlowVisitor,
|
|
247
|
-
} from './refractor/visitors/open-api-3-1/oauth-flow/index.ts';
|
|
248
|
-
export type {
|
|
249
|
-
OAuthFlowScopesVisitor,
|
|
250
|
-
OAuthFlowScopesVisitorOptions,
|
|
251
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
252
|
-
export type {
|
|
253
|
-
default as OAuthFlowsVisitor,
|
|
254
|
-
OAuthFlowsVisitorOptions,
|
|
255
|
-
BaseOAuthFlowsVisitor,
|
|
256
|
-
} from './refractor/visitors/open-api-3-1/oauth-flows/index.ts';
|
|
257
|
-
export type {
|
|
258
|
-
OperationCallbacksVisitor,
|
|
259
|
-
OperationCallbacksVisitorOptions,
|
|
260
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
261
|
-
export type {
|
|
262
|
-
default as OperationVisitor,
|
|
263
|
-
OperationVisitorOptions,
|
|
264
|
-
BaseOperationVisitor,
|
|
265
|
-
} from './refractor/visitors/open-api-3-1/operation/index.ts';
|
|
266
|
-
export type {
|
|
267
|
-
OperationParametersVisitor,
|
|
268
|
-
OperationParametersVisitorOptions,
|
|
269
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
270
|
-
export type {
|
|
271
|
-
OperationRequestBodyVisitor,
|
|
272
|
-
OperationRequestBodyVisitorOptions,
|
|
273
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
274
|
-
export type {
|
|
275
|
-
OperationSecurityVisitor,
|
|
276
|
-
OperationSecurityVisitorOptions,
|
|
277
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
278
|
-
export type {
|
|
279
|
-
OperationServersVisitor,
|
|
280
|
-
OperationServersVisitorOptions,
|
|
281
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
282
|
-
export type {
|
|
283
|
-
OperationTagsVisitor,
|
|
284
|
-
OperationTagsVisitorOptions,
|
|
285
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
286
|
-
export type {
|
|
287
|
-
ParameterContentVisitor,
|
|
288
|
-
ParameterContentVisitorOptions,
|
|
289
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
290
|
-
export type {
|
|
291
|
-
ParameterExampleVisitor,
|
|
292
|
-
ParameterExamplesVisitorOptions,
|
|
293
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
294
|
-
export type {
|
|
295
|
-
default as ParameterVisitor,
|
|
296
|
-
ParameterVisitorOptions,
|
|
297
|
-
BaseParameterVisitor,
|
|
298
|
-
} from './refractor/visitors/open-api-3-1/parameter/index.ts';
|
|
299
|
-
export type {
|
|
300
|
-
ParameterSchemaVisitor,
|
|
301
|
-
ParameterSchemaVisitorOptions,
|
|
302
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
303
|
-
export type {
|
|
304
|
-
PathItem$RefVisitor,
|
|
305
|
-
PathItem$RefVisitorOptions,
|
|
306
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
307
|
-
export type {
|
|
308
|
-
default as PathItemVisitor,
|
|
309
|
-
PathItemVisitorOptions,
|
|
310
|
-
BasePathItemVisitor,
|
|
311
|
-
} from './refractor/visitors/open-api-3-1/path-item/index.ts';
|
|
312
|
-
export type {
|
|
313
|
-
PathItemParametersVisitor,
|
|
314
|
-
PathItemParametersVisitorOptions,
|
|
315
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
316
|
-
export type {
|
|
317
|
-
PathItemServersVisitor,
|
|
318
|
-
PathItemServersVisitorOptions,
|
|
319
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
320
|
-
export type {
|
|
321
|
-
default as PathsVisitor,
|
|
322
|
-
PathsVisitorOptions,
|
|
323
|
-
BasePathsVisitor,
|
|
324
|
-
} from './refractor/visitors/open-api-3-1/paths/index.ts';
|
|
325
|
-
export type {
|
|
326
|
-
Reference$RefVisitor,
|
|
327
|
-
Reference$RefVisitorOptions,
|
|
328
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
329
|
-
export type {
|
|
330
|
-
default as ReferenceVisitor,
|
|
331
|
-
ReferenceVisitorOptions,
|
|
332
|
-
BaseReferenceVisitor,
|
|
333
|
-
} from './refractor/visitors/open-api-3-1/reference/index.ts';
|
|
334
|
-
export type {
|
|
335
|
-
RequestBodyContentVisitor,
|
|
336
|
-
RequestBodyContentVisitorOptions,
|
|
337
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
338
|
-
export type {
|
|
339
|
-
default as RequestBodyVisitor,
|
|
340
|
-
RequestBodyVisitorOptions,
|
|
341
|
-
BaseRequestBodyVisitor,
|
|
342
|
-
} from './refractor/visitors/open-api-3-1/request-body/index.ts';
|
|
343
|
-
export type {
|
|
344
|
-
ResponseContentVisitor,
|
|
345
|
-
ResponseContentVisitorOptions,
|
|
346
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
347
|
-
export type {
|
|
348
|
-
ResponseHeadersVisitor,
|
|
349
|
-
ResponseHeadersVisitorOptions,
|
|
350
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
351
|
-
export type {
|
|
352
|
-
default as ResponseVisitor,
|
|
353
|
-
ResponseVisitorOptions,
|
|
354
|
-
BaseResponseVisitor,
|
|
355
|
-
} from './refractor/visitors/open-api-3-1/response/index.ts';
|
|
356
|
-
export type {
|
|
357
|
-
ResponseLinksVisitor,
|
|
358
|
-
ResponseLinksVisitorOptions,
|
|
359
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
360
|
-
export type {
|
|
361
|
-
ResponsesDefaultVisitor,
|
|
362
|
-
ResponsesDefaultVisitorOptions,
|
|
363
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
364
|
-
export type {
|
|
365
|
-
default as ResponsesVisitor,
|
|
366
|
-
ResponsesVisitorOptions,
|
|
367
|
-
BaseResponsesVisitor,
|
|
368
|
-
} from './refractor/visitors/open-api-3-1/responses/index.ts';
|
|
369
|
-
export type {
|
|
370
|
-
default as Schema$defsVisitor,
|
|
371
|
-
$defsVisitorOptions as Schema$defsVisitorOptions,
|
|
372
|
-
} from './refractor/visitors/open-api-3-1/schema/$defsVisitor.ts';
|
|
373
|
-
export type { ParentSchemaAwareVisitorOptions } from '@speclynx/apidom-ns-json-schema-2020-12';
|
|
374
|
-
export type {
|
|
375
|
-
$refVisitor as Schema$refVisitor,
|
|
376
|
-
$refVisitorOptions as Schema$refVisitorOptions,
|
|
377
|
-
} from '@speclynx/apidom-ns-json-schema-2020-12';
|
|
378
|
-
export type {
|
|
379
|
-
$vocabularyVisitor as Schema$vocabularyVisitor,
|
|
380
|
-
$vocabularyVisitorOptions as Schema$vocabularyVisitorOptions,
|
|
381
|
-
} from '@speclynx/apidom-ns-json-schema-2020-12';
|
|
382
|
-
export type {
|
|
383
|
-
default as SchemaAllOfVisitor,
|
|
384
|
-
AllOfVisitorOptions as SchemaAllOfVisitorOptions,
|
|
385
|
-
} from './refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts';
|
|
386
|
-
export type {
|
|
387
|
-
default as SchemaAnyOfVisitor,
|
|
388
|
-
AnyOfVisitorOptions as SchemaAnyOfVisitorOptions,
|
|
389
|
-
} from './refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts';
|
|
390
|
-
export type {
|
|
391
|
-
DependentRequiredVisitor as SchemaDependentRequiredVisitor,
|
|
392
|
-
DependentRequiredVisitorOptions as SchemaDependentRequiredVisitorOptions,
|
|
393
|
-
} from '@speclynx/apidom-ns-json-schema-2020-12';
|
|
394
|
-
export type {
|
|
395
|
-
default as SchemaDependentSchemasVisitor,
|
|
396
|
-
DependentSchemasVisitorOptions as SchemaDependentSchemasVisitorOptions,
|
|
397
|
-
} from './refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts';
|
|
398
|
-
export type {
|
|
399
|
-
default as SchemaVisitor,
|
|
400
|
-
SchemaVisitorOptions,
|
|
401
|
-
} from './refractor/visitors/open-api-3-1/schema/index.ts';
|
|
402
|
-
export type {
|
|
403
|
-
default as SchemaOneOfVisitor,
|
|
404
|
-
OneOfVisitorOptions as SchemaOneOfVisitorOptions,
|
|
405
|
-
} from './refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts';
|
|
406
|
-
export type {
|
|
407
|
-
default as SchemaPatternPropertiesVisitor,
|
|
408
|
-
PatternPropertiesVisitorOptions as SchemaPatternPropertiesVisitorOptions,
|
|
409
|
-
} from './refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts';
|
|
410
|
-
export type {
|
|
411
|
-
default as SchemaPrefixItemsVisitor,
|
|
412
|
-
PrefixItemsVisitorOptions as SchemaPrefixItemsVisitorOptions,
|
|
413
|
-
} from './refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts';
|
|
414
|
-
export type {
|
|
415
|
-
default as SchemaPropertiesVisitor,
|
|
416
|
-
PropertiesVisitorOptions as SchemaPropertiesVisitorOptions,
|
|
417
|
-
} from './refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts';
|
|
418
|
-
export type {
|
|
419
|
-
default as SecurityRequirementVisitor,
|
|
420
|
-
SecurityRequirementVisitorOptions,
|
|
421
|
-
BaseSecurityRequirementVisitor,
|
|
422
|
-
} from './refractor/visitors/open-api-3-1/security-requirement/index.ts';
|
|
423
|
-
export type {
|
|
424
|
-
default as SecuritySchemeVisitor,
|
|
425
|
-
SecuritySchemeVisitorOptions,
|
|
426
|
-
BaseSecuritySchemeVisitor,
|
|
427
|
-
} from './refractor/visitors/open-api-3-1/security-scheme/index.ts';
|
|
428
|
-
export type {
|
|
429
|
-
default as ServerVisitor,
|
|
430
|
-
ServerVisitorOptions,
|
|
431
|
-
BaseServerVisitor,
|
|
432
|
-
} from './refractor/visitors/open-api-3-1/server/index.ts';
|
|
433
|
-
export type {
|
|
434
|
-
ServerVariableUrlVisitor,
|
|
435
|
-
ServerVariableUrlVisitorOptions,
|
|
436
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
437
|
-
export type {
|
|
438
|
-
ServerVariableVariablesVisitor,
|
|
439
|
-
ServerVariableVariablesVisitorOptions,
|
|
440
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
441
|
-
export type {
|
|
442
|
-
default as ServerVariableVisitor,
|
|
443
|
-
ServerVariableVisitorOptions,
|
|
444
|
-
BaseServerVariableVisitor,
|
|
445
|
-
} from './refractor/visitors/open-api-3-1/server-variable/index.ts';
|
|
446
|
-
export type {
|
|
447
|
-
default as TagVisitor,
|
|
448
|
-
TagVisitorOptions,
|
|
449
|
-
BaseTagVisitor,
|
|
450
|
-
} from './refractor/visitors/open-api-3-1/tag/index.ts';
|
|
451
|
-
export type {
|
|
452
|
-
default as XmlVisitor,
|
|
453
|
-
XmlVisitorOptions,
|
|
454
|
-
BaseXMLVisitor,
|
|
455
|
-
} from './refractor/visitors/open-api-3-1/xml/index.ts';
|
|
456
|
-
export type { ContentVisitor, ContentVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
457
|
-
export type { ExamplesVisitor, ExamplesVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
458
|
-
export type {
|
|
459
|
-
default as OpenApi3_1Visitor,
|
|
460
|
-
OpenApi3_1VisitorOptions,
|
|
461
|
-
} from './refractor/visitors/open-api-3-1/index.ts';
|
|
462
|
-
export type {
|
|
463
|
-
default as JsonSchemaDialectVisitor,
|
|
464
|
-
JsonSchemaDialectVisitorOptions,
|
|
465
|
-
} from './refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts';
|
|
466
|
-
export type {
|
|
467
|
-
default as WebhooksVisitor,
|
|
468
|
-
WebhooksVisitorOptions,
|
|
469
|
-
} from './refractor/visitors/open-api-3-1/WebhooksVisitor.ts';
|
|
470
|
-
export type {
|
|
471
|
-
default as OpenapiVisitor,
|
|
472
|
-
OpenapiVisitorOptions,
|
|
473
|
-
} from './refractor/visitors/open-api-3-1/OpenapiVisitor.ts';
|
|
474
|
-
export type { ParametersVisitor, ParametersVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
475
|
-
export type { SecurityVisitor, SecurityVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
476
|
-
export type { ServersVisitor, ServersVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
477
|
-
export type { TagsVisitor, TagsVisitorOptions } from '@speclynx/apidom-ns-openapi-3-0';
|
|
478
|
-
|
|
479
|
-
export type { SpecPath } from '@speclynx/apidom-ns-openapi-3-0';
|
|
480
|
-
|
|
481
|
-
export {
|
|
482
|
-
isCallbackElement,
|
|
483
|
-
isComponentsElement,
|
|
484
|
-
isInfoElement,
|
|
485
|
-
isJsonSchemaDialectElement,
|
|
486
|
-
isLicenseElement,
|
|
487
|
-
isOpenapiElement,
|
|
488
|
-
isOpenApi3_1Element,
|
|
489
|
-
isOperationElement,
|
|
490
|
-
isParameterElement,
|
|
491
|
-
isPathItemElement,
|
|
492
|
-
isPathItemElementExternal,
|
|
493
|
-
isReferenceElement,
|
|
494
|
-
isReferenceElementExternal,
|
|
495
|
-
isResponseElement,
|
|
496
|
-
isResponsesElement,
|
|
497
|
-
isSchemaElement,
|
|
498
|
-
isBooleanJSONSchemaElement,
|
|
499
|
-
isMediaTypeElement,
|
|
500
|
-
isServerElement,
|
|
501
|
-
isSecurityRequirementElement,
|
|
502
|
-
isSecuritySchemeElement,
|
|
503
|
-
isExternalDocumentationElement,
|
|
504
|
-
isServerVariableElement,
|
|
505
|
-
isContactElement,
|
|
506
|
-
isExampleElement,
|
|
507
|
-
isLinkElement,
|
|
508
|
-
isRequestBodyElement,
|
|
509
|
-
isPathsElement,
|
|
510
|
-
} from './predicates.ts';
|
|
511
|
-
|
|
512
|
-
export {
|
|
513
|
-
isReferenceLikeElement,
|
|
514
|
-
isOpenApiExtension,
|
|
515
|
-
isServerLikeElement,
|
|
516
|
-
isServersElement,
|
|
517
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
518
|
-
|
|
519
|
-
// OpenAPI 3.1.2 elements
|
|
520
|
-
export {
|
|
521
|
-
CallbackElement,
|
|
522
|
-
ComponentsElement,
|
|
523
|
-
ContactElement,
|
|
524
|
-
DiscriminatorElement,
|
|
525
|
-
EncodingElement,
|
|
526
|
-
ExampleElement,
|
|
527
|
-
ExternalDocumentationElement,
|
|
528
|
-
HeaderElement,
|
|
529
|
-
InfoElement,
|
|
530
|
-
JsonSchemaDialectElement,
|
|
531
|
-
LicenseElement,
|
|
532
|
-
LinkElement,
|
|
533
|
-
MediaTypeElement,
|
|
534
|
-
OAuthFlowElement,
|
|
535
|
-
OAuthFlowsElement,
|
|
536
|
-
OpenapiElement,
|
|
537
|
-
OpenApi3_1Element,
|
|
538
|
-
OperationElement,
|
|
539
|
-
ParameterElement,
|
|
540
|
-
PathItemElement,
|
|
541
|
-
PathsElement,
|
|
542
|
-
ReferenceElement,
|
|
543
|
-
RequestBodyElement,
|
|
544
|
-
ResponseElement,
|
|
545
|
-
ResponsesElement,
|
|
546
|
-
SchemaElement,
|
|
547
|
-
SecurityRequirementElement,
|
|
548
|
-
SecuritySchemeElement,
|
|
549
|
-
ServerElement,
|
|
550
|
-
ServerVariableElement,
|
|
551
|
-
TagElement,
|
|
552
|
-
XmlElement,
|
|
553
|
-
} from './refractor/inspect.ts';
|
|
554
|
-
// NCE types
|
|
555
|
-
export {
|
|
556
|
-
ComponentsCallbacksElement,
|
|
557
|
-
ComponentsExamplesElement,
|
|
558
|
-
ComponentsHeadersElement,
|
|
559
|
-
ComponentsLinksElement,
|
|
560
|
-
ComponentsParametersElement,
|
|
561
|
-
ComponentsRequestBodiesElement,
|
|
562
|
-
ComponentsResponsesElement,
|
|
563
|
-
ComponentsSchemasElement,
|
|
564
|
-
ComponentsSecuritySchemesElement,
|
|
565
|
-
DiscriminatorMappingElement,
|
|
566
|
-
EncodingHeadersElement,
|
|
567
|
-
HeaderContentElement,
|
|
568
|
-
HeaderExamplesElement,
|
|
569
|
-
LinkParametersElement,
|
|
570
|
-
MediaTypeEncodingElement,
|
|
571
|
-
MediaTypeExamplesElement,
|
|
572
|
-
OAuthFlowScopesElement,
|
|
573
|
-
OperationCallbacksElement,
|
|
574
|
-
OperationParametersElement,
|
|
575
|
-
OperationSecurityElement,
|
|
576
|
-
OperationServersElement,
|
|
577
|
-
OperationTagsElement,
|
|
578
|
-
ParameterContentElement,
|
|
579
|
-
ParameterExamplesElement,
|
|
580
|
-
PathItemParametersElement,
|
|
581
|
-
PathItemServersElement,
|
|
582
|
-
RequestBodyContentElement,
|
|
583
|
-
ResponseContentElement,
|
|
584
|
-
ResponseHeadersElement,
|
|
585
|
-
ResponseLinksElement,
|
|
586
|
-
SecurityElement,
|
|
587
|
-
ServersElement,
|
|
588
|
-
ServerVariablesElement,
|
|
589
|
-
TagsElement,
|
|
590
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
591
|
-
export { default as ComponentsPathItemsElement } from './elements/nces/ComponentsPathItems.ts';
|
|
592
|
-
export { default as WebhooksElement } from './elements/nces/Webhooks.ts';
|
package/src/media-types.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { last } from 'ramda';
|
|
2
|
-
import { MediaTypes } from '@speclynx/apidom-core';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export type Format = 'generic' | 'json' | 'yaml';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export class OpenAPIMediaTypes extends MediaTypes<string> {
|
|
13
|
-
filterByFormat(format: Format = 'generic') {
|
|
14
|
-
const effectiveFormat = format === 'generic' ? 'openapi;version' : format;
|
|
15
|
-
return this.filter((mediaType) => mediaType.includes(effectiveFormat));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
findBy(version = '3.1.2', format: Format = 'generic') {
|
|
19
|
-
const search =
|
|
20
|
-
format === 'generic' ? `openapi;version=${version}` : `openapi+${format};version=${version}`;
|
|
21
|
-
const found = this.find((mediaType) => mediaType.includes(search));
|
|
22
|
-
|
|
23
|
-
return found || this.unknownMediaType;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
latest(format: Format = 'generic') {
|
|
27
|
-
return last(this.filterByFormat(format)) as string;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
const mediaTypes = new OpenAPIMediaTypes(
|
|
35
|
-
'application/openapi;version=3.1.0',
|
|
36
|
-
'application/openapi+json;version=3.1.0',
|
|
37
|
-
'application/openapi+yaml;version=3.1.0',
|
|
38
|
-
'application/openapi;version=3.1.1',
|
|
39
|
-
'application/openapi+json;version=3.1.1',
|
|
40
|
-
'application/openapi+yaml;version=3.1.1',
|
|
41
|
-
'application/openapi;version=3.1.2',
|
|
42
|
-
'application/openapi+json;version=3.1.2',
|
|
43
|
-
'application/openapi+yaml;version=3.1.2',
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
export default mediaTypes;
|