@speclynx/apidom-ns-openapi-2 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 +8 -0
- package/dist/apidom-ns-openapi-2.browser.js +24 -20
- package/package.json +7 -7
- package/src/elements/Contact.cjs +0 -33
- package/src/elements/Contact.mjs +0 -30
- package/src/elements/Definitions.cjs +0 -15
- package/src/elements/Definitions.mjs +0 -12
- package/src/elements/Example.cjs +0 -15
- package/src/elements/Example.mjs +0 -12
- package/src/elements/ExternalDocumentation.cjs +0 -27
- package/src/elements/ExternalDocumentation.mjs +0 -24
- package/src/elements/Header.cjs +0 -185
- package/src/elements/Header.mjs +0 -182
- package/src/elements/Headers.cjs +0 -15
- package/src/elements/Headers.mjs +0 -12
- package/src/elements/Info.cjs +0 -52
- package/src/elements/Info.mjs +0 -48
- package/src/elements/Items.cjs +0 -190
- package/src/elements/Items.mjs +0 -187
- package/src/elements/License.cjs +0 -27
- package/src/elements/License.mjs +0 -24
- package/src/elements/Operation.cjs +0 -78
- package/src/elements/Operation.mjs +0 -74
- package/src/elements/Parameter.cjs +0 -230
- package/src/elements/Parameter.mjs +0 -226
- package/src/elements/ParametersDefinitions.cjs +0 -15
- package/src/elements/ParametersDefinitions.mjs +0 -12
- package/src/elements/PathItem.cjs +0 -69
- package/src/elements/PathItem.mjs +0 -65
- package/src/elements/Paths.cjs +0 -15
- package/src/elements/Paths.mjs +0 -12
- package/src/elements/Reference.cjs +0 -22
- package/src/elements/Reference.mjs +0 -19
- package/src/elements/Response.cjs +0 -39
- package/src/elements/Response.mjs +0 -35
- package/src/elements/Responses.cjs +0 -21
- package/src/elements/Responses.mjs +0 -17
- package/src/elements/ResponsesDefinitions.cjs +0 -15
- package/src/elements/ResponsesDefinitions.mjs +0 -12
- package/src/elements/Schema.cjs +0 -151
- package/src/elements/Schema.mjs +0 -147
- package/src/elements/Scopes.cjs +0 -15
- package/src/elements/Scopes.mjs +0 -12
- package/src/elements/SecurityDefinitions.cjs +0 -15
- package/src/elements/SecurityDefinitions.mjs +0 -12
- package/src/elements/SecurityRequirement.cjs +0 -15
- package/src/elements/SecurityRequirement.mjs +0 -12
- package/src/elements/SecurityScheme.cjs +0 -63
- package/src/elements/SecurityScheme.mjs +0 -60
- package/src/elements/Swagger.cjs +0 -106
- package/src/elements/Swagger.mjs +0 -102
- package/src/elements/SwaggerVersion.cjs +0 -17
- package/src/elements/SwaggerVersion.mjs +0 -14
- package/src/elements/Tag.cjs +0 -33
- package/src/elements/Tag.mjs +0 -29
- package/src/elements/Xml.cjs +0 -45
- package/src/elements/Xml.mjs +0 -42
- package/src/elements/nces/OperationConsumes.cjs +0 -16
- package/src/elements/nces/OperationConsumes.mjs +0 -13
- package/src/elements/nces/OperationParameters.cjs +0 -17
- package/src/elements/nces/OperationParameters.mjs +0 -14
- package/src/elements/nces/OperationProduces.cjs +0 -16
- package/src/elements/nces/OperationProduces.mjs +0 -13
- package/src/elements/nces/OperationSchemes.cjs +0 -16
- package/src/elements/nces/OperationSchemes.mjs +0 -13
- package/src/elements/nces/OperationSecurity.cjs +0 -17
- package/src/elements/nces/OperationSecurity.mjs +0 -14
- package/src/elements/nces/OperationTags.cjs +0 -17
- package/src/elements/nces/OperationTags.mjs +0 -14
- package/src/elements/nces/PathItemParameters.cjs +0 -17
- package/src/elements/nces/PathItemParameters.mjs +0 -14
- package/src/elements/nces/SwaggerConsumes.cjs +0 -16
- package/src/elements/nces/SwaggerConsumes.mjs +0 -13
- package/src/elements/nces/SwaggerProduces.cjs +0 -16
- package/src/elements/nces/SwaggerProduces.mjs +0 -13
- package/src/elements/nces/SwaggerSchemes.cjs +0 -16
- package/src/elements/nces/SwaggerSchemes.mjs +0 -13
- package/src/elements/nces/SwaggerSecurity.cjs +0 -17
- package/src/elements/nces/SwaggerSecurity.mjs +0 -14
- package/src/elements/nces/SwaggerTags.cjs +0 -16
- package/src/elements/nces/SwaggerTags.mjs +0 -13
- package/src/index.cjs +0 -156
- package/src/index.mjs +0 -32
- package/src/media-types.cjs +0 -34
- package/src/media-types.mjs +0 -30
- package/src/namespace.cjs +0 -71
- package/src/namespace.mjs +0 -66
- package/src/predicates.cjs +0 -193
- package/src/predicates.mjs +0 -161
- package/src/refractor/index.cjs +0 -316
- package/src/refractor/index.mjs +0 -283
- package/src/refractor/inspect.cjs +0 -157
- package/src/refractor/inspect.mjs +0 -126
- package/src/refractor/plugins/replace-empty-element.cjs +0 -366
- package/src/refractor/plugins/replace-empty-element.mjs +0 -358
- package/src/refractor/predicates.cjs +0 -26
- package/src/refractor/predicates.mjs +0 -21
- package/src/refractor/specification.cjs +0 -519
- package/src/refractor/specification.mjs +0 -513
- package/src/refractor/toolbox.cjs +0 -28
- package/src/refractor/toolbox.mjs +0 -21
- package/src/refractor/visitors/FallbackVisitor.cjs +0 -24
- package/src/refractor/visitors/FallbackVisitor.mjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +0 -13
- package/src/refractor/visitors/SpecificationVisitor.cjs +0 -75
- package/src/refractor/visitors/SpecificationVisitor.mjs +0 -69
- package/src/refractor/visitors/Visitor.cjs +0 -36
- package/src/refractor/visitors/Visitor.mjs +0 -33
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +0 -42
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +0 -35
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +0 -73
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/generics/MapVisitor.cjs +0 -21
- package/src/refractor/visitors/generics/MapVisitor.mjs +0 -15
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +0 -67
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +0 -61
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +0 -72
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/HostVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/HostVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +0 -21
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +0 -16
- package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/bases.cjs +0 -72
- package/src/refractor/visitors/open-api-2/bases.mjs +0 -67
- package/src/refractor/visitors/open-api-2/contact/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/contact/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/definitions/index.cjs +0 -31
- package/src/refractor/visitors/open-api-2/definitions/index.mjs +0 -26
- package/src/refractor/visitors/open-api-2/example/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/example/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/header/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/header/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/headers/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/headers/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/index.cjs +0 -21
- package/src/refractor/visitors/open-api-2/index.mjs +0 -16
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-2/info/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/info/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/items/index.cjs +0 -22
- package/src/refractor/visitors/open-api-2/items/index.mjs +0 -17
- package/src/refractor/visitors/open-api-2/license/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/license/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/operation/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/parameter/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/parameter/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-2/path-item/index.cjs +0 -39
- package/src/refractor/visitors/open-api-2/path-item/index.mjs +0 -34
- package/src/refractor/visitors/open-api-2/paths/index.cjs +0 -37
- package/src/refractor/visitors/open-api-2/paths/index.mjs +0 -32
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/reference/index.cjs +0 -29
- package/src/refractor/visitors/open-api-2/reference/index.mjs +0 -24
- package/src/refractor/visitors/open-api-2/response/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/response/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +0 -36
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +0 -31
- package/src/refractor/visitors/open-api-2/responses/index.cjs +0 -45
- package/src/refractor/visitors/open-api-2/responses/index.mjs +0 -40
- package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +0 -24
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +0 -26
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +0 -23
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +0 -24
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-2/schema/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/scopes/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/scopes/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/tag/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/tag/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/xml/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/xml/index.mjs +0 -15
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class SecurityDefinitions extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'securityDefinitions';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default SecurityDefinitions;
|
|
@@ -1,15 +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
|
-
class SecurityRequirement extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'securityRequirement';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
var _default = exports.default = SecurityRequirement;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class SecurityRequirement extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'securityRequirement';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default SecurityRequirement;
|
|
@@ -1,63 +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
|
-
class SecurityScheme extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'securityScheme';
|
|
13
|
-
}
|
|
14
|
-
get type() {
|
|
15
|
-
return this.get('type');
|
|
16
|
-
}
|
|
17
|
-
set type(type) {
|
|
18
|
-
this.set('type', type);
|
|
19
|
-
}
|
|
20
|
-
get description() {
|
|
21
|
-
return this.get('description');
|
|
22
|
-
}
|
|
23
|
-
set description(description) {
|
|
24
|
-
this.set('description', description);
|
|
25
|
-
}
|
|
26
|
-
get name() {
|
|
27
|
-
return this.get('name');
|
|
28
|
-
}
|
|
29
|
-
set name(name) {
|
|
30
|
-
this.set('name', name);
|
|
31
|
-
}
|
|
32
|
-
get in() {
|
|
33
|
-
return this.get('in');
|
|
34
|
-
}
|
|
35
|
-
set in(inVal) {
|
|
36
|
-
this.set('in', inVal);
|
|
37
|
-
}
|
|
38
|
-
get flow() {
|
|
39
|
-
return this.get('flow');
|
|
40
|
-
}
|
|
41
|
-
set flow(flow) {
|
|
42
|
-
this.set('flow', flow);
|
|
43
|
-
}
|
|
44
|
-
get authorizationUrl() {
|
|
45
|
-
return this.get('authorizationUrl');
|
|
46
|
-
}
|
|
47
|
-
set authorizationUrl(authorizationUrl) {
|
|
48
|
-
this.set('authorizationUrl', authorizationUrl);
|
|
49
|
-
}
|
|
50
|
-
get tokenUrl() {
|
|
51
|
-
return this.get('tokenUrl');
|
|
52
|
-
}
|
|
53
|
-
set tokenUrl(tokenUrl) {
|
|
54
|
-
this.set('tokenUrl', tokenUrl);
|
|
55
|
-
}
|
|
56
|
-
get scopes() {
|
|
57
|
-
return this.get('scopes');
|
|
58
|
-
}
|
|
59
|
-
set scopes(scopes) {
|
|
60
|
-
this.set('scopes', scopes);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
var _default = exports.default = SecurityScheme;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class SecurityScheme extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'securityScheme';
|
|
10
|
-
}
|
|
11
|
-
get type() {
|
|
12
|
-
return this.get('type');
|
|
13
|
-
}
|
|
14
|
-
set type(type) {
|
|
15
|
-
this.set('type', type);
|
|
16
|
-
}
|
|
17
|
-
get description() {
|
|
18
|
-
return this.get('description');
|
|
19
|
-
}
|
|
20
|
-
set description(description) {
|
|
21
|
-
this.set('description', description);
|
|
22
|
-
}
|
|
23
|
-
get name() {
|
|
24
|
-
return this.get('name');
|
|
25
|
-
}
|
|
26
|
-
set name(name) {
|
|
27
|
-
this.set('name', name);
|
|
28
|
-
}
|
|
29
|
-
get in() {
|
|
30
|
-
return this.get('in');
|
|
31
|
-
}
|
|
32
|
-
set in(inVal) {
|
|
33
|
-
this.set('in', inVal);
|
|
34
|
-
}
|
|
35
|
-
get flow() {
|
|
36
|
-
return this.get('flow');
|
|
37
|
-
}
|
|
38
|
-
set flow(flow) {
|
|
39
|
-
this.set('flow', flow);
|
|
40
|
-
}
|
|
41
|
-
get authorizationUrl() {
|
|
42
|
-
return this.get('authorizationUrl');
|
|
43
|
-
}
|
|
44
|
-
set authorizationUrl(authorizationUrl) {
|
|
45
|
-
this.set('authorizationUrl', authorizationUrl);
|
|
46
|
-
}
|
|
47
|
-
get tokenUrl() {
|
|
48
|
-
return this.get('tokenUrl');
|
|
49
|
-
}
|
|
50
|
-
set tokenUrl(tokenUrl) {
|
|
51
|
-
this.set('tokenUrl', tokenUrl);
|
|
52
|
-
}
|
|
53
|
-
get scopes() {
|
|
54
|
-
return this.get('scopes');
|
|
55
|
-
}
|
|
56
|
-
set scopes(scopes) {
|
|
57
|
-
this.set('scopes', scopes);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export default SecurityScheme;
|
package/src/elements/Swagger.cjs
DELETED
|
@@ -1,106 +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
|
-
class Swagger extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'swagger';
|
|
13
|
-
this.classes.push('api');
|
|
14
|
-
}
|
|
15
|
-
get swagger() {
|
|
16
|
-
return this.get('swagger');
|
|
17
|
-
}
|
|
18
|
-
set swagger(swagger) {
|
|
19
|
-
this.set('swagger', swagger);
|
|
20
|
-
}
|
|
21
|
-
get info() {
|
|
22
|
-
return this.get('info');
|
|
23
|
-
}
|
|
24
|
-
set info(info) {
|
|
25
|
-
this.set('info', info);
|
|
26
|
-
}
|
|
27
|
-
get host() {
|
|
28
|
-
return this.get('host');
|
|
29
|
-
}
|
|
30
|
-
set host(host) {
|
|
31
|
-
this.set('host', host);
|
|
32
|
-
}
|
|
33
|
-
get basePath() {
|
|
34
|
-
return this.get('basePath');
|
|
35
|
-
}
|
|
36
|
-
set basePath(basePath) {
|
|
37
|
-
this.set('basePath', basePath);
|
|
38
|
-
}
|
|
39
|
-
get schemes() {
|
|
40
|
-
return this.get('schemes');
|
|
41
|
-
}
|
|
42
|
-
set schemes(schemes) {
|
|
43
|
-
this.set('schemes', schemes);
|
|
44
|
-
}
|
|
45
|
-
get consumes() {
|
|
46
|
-
return this.get('consumes');
|
|
47
|
-
}
|
|
48
|
-
set consumes(consumes) {
|
|
49
|
-
this.set('consumes', consumes);
|
|
50
|
-
}
|
|
51
|
-
get produces() {
|
|
52
|
-
return this.get('produces');
|
|
53
|
-
}
|
|
54
|
-
set produces(produces) {
|
|
55
|
-
this.set('produces', produces);
|
|
56
|
-
}
|
|
57
|
-
get paths() {
|
|
58
|
-
return this.get('paths');
|
|
59
|
-
}
|
|
60
|
-
set paths(paths) {
|
|
61
|
-
this.set('paths', paths);
|
|
62
|
-
}
|
|
63
|
-
get definitions() {
|
|
64
|
-
return this.get('definitions');
|
|
65
|
-
}
|
|
66
|
-
set definitions(definitions) {
|
|
67
|
-
this.set('definitions', definitions);
|
|
68
|
-
}
|
|
69
|
-
get parameters() {
|
|
70
|
-
return this.get('parameters');
|
|
71
|
-
}
|
|
72
|
-
set parameters(parameters) {
|
|
73
|
-
this.set('parameters', parameters);
|
|
74
|
-
}
|
|
75
|
-
get responses() {
|
|
76
|
-
return this.get('responses');
|
|
77
|
-
}
|
|
78
|
-
set responses(responses) {
|
|
79
|
-
this.set('responses', responses);
|
|
80
|
-
}
|
|
81
|
-
get securityDefinitions() {
|
|
82
|
-
return this.get('securityDefinitions');
|
|
83
|
-
}
|
|
84
|
-
set securityDefinitions(securityDefinitions) {
|
|
85
|
-
this.set('securityDefinitions', securityDefinitions);
|
|
86
|
-
}
|
|
87
|
-
get security() {
|
|
88
|
-
return this.get('security');
|
|
89
|
-
}
|
|
90
|
-
set security(security) {
|
|
91
|
-
this.set('security', security);
|
|
92
|
-
}
|
|
93
|
-
get tags() {
|
|
94
|
-
return this.get('tags');
|
|
95
|
-
}
|
|
96
|
-
set tags(tags) {
|
|
97
|
-
this.set('tags', tags);
|
|
98
|
-
}
|
|
99
|
-
get externalDocs() {
|
|
100
|
-
return this.get('externalDocs');
|
|
101
|
-
}
|
|
102
|
-
set externalDocs(externalDocs) {
|
|
103
|
-
this.set('externalDocs', externalDocs);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
var _default = exports.default = Swagger;
|
package/src/elements/Swagger.mjs
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Swagger extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'swagger';
|
|
9
|
-
this.classes.push('api');
|
|
10
|
-
}
|
|
11
|
-
get swagger() {
|
|
12
|
-
return this.get('swagger');
|
|
13
|
-
}
|
|
14
|
-
set swagger(swagger) {
|
|
15
|
-
this.set('swagger', swagger);
|
|
16
|
-
}
|
|
17
|
-
get info() {
|
|
18
|
-
return this.get('info');
|
|
19
|
-
}
|
|
20
|
-
set info(info) {
|
|
21
|
-
this.set('info', info);
|
|
22
|
-
}
|
|
23
|
-
get host() {
|
|
24
|
-
return this.get('host');
|
|
25
|
-
}
|
|
26
|
-
set host(host) {
|
|
27
|
-
this.set('host', host);
|
|
28
|
-
}
|
|
29
|
-
get basePath() {
|
|
30
|
-
return this.get('basePath');
|
|
31
|
-
}
|
|
32
|
-
set basePath(basePath) {
|
|
33
|
-
this.set('basePath', basePath);
|
|
34
|
-
}
|
|
35
|
-
get schemes() {
|
|
36
|
-
return this.get('schemes');
|
|
37
|
-
}
|
|
38
|
-
set schemes(schemes) {
|
|
39
|
-
this.set('schemes', schemes);
|
|
40
|
-
}
|
|
41
|
-
get consumes() {
|
|
42
|
-
return this.get('consumes');
|
|
43
|
-
}
|
|
44
|
-
set consumes(consumes) {
|
|
45
|
-
this.set('consumes', consumes);
|
|
46
|
-
}
|
|
47
|
-
get produces() {
|
|
48
|
-
return this.get('produces');
|
|
49
|
-
}
|
|
50
|
-
set produces(produces) {
|
|
51
|
-
this.set('produces', produces);
|
|
52
|
-
}
|
|
53
|
-
get paths() {
|
|
54
|
-
return this.get('paths');
|
|
55
|
-
}
|
|
56
|
-
set paths(paths) {
|
|
57
|
-
this.set('paths', paths);
|
|
58
|
-
}
|
|
59
|
-
get definitions() {
|
|
60
|
-
return this.get('definitions');
|
|
61
|
-
}
|
|
62
|
-
set definitions(definitions) {
|
|
63
|
-
this.set('definitions', definitions);
|
|
64
|
-
}
|
|
65
|
-
get parameters() {
|
|
66
|
-
return this.get('parameters');
|
|
67
|
-
}
|
|
68
|
-
set parameters(parameters) {
|
|
69
|
-
this.set('parameters', parameters);
|
|
70
|
-
}
|
|
71
|
-
get responses() {
|
|
72
|
-
return this.get('responses');
|
|
73
|
-
}
|
|
74
|
-
set responses(responses) {
|
|
75
|
-
this.set('responses', responses);
|
|
76
|
-
}
|
|
77
|
-
get securityDefinitions() {
|
|
78
|
-
return this.get('securityDefinitions');
|
|
79
|
-
}
|
|
80
|
-
set securityDefinitions(securityDefinitions) {
|
|
81
|
-
this.set('securityDefinitions', securityDefinitions);
|
|
82
|
-
}
|
|
83
|
-
get security() {
|
|
84
|
-
return this.get('security');
|
|
85
|
-
}
|
|
86
|
-
set security(security) {
|
|
87
|
-
this.set('security', security);
|
|
88
|
-
}
|
|
89
|
-
get tags() {
|
|
90
|
-
return this.get('tags');
|
|
91
|
-
}
|
|
92
|
-
set tags(tags) {
|
|
93
|
-
this.set('tags', tags);
|
|
94
|
-
}
|
|
95
|
-
get externalDocs() {
|
|
96
|
-
return this.get('externalDocs');
|
|
97
|
-
}
|
|
98
|
-
set externalDocs(externalDocs) {
|
|
99
|
-
this.set('externalDocs', externalDocs);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
export default Swagger;
|
|
@@ -1,17 +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
|
-
class SwaggerVersion extends _apidomDatamodel.StringElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'swaggerVersion';
|
|
13
|
-
this.classes.push('spec-version');
|
|
14
|
-
this.classes.push('version');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
var _default = exports.default = SwaggerVersion;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StringElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class SwaggerVersion extends StringElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'swaggerVersion';
|
|
10
|
-
this.classes.push('spec-version');
|
|
11
|
-
this.classes.push('version');
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default SwaggerVersion;
|
package/src/elements/Tag.cjs
DELETED
|
@@ -1,33 +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
|
-
class Tag extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'tag';
|
|
13
|
-
}
|
|
14
|
-
get name() {
|
|
15
|
-
return this.get('name');
|
|
16
|
-
}
|
|
17
|
-
set name(name) {
|
|
18
|
-
this.set('name', name);
|
|
19
|
-
}
|
|
20
|
-
get description() {
|
|
21
|
-
return this.get('description');
|
|
22
|
-
}
|
|
23
|
-
set description(description) {
|
|
24
|
-
this.set('description', description);
|
|
25
|
-
}
|
|
26
|
-
get externalDocs() {
|
|
27
|
-
return this.get('externalDocs');
|
|
28
|
-
}
|
|
29
|
-
set externalDocs(externalDocs) {
|
|
30
|
-
this.set('externalDocs', externalDocs);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
var _default = exports.default = Tag;
|
package/src/elements/Tag.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
/**
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
class Tag extends ObjectElement {
|
|
6
|
-
constructor(content, meta, attributes) {
|
|
7
|
-
super(content, meta, attributes);
|
|
8
|
-
this.element = 'tag';
|
|
9
|
-
}
|
|
10
|
-
get name() {
|
|
11
|
-
return this.get('name');
|
|
12
|
-
}
|
|
13
|
-
set name(name) {
|
|
14
|
-
this.set('name', name);
|
|
15
|
-
}
|
|
16
|
-
get description() {
|
|
17
|
-
return this.get('description');
|
|
18
|
-
}
|
|
19
|
-
set description(description) {
|
|
20
|
-
this.set('description', description);
|
|
21
|
-
}
|
|
22
|
-
get externalDocs() {
|
|
23
|
-
return this.get('externalDocs');
|
|
24
|
-
}
|
|
25
|
-
set externalDocs(externalDocs) {
|
|
26
|
-
this.set('externalDocs', externalDocs);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export default Tag;
|
package/src/elements/Xml.cjs
DELETED
|
@@ -1,45 +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
|
-
class Xml extends _apidomDatamodel.ObjectElement {
|
|
10
|
-
constructor(content, meta, attributes) {
|
|
11
|
-
super(content, meta, attributes);
|
|
12
|
-
this.element = 'xml';
|
|
13
|
-
}
|
|
14
|
-
get name() {
|
|
15
|
-
return this.get('name');
|
|
16
|
-
}
|
|
17
|
-
set name(name) {
|
|
18
|
-
this.set('name', name);
|
|
19
|
-
}
|
|
20
|
-
get namespace() {
|
|
21
|
-
return this.get('namespace');
|
|
22
|
-
}
|
|
23
|
-
set namespace(namespace) {
|
|
24
|
-
this.set('namespace', namespace);
|
|
25
|
-
}
|
|
26
|
-
get prefix() {
|
|
27
|
-
return this.get('prefix');
|
|
28
|
-
}
|
|
29
|
-
set prefix(prefix) {
|
|
30
|
-
this.set('prefix', prefix);
|
|
31
|
-
}
|
|
32
|
-
get attribute() {
|
|
33
|
-
return this.get('attribute');
|
|
34
|
-
}
|
|
35
|
-
set attribute(attribute) {
|
|
36
|
-
this.set('attribute', attribute);
|
|
37
|
-
}
|
|
38
|
-
get wrapped() {
|
|
39
|
-
return this.get('wrapped');
|
|
40
|
-
}
|
|
41
|
-
set wrapped(wrapped) {
|
|
42
|
-
this.set('wrapped', wrapped);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
var _default = exports.default = Xml;
|
package/src/elements/Xml.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class Xml extends ObjectElement {
|
|
7
|
-
constructor(content, meta, attributes) {
|
|
8
|
-
super(content, meta, attributes);
|
|
9
|
-
this.element = 'xml';
|
|
10
|
-
}
|
|
11
|
-
get name() {
|
|
12
|
-
return this.get('name');
|
|
13
|
-
}
|
|
14
|
-
set name(name) {
|
|
15
|
-
this.set('name', name);
|
|
16
|
-
}
|
|
17
|
-
get namespace() {
|
|
18
|
-
return this.get('namespace');
|
|
19
|
-
}
|
|
20
|
-
set namespace(namespace) {
|
|
21
|
-
this.set('namespace', namespace);
|
|
22
|
-
}
|
|
23
|
-
get prefix() {
|
|
24
|
-
return this.get('prefix');
|
|
25
|
-
}
|
|
26
|
-
set prefix(prefix) {
|
|
27
|
-
this.set('prefix', prefix);
|
|
28
|
-
}
|
|
29
|
-
get attribute() {
|
|
30
|
-
return this.get('attribute');
|
|
31
|
-
}
|
|
32
|
-
set attribute(attribute) {
|
|
33
|
-
this.set('attribute', attribute);
|
|
34
|
-
}
|
|
35
|
-
get wrapped() {
|
|
36
|
-
return this.get('wrapped');
|
|
37
|
-
}
|
|
38
|
-
set wrapped(wrapped) {
|
|
39
|
-
this.set('wrapped', wrapped);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export default Xml;
|
|
@@ -1,16 +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
|
-
class OperationConsumes extends _apidomDatamodel.ArrayElement {
|
|
10
|
-
static primaryClass = 'operation-consumes';
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.classes.push(OperationConsumes.primaryClass);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
var _default = exports.default = OperationConsumes;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ArrayElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class OperationConsumes extends ArrayElement {
|
|
7
|
-
static primaryClass = 'operation-consumes';
|
|
8
|
-
constructor(content, meta, attributes) {
|
|
9
|
-
super(content, meta, attributes);
|
|
10
|
-
this.classes.push(OperationConsumes.primaryClass);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export default OperationConsumes;
|
|
@@ -1,17 +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
|
-
class OperationParameters extends _apidomDatamodel.ArrayElement {
|
|
10
|
-
static primaryClass = 'operation-parameters';
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.classes.push(OperationParameters.primaryClass);
|
|
14
|
-
this.classes.push('parameters');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
var _default = exports.default = OperationParameters;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ArrayElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class OperationParameters extends ArrayElement {
|
|
7
|
-
static primaryClass = 'operation-parameters';
|
|
8
|
-
constructor(content, meta, attributes) {
|
|
9
|
-
super(content, meta, attributes);
|
|
10
|
-
this.classes.push(OperationParameters.primaryClass);
|
|
11
|
-
this.classes.push('parameters');
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default OperationParameters;
|
|
@@ -1,16 +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
|
-
class OperationProduces extends _apidomDatamodel.ArrayElement {
|
|
10
|
-
static primaryClass = 'operation-produces';
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.classes.push(OperationProduces.primaryClass);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
var _default = exports.default = OperationProduces;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ArrayElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class OperationProduces extends ArrayElement {
|
|
7
|
-
static primaryClass = 'operation-produces';
|
|
8
|
-
constructor(content, meta, attributes) {
|
|
9
|
-
super(content, meta, attributes);
|
|
10
|
-
this.classes.push(OperationProduces.primaryClass);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export default OperationProduces;
|
|
@@ -1,16 +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
|
-
class OperationSchemes extends _apidomDatamodel.ArrayElement {
|
|
10
|
-
static primaryClass = 'operation-schemes';
|
|
11
|
-
constructor(content, meta, attributes) {
|
|
12
|
-
super(content, meta, attributes);
|
|
13
|
-
this.classes.push(OperationSchemes.primaryClass);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
var _default = exports.default = OperationSchemes;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ArrayElement } from '@speclynx/apidom-datamodel';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
class OperationSchemes extends ArrayElement {
|
|
7
|
-
static primaryClass = 'operation-schemes';
|
|
8
|
-
constructor(content, meta, attributes) {
|
|
9
|
-
super(content, meta, attributes);
|
|
10
|
-
this.classes.push(OperationSchemes.primaryClass);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export default OperationSchemes;
|