@speclynx/apidom-ns-openapi-3-1 3.2.1 → 4.0.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.
- package/CHANGELOG.md +16 -0
- package/dist/apidom-ns-openapi-3-1.browser.js +24 -20
- package/package.json +8 -8
- package/src/elements/Callback.cjs +0 -10
- package/src/elements/Callback.mjs +0 -7
- package/src/elements/Components.cjs +0 -17
- package/src/elements/Components.mjs +0 -14
- package/src/elements/Contact.cjs +0 -10
- package/src/elements/Contact.mjs +0 -7
- package/src/elements/Discriminator.cjs +0 -10
- package/src/elements/Discriminator.mjs +0 -7
- package/src/elements/Encoding.cjs +0 -10
- package/src/elements/Encoding.mjs +0 -7
- package/src/elements/Example.cjs +0 -10
- package/src/elements/Example.mjs +0 -7
- package/src/elements/ExternalDocumentation.cjs +0 -10
- package/src/elements/ExternalDocumentation.mjs +0 -7
- package/src/elements/Header.cjs +0 -17
- package/src/elements/Header.mjs +0 -13
- package/src/elements/Info.cjs +0 -23
- package/src/elements/Info.mjs +0 -19
- package/src/elements/JsonSchemaDialect.cjs +0 -16
- package/src/elements/JsonSchemaDialect.mjs +0 -13
- package/src/elements/License.cjs +0 -17
- package/src/elements/License.mjs +0 -14
- package/src/elements/Link.cjs +0 -10
- package/src/elements/Link.mjs +0 -7
- package/src/elements/MediaType.cjs +0 -17
- package/src/elements/MediaType.mjs +0 -13
- package/src/elements/OAuthFlow.cjs +0 -10
- package/src/elements/OAuthFlow.mjs +0 -7
- package/src/elements/OAuthFlows.cjs +0 -10
- package/src/elements/OAuthFlows.mjs +0 -7
- package/src/elements/OpenApi3-1.cjs +0 -77
- package/src/elements/OpenApi3-1.mjs +0 -73
- package/src/elements/Openapi.cjs +0 -10
- package/src/elements/Openapi.mjs +0 -7
- package/src/elements/Operation.cjs +0 -17
- package/src/elements/Operation.mjs +0 -13
- package/src/elements/Parameter.cjs +0 -17
- package/src/elements/Parameter.mjs +0 -13
- package/src/elements/PathItem.cjs +0 -59
- package/src/elements/PathItem.mjs +0 -55
- package/src/elements/Paths.cjs +0 -10
- package/src/elements/Paths.mjs +0 -7
- package/src/elements/Reference.cjs +0 -28
- package/src/elements/Reference.mjs +0 -25
- package/src/elements/RequestBody.cjs +0 -10
- package/src/elements/RequestBody.mjs +0 -7
- package/src/elements/Response.cjs +0 -10
- package/src/elements/Response.mjs +0 -7
- package/src/elements/Responses.cjs +0 -10
- package/src/elements/Responses.mjs +0 -7
- package/src/elements/Schema.cjs +0 -50
- package/src/elements/Schema.mjs +0 -46
- package/src/elements/SecurityRequirement.cjs +0 -10
- package/src/elements/SecurityRequirement.mjs +0 -7
- package/src/elements/SecurityScheme.cjs +0 -10
- package/src/elements/SecurityScheme.mjs +0 -7
- package/src/elements/Server.cjs +0 -10
- package/src/elements/Server.mjs +0 -7
- package/src/elements/ServerVariable.cjs +0 -10
- package/src/elements/ServerVariable.mjs +0 -7
- package/src/elements/Tag.cjs +0 -10
- package/src/elements/Tag.mjs +0 -7
- package/src/elements/Xml.cjs +0 -10
- package/src/elements/Xml.mjs +0 -7
- package/src/elements/nces/ComponentsPathItems.cjs +0 -16
- package/src/elements/nces/ComponentsPathItems.mjs +0 -13
- package/src/elements/nces/Webhooks.cjs +0 -16
- package/src/elements/nces/Webhooks.mjs +0 -13
- package/src/index.cjs +0 -182
- package/src/index.mjs +0 -31
- package/src/media-types.cjs +0 -34
- package/src/media-types.mjs +0 -30
- package/src/namespace.cjs +0 -81
- package/src/namespace.mjs +0 -76
- package/src/predicates.cjs +0 -228
- package/src/predicates.mjs +0 -195
- package/src/refractor/index.cjs +0 -368
- package/src/refractor/index.mjs +0 -330
- package/src/refractor/inspect.cjs +0 -207
- package/src/refractor/inspect.mjs +0 -171
- package/src/refractor/plugins/normalize-header-examples/NormalizeStorage.cjs +0 -38
- package/src/refractor/plugins/normalize-header-examples/NormalizeStorage.mjs +0 -34
- package/src/refractor/plugins/normalize-header-examples/index.cjs +0 -109
- package/src/refractor/plugins/normalize-header-examples/index.mjs +0 -103
- package/src/refractor/plugins/normalize-operation-ids.cjs +0 -166
- package/src/refractor/plugins/normalize-operation-ids.mjs +0 -161
- package/src/refractor/plugins/normalize-parameter-examples.cjs +0 -109
- package/src/refractor/plugins/normalize-parameter-examples.mjs +0 -103
- package/src/refractor/plugins/normalize-parameters.cjs +0 -109
- package/src/refractor/plugins/normalize-parameters.mjs +0 -103
- package/src/refractor/plugins/normalize-security-requirements.cjs +0 -75
- package/src/refractor/plugins/normalize-security-requirements.mjs +0 -69
- package/src/refractor/plugins/normalize-servers.cjs +0 -124
- package/src/refractor/plugins/normalize-servers.mjs +0 -118
- package/src/refractor/plugins/replace-empty-element.cjs +0 -669
- package/src/refractor/plugins/replace-empty-element.mjs +0 -661
- package/src/refractor/predicates.cjs +0 -36
- package/src/refractor/predicates.mjs +0 -31
- package/src/refractor/specification.cjs +0 -531
- package/src/refractor/specification.mjs +0 -526
- package/src/refractor/toolbox.cjs +0 -61
- package/src/refractor/toolbox.mjs +0 -53
- package/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-3-1/OpenapiVisitor.cjs +0 -25
- package/src/refractor/visitors/open-api-3-1/OpenapiVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-3-1/WebhooksVisitor.cjs +0 -43
- package/src/refractor/visitors/open-api-3-1/WebhooksVisitor.mjs +0 -37
- package/src/refractor/visitors/open-api-3-1/bases.cjs +0 -46
- package/src/refractor/visitors/open-api-3-1/bases.mjs +0 -43
- package/src/refractor/visitors/open-api-3-1/callback/index.cjs +0 -36
- package/src/refractor/visitors/open-api-3-1/callback/index.mjs +0 -31
- package/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.cjs +0 -33
- package/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.cjs +0 -22
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.mjs +0 -17
- package/src/refractor/visitors/open-api-3-1/components/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/components/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/contact/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/contact/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/distriminator/index.cjs +0 -22
- package/src/refractor/visitors/open-api-3-1/distriminator/index.mjs +0 -17
- package/src/refractor/visitors/open-api-3-1/encoding/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/encoding/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/example/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/example/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/external-documentation/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/external-documentation/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/header/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/header/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/index.cjs +0 -41
- package/src/refractor/visitors/open-api-3-1/index.mjs +0 -35
- package/src/refractor/visitors/open-api-3-1/info/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/info/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/license/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/license/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/link/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/link/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/media-type/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/media-type/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/oauth-flow/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/oauth-flow/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/oauth-flows/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/oauth-flows/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/operation/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/operation/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/parameter/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/parameter/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/path-item/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/path-item/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/paths/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/paths/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/reference/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/reference/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/request-body/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/request-body/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/response/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/response/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/responses/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/responses/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.cjs +0 -19
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.cjs +0 -15
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-3-1/schema/index.cjs +0 -76
- package/src/refractor/visitors/open-api-3-1/schema/index.mjs +0 -70
- package/src/refractor/visitors/open-api-3-1/security-requirement/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/security-requirement/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/security-scheme/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/security-scheme/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/server/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/server/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/server-variable/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/server-variable/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/tag/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/tag/index.mjs +0 -16
- package/src/refractor/visitors/open-api-3-1/xml/index.cjs +0 -21
- package/src/refractor/visitors/open-api-3-1/xml/index.mjs +0 -16
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
class OpenApi3_1 extends _apidomDatamodel.ObjectElement {
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.element = 'openApi3_1';
|
|
14
|
-
this.classes.push('api');
|
|
15
|
-
}
|
|
16
|
-
get openapi() {
|
|
17
|
-
return this.get('openapi');
|
|
18
|
-
}
|
|
19
|
-
set openapi(openapi) {
|
|
20
|
-
this.set('openapi', openapi);
|
|
21
|
-
}
|
|
22
|
-
get info() {
|
|
23
|
-
return this.get('info');
|
|
24
|
-
}
|
|
25
|
-
set info(info) {
|
|
26
|
-
this.set('info', info);
|
|
27
|
-
}
|
|
28
|
-
get jsonSchemaDialect() {
|
|
29
|
-
return this.get('jsonSchemaDialect');
|
|
30
|
-
}
|
|
31
|
-
set jsonSchemaDialect(jsonSchemaDialect) {
|
|
32
|
-
this.set('jsonSchemaDialect', jsonSchemaDialect);
|
|
33
|
-
}
|
|
34
|
-
get servers() {
|
|
35
|
-
return this.get('servers');
|
|
36
|
-
}
|
|
37
|
-
set servers(servers) {
|
|
38
|
-
this.set('servers', servers);
|
|
39
|
-
}
|
|
40
|
-
get paths() {
|
|
41
|
-
return this.get('paths');
|
|
42
|
-
}
|
|
43
|
-
set paths(paths) {
|
|
44
|
-
this.set('paths', paths);
|
|
45
|
-
}
|
|
46
|
-
get components() {
|
|
47
|
-
return this.get('components');
|
|
48
|
-
}
|
|
49
|
-
set components(components) {
|
|
50
|
-
this.set('components', components);
|
|
51
|
-
}
|
|
52
|
-
get security() {
|
|
53
|
-
return this.get('security');
|
|
54
|
-
}
|
|
55
|
-
set security(security) {
|
|
56
|
-
this.set('security', security);
|
|
57
|
-
}
|
|
58
|
-
get tags() {
|
|
59
|
-
return this.get('tags');
|
|
60
|
-
}
|
|
61
|
-
set tags(tags) {
|
|
62
|
-
this.set('tags', tags);
|
|
63
|
-
}
|
|
64
|
-
get externalDocs() {
|
|
65
|
-
return this.get('externalDocs');
|
|
66
|
-
}
|
|
67
|
-
set externalDocs(externalDocs) {
|
|
68
|
-
this.set('externalDocs', externalDocs);
|
|
69
|
-
}
|
|
70
|
-
get webhooks() {
|
|
71
|
-
return this.get('webhooks');
|
|
72
|
-
}
|
|
73
|
-
set webhooks(webhooks) {
|
|
74
|
-
this.set('webhooks', webhooks);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
var _default = exports.default = OpenApi3_1;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
class OpenApi3_1 extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'openApi3_1';
|
|
10
|
-
this.classes.push('api');
|
|
11
|
-
}
|
|
12
|
-
get openapi() {
|
|
13
|
-
return this.get('openapi');
|
|
14
|
-
}
|
|
15
|
-
set openapi(openapi) {
|
|
16
|
-
this.set('openapi', openapi);
|
|
17
|
-
}
|
|
18
|
-
get info() {
|
|
19
|
-
return this.get('info');
|
|
20
|
-
}
|
|
21
|
-
set info(info) {
|
|
22
|
-
this.set('info', info);
|
|
23
|
-
}
|
|
24
|
-
get jsonSchemaDialect() {
|
|
25
|
-
return this.get('jsonSchemaDialect');
|
|
26
|
-
}
|
|
27
|
-
set jsonSchemaDialect(jsonSchemaDialect) {
|
|
28
|
-
this.set('jsonSchemaDialect', jsonSchemaDialect);
|
|
29
|
-
}
|
|
30
|
-
get servers() {
|
|
31
|
-
return this.get('servers');
|
|
32
|
-
}
|
|
33
|
-
set servers(servers) {
|
|
34
|
-
this.set('servers', servers);
|
|
35
|
-
}
|
|
36
|
-
get paths() {
|
|
37
|
-
return this.get('paths');
|
|
38
|
-
}
|
|
39
|
-
set paths(paths) {
|
|
40
|
-
this.set('paths', paths);
|
|
41
|
-
}
|
|
42
|
-
get components() {
|
|
43
|
-
return this.get('components');
|
|
44
|
-
}
|
|
45
|
-
set components(components) {
|
|
46
|
-
this.set('components', components);
|
|
47
|
-
}
|
|
48
|
-
get security() {
|
|
49
|
-
return this.get('security');
|
|
50
|
-
}
|
|
51
|
-
set security(security) {
|
|
52
|
-
this.set('security', security);
|
|
53
|
-
}
|
|
54
|
-
get tags() {
|
|
55
|
-
return this.get('tags');
|
|
56
|
-
}
|
|
57
|
-
set tags(tags) {
|
|
58
|
-
this.set('tags', tags);
|
|
59
|
-
}
|
|
60
|
-
get externalDocs() {
|
|
61
|
-
return this.get('externalDocs');
|
|
62
|
-
}
|
|
63
|
-
set externalDocs(externalDocs) {
|
|
64
|
-
this.set('externalDocs', externalDocs);
|
|
65
|
-
}
|
|
66
|
-
get webhooks() {
|
|
67
|
-
return this.get('webhooks');
|
|
68
|
-
}
|
|
69
|
-
set webhooks(webhooks) {
|
|
70
|
-
this.set('webhooks', webhooks);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
export default OpenApi3_1;
|
package/src/elements/Openapi.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Openapi extends _apidomNsOpenapi.OpenapiElement {}
|
|
10
|
-
var _default = exports.default = Openapi;
|
package/src/elements/Openapi.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Operation extends _apidomNsOpenapi.OperationElement {
|
|
10
|
-
get requestBody() {
|
|
11
|
-
return this.get('requestBody');
|
|
12
|
-
}
|
|
13
|
-
set requestBody(requestBody) {
|
|
14
|
-
this.set('requestBody', requestBody);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
var _default = exports.default = Operation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OperationElement } from '@speclynx/apidom-ns-openapi-3-0';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Operation extends OperationElement {
|
|
6
|
-
get requestBody() {
|
|
7
|
-
return this.get('requestBody');
|
|
8
|
-
}
|
|
9
|
-
set requestBody(requestBody) {
|
|
10
|
-
this.set('requestBody', requestBody);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export default Operation;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Parameter extends _apidomNsOpenapi.ParameterElement {
|
|
10
|
-
get schema() {
|
|
11
|
-
return this.get('schema');
|
|
12
|
-
}
|
|
13
|
-
set schema(schema) {
|
|
14
|
-
this.set('schema', schema);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
var _default = exports.default = Parameter;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ParameterElement } from '@speclynx/apidom-ns-openapi-3-0';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Parameter extends ParameterElement {
|
|
6
|
-
get schema() {
|
|
7
|
-
return this.get('schema');
|
|
8
|
-
}
|
|
9
|
-
set schema(schema) {
|
|
10
|
-
this.set('schema', schema);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export default Parameter;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class PathItem extends _apidomNsOpenapi.PathItemElement {
|
|
10
|
-
get getField() {
|
|
11
|
-
return this.get('get');
|
|
12
|
-
}
|
|
13
|
-
set getField(operation) {
|
|
14
|
-
this.set('get', operation);
|
|
15
|
-
}
|
|
16
|
-
get put() {
|
|
17
|
-
return this.get('put');
|
|
18
|
-
}
|
|
19
|
-
set put(operation) {
|
|
20
|
-
this.set('put', operation);
|
|
21
|
-
}
|
|
22
|
-
get post() {
|
|
23
|
-
return this.get('post');
|
|
24
|
-
}
|
|
25
|
-
set post(operation) {
|
|
26
|
-
this.set('post', operation);
|
|
27
|
-
}
|
|
28
|
-
get deleteField() {
|
|
29
|
-
return this.get('delete');
|
|
30
|
-
}
|
|
31
|
-
set deleteField(operation) {
|
|
32
|
-
this.set('delete', operation);
|
|
33
|
-
}
|
|
34
|
-
get options() {
|
|
35
|
-
return this.get('options');
|
|
36
|
-
}
|
|
37
|
-
set options(operation) {
|
|
38
|
-
this.set('options', operation);
|
|
39
|
-
}
|
|
40
|
-
get head() {
|
|
41
|
-
return this.get('head');
|
|
42
|
-
}
|
|
43
|
-
set head(operation) {
|
|
44
|
-
this.set('head', operation);
|
|
45
|
-
}
|
|
46
|
-
get patch() {
|
|
47
|
-
return this.get('patch');
|
|
48
|
-
}
|
|
49
|
-
set patch(operation) {
|
|
50
|
-
this.set('patch', operation);
|
|
51
|
-
}
|
|
52
|
-
get trace() {
|
|
53
|
-
return this.get('trace');
|
|
54
|
-
}
|
|
55
|
-
set trace(operation) {
|
|
56
|
-
this.set('trace', operation);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
var _default = exports.default = PathItem;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { PathItemElement } from '@speclynx/apidom-ns-openapi-3-0';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class PathItem extends PathItemElement {
|
|
6
|
-
get getField() {
|
|
7
|
-
return this.get('get');
|
|
8
|
-
}
|
|
9
|
-
set getField(operation) {
|
|
10
|
-
this.set('get', operation);
|
|
11
|
-
}
|
|
12
|
-
get put() {
|
|
13
|
-
return this.get('put');
|
|
14
|
-
}
|
|
15
|
-
set put(operation) {
|
|
16
|
-
this.set('put', operation);
|
|
17
|
-
}
|
|
18
|
-
get post() {
|
|
19
|
-
return this.get('post');
|
|
20
|
-
}
|
|
21
|
-
set post(operation) {
|
|
22
|
-
this.set('post', operation);
|
|
23
|
-
}
|
|
24
|
-
get deleteField() {
|
|
25
|
-
return this.get('delete');
|
|
26
|
-
}
|
|
27
|
-
set deleteField(operation) {
|
|
28
|
-
this.set('delete', operation);
|
|
29
|
-
}
|
|
30
|
-
get options() {
|
|
31
|
-
return this.get('options');
|
|
32
|
-
}
|
|
33
|
-
set options(operation) {
|
|
34
|
-
this.set('options', operation);
|
|
35
|
-
}
|
|
36
|
-
get head() {
|
|
37
|
-
return this.get('head');
|
|
38
|
-
}
|
|
39
|
-
set head(operation) {
|
|
40
|
-
this.set('head', operation);
|
|
41
|
-
}
|
|
42
|
-
get patch() {
|
|
43
|
-
return this.get('patch');
|
|
44
|
-
}
|
|
45
|
-
set patch(operation) {
|
|
46
|
-
this.set('patch', operation);
|
|
47
|
-
}
|
|
48
|
-
get trace() {
|
|
49
|
-
return this.get('trace');
|
|
50
|
-
}
|
|
51
|
-
set trace(operation) {
|
|
52
|
-
this.set('trace', operation);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export default PathItem;
|
package/src/elements/Paths.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Paths extends _apidomNsOpenapi.PathsElement {}
|
|
10
|
-
var _default = exports.default = Paths;
|
package/src/elements/Paths.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Reference extends _apidomNsOpenapi.ReferenceElement {}
|
|
10
|
-
Object.defineProperty(Reference.prototype, 'description', {
|
|
11
|
-
get() {
|
|
12
|
-
return this.get('description');
|
|
13
|
-
},
|
|
14
|
-
set(description) {
|
|
15
|
-
this.set('description', description);
|
|
16
|
-
},
|
|
17
|
-
enumerable: true
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(Reference.prototype, 'summary', {
|
|
20
|
-
get() {
|
|
21
|
-
return this.get('summary');
|
|
22
|
-
},
|
|
23
|
-
set(description) {
|
|
24
|
-
this.set('summary', description);
|
|
25
|
-
},
|
|
26
|
-
enumerable: true
|
|
27
|
-
});
|
|
28
|
-
var _default = exports.default = Reference;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ReferenceElement } from '@speclynx/apidom-ns-openapi-3-0';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Reference extends ReferenceElement {}
|
|
7
|
-
Object.defineProperty(Reference.prototype, 'description', {
|
|
8
|
-
get() {
|
|
9
|
-
return this.get('description');
|
|
10
|
-
},
|
|
11
|
-
set(description) {
|
|
12
|
-
this.set('description', description);
|
|
13
|
-
},
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(Reference.prototype, 'summary', {
|
|
17
|
-
get() {
|
|
18
|
-
return this.get('summary');
|
|
19
|
-
},
|
|
20
|
-
set(description) {
|
|
21
|
-
this.set('summary', description);
|
|
22
|
-
},
|
|
23
|
-
enumerable: true
|
|
24
|
-
});
|
|
25
|
-
export default Reference;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class RequestBody extends _apidomNsOpenapi.RequestBodyElement {}
|
|
10
|
-
var _default = exports.default = RequestBody;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Response extends _apidomNsOpenapi.ResponseElement {}
|
|
10
|
-
var _default = exports.default = Response;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Responses extends _apidomNsOpenapi.ResponsesElement {}
|
|
10
|
-
var _default = exports.default = Responses;
|
package/src/elements/Schema.cjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsJsonSchema = require("@speclynx/apidom-ns-json-schema-2020-12");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Schema extends _apidomNsJsonSchema.JSONSchemaElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'schema';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* OAS base vocabulary
|
|
17
|
-
*
|
|
18
|
-
* URI: https://spec.openapis.org/oas/v3.1.2.html#base-vocabulary
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
get discriminator() {
|
|
22
|
-
return this.get('discriminator');
|
|
23
|
-
}
|
|
24
|
-
set discriminator(discriminator) {
|
|
25
|
-
this.set('discriminator', discriminator);
|
|
26
|
-
}
|
|
27
|
-
get xml() {
|
|
28
|
-
return this.get('xml');
|
|
29
|
-
}
|
|
30
|
-
set xml(xml) {
|
|
31
|
-
this.set('xml', xml);
|
|
32
|
-
}
|
|
33
|
-
get externalDocs() {
|
|
34
|
-
return this.get('externalDocs');
|
|
35
|
-
}
|
|
36
|
-
set externalDocs(externalDocs) {
|
|
37
|
-
this.set('externalDocs', externalDocs);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated The example property has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
|
|
42
|
-
*/
|
|
43
|
-
get example() {
|
|
44
|
-
return this.get('example');
|
|
45
|
-
}
|
|
46
|
-
set example(example) {
|
|
47
|
-
this.set('example', example);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
var _default = exports.default = Schema;
|
package/src/elements/Schema.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-2020-12';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Schema extends JSONSchemaElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'schema';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* OAS base vocabulary
|
|
13
|
-
*
|
|
14
|
-
* URI: https://spec.openapis.org/oas/v3.1.2.html#base-vocabulary
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
get discriminator() {
|
|
18
|
-
return this.get('discriminator');
|
|
19
|
-
}
|
|
20
|
-
set discriminator(discriminator) {
|
|
21
|
-
this.set('discriminator', discriminator);
|
|
22
|
-
}
|
|
23
|
-
get xml() {
|
|
24
|
-
return this.get('xml');
|
|
25
|
-
}
|
|
26
|
-
set xml(xml) {
|
|
27
|
-
this.set('xml', xml);
|
|
28
|
-
}
|
|
29
|
-
get externalDocs() {
|
|
30
|
-
return this.get('externalDocs');
|
|
31
|
-
}
|
|
32
|
-
set externalDocs(externalDocs) {
|
|
33
|
-
this.set('externalDocs', externalDocs);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated The example property has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
|
|
38
|
-
*/
|
|
39
|
-
get example() {
|
|
40
|
-
return this.get('example');
|
|
41
|
-
}
|
|
42
|
-
set example(example) {
|
|
43
|
-
this.set('example', example);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
export default Schema;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class SecurityRequirement extends _apidomNsOpenapi.SecurityRequirementElement {}
|
|
10
|
-
var _default = exports.default = SecurityRequirement;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class SecurityScheme extends _apidomNsOpenapi.SecuritySchemeElement {}
|
|
10
|
-
var _default = exports.default = SecurityScheme;
|
package/src/elements/Server.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class Server extends _apidomNsOpenapi.ServerElement {}
|
|
10
|
-
var _default = exports.default = Server;
|
package/src/elements/Server.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _apidomNsOpenapi = require("@speclynx/apidom-ns-openapi-3-0");
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
class ServerVariable extends _apidomNsOpenapi.ServerVariableElement {}
|
|
10
|
-
var _default = exports.default = ServerVariable;
|
package/src/elements/Tag.cjs
DELETED