@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,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
specificationObj as OpenApi3_1Specification,
|
|
3
|
-
SecuritySchemeVisitorOptions,
|
|
4
|
-
SecuritySchemeVisitor as SecuritySchemeVisitorType,
|
|
5
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
6
|
-
|
|
7
|
-
import SecuritySchemeElement from '../../../../elements/SecurityScheme.ts';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export const BaseSecuritySchemeVisitor: typeof SecuritySchemeVisitorType =
|
|
13
|
-
OpenApi3_1Specification.visitors.document.objects.SecurityScheme.$visitor;
|
|
14
|
-
|
|
15
|
-
export type { SecuritySchemeVisitorOptions };
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
class SecuritySchemeVisitor extends BaseSecuritySchemeVisitor {
|
|
21
|
-
declare public readonly element: SecuritySchemeElement;
|
|
22
|
-
|
|
23
|
-
constructor(options: SecuritySchemeVisitorOptions) {
|
|
24
|
-
super(options);
|
|
25
|
-
this.element = new SecuritySchemeElement();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default SecuritySchemeVisitor;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
specificationObj as OpenApi3_1Specification,
|
|
3
|
-
ServerVisitorOptions,
|
|
4
|
-
ServerVisitor as ServerVisitorType,
|
|
5
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
6
|
-
|
|
7
|
-
import ServerElement from '../../../../elements/Server.ts';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export const BaseServerVisitor: typeof ServerVisitorType =
|
|
13
|
-
OpenApi3_1Specification.visitors.document.objects.Server.$visitor;
|
|
14
|
-
|
|
15
|
-
export type { ServerVisitorOptions };
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
class ServerVisitor extends BaseServerVisitor {
|
|
21
|
-
declare public readonly element: ServerElement;
|
|
22
|
-
|
|
23
|
-
constructor(options: ServerVisitorOptions) {
|
|
24
|
-
super(options);
|
|
25
|
-
this.element = new ServerElement();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default ServerVisitor;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
specificationObj as OpenApi3_1Specification,
|
|
3
|
-
ServerVariableVisitorOptions,
|
|
4
|
-
ServerVariableVisitor as ServerVariableVisitorType,
|
|
5
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
6
|
-
|
|
7
|
-
import ServerVariableElement from '../../../../elements/ServerVariable.ts';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export const BaseServerVariableVisitor: typeof ServerVariableVisitorType =
|
|
13
|
-
OpenApi3_1Specification.visitors.document.objects.ServerVariable.$visitor;
|
|
14
|
-
|
|
15
|
-
export type { ServerVariableVisitorOptions };
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
class ServerVariableVisitor extends BaseServerVariableVisitor {
|
|
21
|
-
declare public readonly element: ServerVariableElement;
|
|
22
|
-
|
|
23
|
-
constructor(options: ServerVariableVisitorOptions) {
|
|
24
|
-
super(options);
|
|
25
|
-
this.element = new ServerVariableElement();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default ServerVariableVisitor;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
specificationObj as OpenApi3_1Specification,
|
|
3
|
-
TagVisitorOptions,
|
|
4
|
-
TagVisitor as TagVisitorType,
|
|
5
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
6
|
-
|
|
7
|
-
import TagElement from '../../../../elements/Tag.ts';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export const BaseTagVisitor: typeof TagVisitorType =
|
|
13
|
-
OpenApi3_1Specification.visitors.document.objects.Tag.$visitor;
|
|
14
|
-
|
|
15
|
-
export type { TagVisitorOptions };
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
class TagVisitor extends BaseTagVisitor {
|
|
21
|
-
declare public readonly element: TagElement;
|
|
22
|
-
|
|
23
|
-
constructor(options: TagVisitorOptions) {
|
|
24
|
-
super(options);
|
|
25
|
-
this.element = new TagElement();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default TagVisitor;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
specificationObj as OpenApi3_1Specification,
|
|
3
|
-
XmlVisitorOptions,
|
|
4
|
-
XmlVisitor as XmlVisitorType,
|
|
5
|
-
} from '@speclynx/apidom-ns-openapi-3-0';
|
|
6
|
-
|
|
7
|
-
import XmlElement from '../../../../elements/Xml.ts';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export const BaseXMLVisitor: typeof XmlVisitorType =
|
|
13
|
-
OpenApi3_1Specification.visitors.document.objects.XML.$visitor;
|
|
14
|
-
|
|
15
|
-
export type { XmlVisitorOptions };
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
class XmlVisitor extends BaseXMLVisitor {
|
|
21
|
-
declare public readonly element: XmlElement;
|
|
22
|
-
|
|
23
|
-
constructor(options: XmlVisitorOptions) {
|
|
24
|
-
super(options);
|
|
25
|
-
this.element = new XmlElement();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default XmlVisitor;
|