@speclynx/apidom-ns-openapi-2 1.12.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 +84 -0
- package/LICENSE +202 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/LICENSES/MIT.txt +9 -0
- package/NOTICE +65 -0
- package/README.md +215 -0
- package/dist/apidom-ns-openapi-2.browser.js +23072 -0
- package/dist/apidom-ns-openapi-2.browser.min.js +1 -0
- package/package.json +65 -0
- package/src/elements/Contact.cjs +33 -0
- package/src/elements/Contact.mjs +30 -0
- package/src/elements/Definitions.cjs +15 -0
- package/src/elements/Definitions.mjs +12 -0
- package/src/elements/Example.cjs +15 -0
- package/src/elements/Example.mjs +12 -0
- package/src/elements/ExternalDocumentation.cjs +27 -0
- package/src/elements/ExternalDocumentation.mjs +24 -0
- package/src/elements/Header.cjs +185 -0
- package/src/elements/Header.mjs +182 -0
- package/src/elements/Headers.cjs +15 -0
- package/src/elements/Headers.mjs +12 -0
- package/src/elements/Info.cjs +52 -0
- package/src/elements/Info.mjs +48 -0
- package/src/elements/Items.cjs +190 -0
- package/src/elements/Items.mjs +187 -0
- package/src/elements/License.cjs +27 -0
- package/src/elements/License.mjs +24 -0
- package/src/elements/Operation.cjs +78 -0
- package/src/elements/Operation.mjs +74 -0
- package/src/elements/Parameter.cjs +230 -0
- package/src/elements/Parameter.mjs +226 -0
- package/src/elements/ParametersDefinitions.cjs +15 -0
- package/src/elements/ParametersDefinitions.mjs +12 -0
- package/src/elements/PathItem.cjs +69 -0
- package/src/elements/PathItem.mjs +65 -0
- package/src/elements/Paths.cjs +15 -0
- package/src/elements/Paths.mjs +12 -0
- package/src/elements/Reference.cjs +22 -0
- package/src/elements/Reference.mjs +19 -0
- package/src/elements/Response.cjs +39 -0
- package/src/elements/Response.mjs +35 -0
- package/src/elements/Responses.cjs +21 -0
- package/src/elements/Responses.mjs +17 -0
- package/src/elements/ResponsesDefinitions.cjs +15 -0
- package/src/elements/ResponsesDefinitions.mjs +12 -0
- package/src/elements/Schema.cjs +116 -0
- package/src/elements/Schema.mjs +113 -0
- package/src/elements/Scopes.cjs +15 -0
- package/src/elements/Scopes.mjs +12 -0
- package/src/elements/SecurityDefinitions.cjs +15 -0
- package/src/elements/SecurityDefinitions.mjs +12 -0
- package/src/elements/SecurityRequirement.cjs +15 -0
- package/src/elements/SecurityRequirement.mjs +12 -0
- package/src/elements/SecurityScheme.cjs +63 -0
- package/src/elements/SecurityScheme.mjs +60 -0
- package/src/elements/Swagger.cjs +106 -0
- package/src/elements/Swagger.mjs +102 -0
- package/src/elements/SwaggerVersion.cjs +17 -0
- package/src/elements/SwaggerVersion.mjs +14 -0
- package/src/elements/Tag.cjs +33 -0
- package/src/elements/Tag.mjs +29 -0
- package/src/elements/Xml.cjs +45 -0
- package/src/elements/Xml.mjs +42 -0
- package/src/elements/nces/OperationConsumes.cjs +16 -0
- package/src/elements/nces/OperationConsumes.mjs +13 -0
- package/src/elements/nces/OperationParameters.cjs +17 -0
- package/src/elements/nces/OperationParameters.mjs +14 -0
- package/src/elements/nces/OperationProduces.cjs +16 -0
- package/src/elements/nces/OperationProduces.mjs +13 -0
- package/src/elements/nces/OperationSchemes.cjs +16 -0
- package/src/elements/nces/OperationSchemes.mjs +13 -0
- package/src/elements/nces/OperationSecurity.cjs +17 -0
- package/src/elements/nces/OperationSecurity.mjs +14 -0
- package/src/elements/nces/OperationTags.cjs +17 -0
- package/src/elements/nces/OperationTags.mjs +14 -0
- package/src/elements/nces/PathItemParameters.cjs +17 -0
- package/src/elements/nces/PathItemParameters.mjs +14 -0
- package/src/elements/nces/SwaggerConsumes.cjs +16 -0
- package/src/elements/nces/SwaggerConsumes.mjs +13 -0
- package/src/elements/nces/SwaggerProduces.cjs +16 -0
- package/src/elements/nces/SwaggerProduces.mjs +13 -0
- package/src/elements/nces/SwaggerSchemes.cjs +16 -0
- package/src/elements/nces/SwaggerSchemes.mjs +13 -0
- package/src/elements/nces/SwaggerSecurity.cjs +17 -0
- package/src/elements/nces/SwaggerSecurity.mjs +14 -0
- package/src/elements/nces/SwaggerTags.cjs +16 -0
- package/src/elements/nces/SwaggerTags.mjs +13 -0
- package/src/index.cjs +135 -0
- package/src/index.mjs +31 -0
- package/src/media-types.cjs +34 -0
- package/src/media-types.mjs +30 -0
- package/src/namespace.cjs +71 -0
- package/src/namespace.mjs +66 -0
- package/src/predicates.cjs +329 -0
- package/src/predicates.mjs +324 -0
- package/src/refractor/index.cjs +52 -0
- package/src/refractor/index.mjs +46 -0
- package/src/refractor/plugins/replace-empty-element.cjs +358 -0
- package/src/refractor/plugins/replace-empty-element.mjs +350 -0
- package/src/refractor/predicates.cjs +25 -0
- package/src/refractor/predicates.mjs +20 -0
- package/src/refractor/registration.cjs +87 -0
- package/src/refractor/registration.mjs +56 -0
- package/src/refractor/specification.cjs +490 -0
- package/src/refractor/specification.mjs +484 -0
- package/src/refractor/toolbox.cjs +23 -0
- package/src/refractor/toolbox.mjs +17 -0
- package/src/refractor/visitors/FallbackVisitor.cjs +24 -0
- package/src/refractor/visitors/FallbackVisitor.mjs +18 -0
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +18 -0
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +13 -0
- package/src/refractor/visitors/SpecificationVisitor.cjs +74 -0
- package/src/refractor/visitors/SpecificationVisitor.mjs +68 -0
- package/src/refractor/visitors/Visitor.cjs +31 -0
- package/src/refractor/visitors/Visitor.mjs +28 -0
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +42 -0
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +35 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +67 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +60 -0
- package/src/refractor/visitors/generics/MapVisitor.cjs +21 -0
- package/src/refractor/visitors/generics/MapVisitor.mjs +15 -0
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +60 -0
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +54 -0
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +67 -0
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +61 -0
- package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +17 -0
- package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +12 -0
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/HostVisitor.cjs +17 -0
- package/src/refractor/visitors/open-api-2/HostVisitor.mjs +12 -0
- package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +33 -0
- package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +27 -0
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +26 -0
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +20 -0
- package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +33 -0
- package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +27 -0
- package/src/refractor/visitors/open-api-2/contact/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/contact/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/definitions/index.cjs +38 -0
- package/src/refractor/visitors/open-api-2/definitions/index.mjs +32 -0
- package/src/refractor/visitors/open-api-2/example/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/example/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/header/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/header/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/headers/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/headers/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +18 -0
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +13 -0
- package/src/refractor/visitors/open-api-2/info/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/info/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/items/index.cjs +28 -0
- package/src/refractor/visitors/open-api-2/items/index.mjs +22 -0
- package/src/refractor/visitors/open-api-2/license/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/license/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +38 -0
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +32 -0
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +33 -0
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +27 -0
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +22 -0
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +17 -0
- package/src/refractor/visitors/open-api-2/operation/index.cjs +25 -0
- package/src/refractor/visitors/open-api-2/operation/index.mjs +19 -0
- package/src/refractor/visitors/open-api-2/parameter/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/parameter/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +25 -0
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +19 -0
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +17 -0
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +12 -0
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +38 -0
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +32 -0
- package/src/refractor/visitors/open-api-2/path-item/index.cjs +45 -0
- package/src/refractor/visitors/open-api-2/path-item/index.mjs +39 -0
- package/src/refractor/visitors/open-api-2/paths/index.cjs +43 -0
- package/src/refractor/visitors/open-api-2/paths/index.mjs +37 -0
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +17 -0
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +12 -0
- package/src/refractor/visitors/open-api-2/reference/index.cjs +36 -0
- package/src/refractor/visitors/open-api-2/reference/index.mjs +30 -0
- package/src/refractor/visitors/open-api-2/response/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/response/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +42 -0
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +36 -0
- package/src/refractor/visitors/open-api-2/responses/index.cjs +52 -0
- package/src/refractor/visitors/open-api-2/responses/index.mjs +46 -0
- package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +25 -0
- package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +19 -0
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +25 -0
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +21 -0
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +32 -0
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +28 -0
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +25 -0
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +21 -0
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +24 -0
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +20 -0
- package/src/refractor/visitors/open-api-2/schema/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/schema/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/scopes/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/scopes/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +25 -0
- package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +19 -0
- package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/tag/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/tag/index.mjs +20 -0
- package/src/refractor/visitors/open-api-2/xml/index.cjs +26 -0
- package/src/refractor/visitors/open-api-2/xml/index.mjs +20 -0
- package/src/traversal/visitor.cjs +56 -0
- package/src/traversal/visitor.mjs +53 -0
- package/types/apidom-ns-openapi-2.d.ts +2485 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomError = require("@speclynx/apidom-error");
|
|
6
|
+
var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-4");
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
class Parameter extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
|
|
11
|
+
constructor(content, meta, attributes) {
|
|
12
|
+
super(content, meta, attributes);
|
|
13
|
+
this.element = 'parameter';
|
|
14
|
+
this.classes.push('json-schema-draft-4');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Core vocabulary
|
|
19
|
+
*
|
|
20
|
+
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
get idProp() {
|
|
24
|
+
throw new _apidomError.UnsupportedOperationError('idProp getter in Parameter class is not not supported.');
|
|
25
|
+
}
|
|
26
|
+
set idProp(idProps) {
|
|
27
|
+
throw new _apidomError.UnsupportedOperationError('idProp setter in Parameter class is not not supported.');
|
|
28
|
+
}
|
|
29
|
+
get $schema() {
|
|
30
|
+
throw new _apidomError.UnsupportedOperationError('$schema getter in Parameter class is not not supported.');
|
|
31
|
+
}
|
|
32
|
+
set $schema($schema) {
|
|
33
|
+
throw new _apidomError.UnsupportedOperationError('$schema setter in Parameter class is not not supported.');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Validation keywords for arrays
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
get additionalItems() {
|
|
41
|
+
throw new _apidomError.UnsupportedOperationError('additionalItems getter in Parameter class is not not supported.');
|
|
42
|
+
}
|
|
43
|
+
set additionalItems(additionalItems) {
|
|
44
|
+
throw new _apidomError.UnsupportedOperationError('additionalItems setter in Parameter class is not not supported.');
|
|
45
|
+
}
|
|
46
|
+
get items() {
|
|
47
|
+
return this.get('items');
|
|
48
|
+
}
|
|
49
|
+
set items(items) {
|
|
50
|
+
this.set('items', items);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Validation keywords for objects
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
get maxProperties() {
|
|
58
|
+
throw new _apidomError.UnsupportedOperationError('maxProperties getter in Parameter class is not not supported.');
|
|
59
|
+
}
|
|
60
|
+
set maxProperties(maxProperties) {
|
|
61
|
+
throw new _apidomError.UnsupportedOperationError('maxProperties setter in Parameter class is not not supported.');
|
|
62
|
+
}
|
|
63
|
+
get minProperties() {
|
|
64
|
+
throw new _apidomError.UnsupportedOperationError('minProperties getter in Parameter class is not not supported.');
|
|
65
|
+
}
|
|
66
|
+
set minProperties(minProperties) {
|
|
67
|
+
throw new _apidomError.UnsupportedOperationError('minProperties setter in Parameter class is not not supported.');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
71
|
+
get required() {
|
|
72
|
+
return this.get('required');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
set required(required) {
|
|
77
|
+
this.set('required', required);
|
|
78
|
+
}
|
|
79
|
+
get properties() {
|
|
80
|
+
throw new _apidomError.UnsupportedOperationError('properties getter in Parameter class is not not supported.');
|
|
81
|
+
}
|
|
82
|
+
set properties(properties) {
|
|
83
|
+
throw new _apidomError.UnsupportedOperationError('properties setter in Parameter class is not not supported.');
|
|
84
|
+
}
|
|
85
|
+
get additionalProperties() {
|
|
86
|
+
throw new _apidomError.UnsupportedOperationError('additionalProperties getter in Parameter class is not not supported.');
|
|
87
|
+
}
|
|
88
|
+
set additionalProperties(additionalProperties) {
|
|
89
|
+
throw new _apidomError.UnsupportedOperationError('additionalProperties setter in Parameter class is not not supported.');
|
|
90
|
+
}
|
|
91
|
+
get patternProperties() {
|
|
92
|
+
throw new _apidomError.UnsupportedOperationError('patternProperties getter in Parameter class is not not supported.');
|
|
93
|
+
}
|
|
94
|
+
set patternProperties(patternProperties) {
|
|
95
|
+
throw new _apidomError.UnsupportedOperationError('patternProperties setter in Parameter class is not not supported.');
|
|
96
|
+
}
|
|
97
|
+
get dependencies() {
|
|
98
|
+
throw new _apidomError.UnsupportedOperationError('dependencies getter in Parameter class is not not supported.');
|
|
99
|
+
}
|
|
100
|
+
set dependencies(dependencies) {
|
|
101
|
+
throw new _apidomError.UnsupportedOperationError('dependencies setter in Parameter class is not not supported.');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Validation keywords for any instance type
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
get type() {
|
|
109
|
+
return this.get('type');
|
|
110
|
+
}
|
|
111
|
+
set type(type) {
|
|
112
|
+
this.set('type', type);
|
|
113
|
+
}
|
|
114
|
+
get allOf() {
|
|
115
|
+
throw new _apidomError.UnsupportedOperationError('allOf getter in Parameter class is not not supported.');
|
|
116
|
+
}
|
|
117
|
+
set allOf(allOf) {
|
|
118
|
+
throw new _apidomError.UnsupportedOperationError('allOf setter in Parameter class is not not supported.');
|
|
119
|
+
}
|
|
120
|
+
get anyOf() {
|
|
121
|
+
throw new _apidomError.UnsupportedOperationError('anyOf getter in Parameter class is not not supported.');
|
|
122
|
+
}
|
|
123
|
+
set anyOf(anyOf) {
|
|
124
|
+
throw new _apidomError.UnsupportedOperationError('anyOf setter in Parameter class is not not supported.');
|
|
125
|
+
}
|
|
126
|
+
get oneOf() {
|
|
127
|
+
throw new _apidomError.UnsupportedOperationError('oneOf getter in Parameter class is not not supported.');
|
|
128
|
+
}
|
|
129
|
+
set oneOf(oneOf) {
|
|
130
|
+
throw new _apidomError.UnsupportedOperationError('oneOf setter in Parameter class is not not supported.');
|
|
131
|
+
}
|
|
132
|
+
get not() {
|
|
133
|
+
throw new _apidomError.UnsupportedOperationError('not getter in Parameter class is not not supported.');
|
|
134
|
+
}
|
|
135
|
+
set not(not) {
|
|
136
|
+
throw new _apidomError.UnsupportedOperationError('not setter in Parameter class is not not supported.');
|
|
137
|
+
}
|
|
138
|
+
get definitions() {
|
|
139
|
+
throw new _apidomError.UnsupportedOperationError('definitions getter in Parameter class is not not supported.');
|
|
140
|
+
}
|
|
141
|
+
set definitions(definitions) {
|
|
142
|
+
throw new _apidomError.UnsupportedOperationError('definitions setter in Parameter class is not not supported.');
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Metadata keywords
|
|
147
|
+
*
|
|
148
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
get title() {
|
|
152
|
+
throw new _apidomError.UnsupportedOperationError('title getter in Parameter class is not not supported.');
|
|
153
|
+
}
|
|
154
|
+
set title(title) {
|
|
155
|
+
throw new _apidomError.UnsupportedOperationError('title setter in Parameter class is not not supported.');
|
|
156
|
+
}
|
|
157
|
+
get description() {
|
|
158
|
+
return this.get('description');
|
|
159
|
+
}
|
|
160
|
+
set description(description) {
|
|
161
|
+
this.set('description,', description);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Semantic validation with "format"
|
|
166
|
+
*
|
|
167
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
get format() {
|
|
171
|
+
return this.get('format');
|
|
172
|
+
}
|
|
173
|
+
set format(format) {
|
|
174
|
+
this.set('format', format);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* JSON Hyper-Schema
|
|
179
|
+
*
|
|
180
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
get base() {
|
|
184
|
+
throw new _apidomError.UnsupportedOperationError('base getter in Parameter class is not not supported.');
|
|
185
|
+
}
|
|
186
|
+
set base(base) {
|
|
187
|
+
throw new _apidomError.UnsupportedOperationError('base setter in Parameter class is not not supported.');
|
|
188
|
+
}
|
|
189
|
+
get links() {
|
|
190
|
+
throw new _apidomError.UnsupportedOperationError('links getter in Parameter class is not not supported.');
|
|
191
|
+
}
|
|
192
|
+
set links(links) {
|
|
193
|
+
throw new _apidomError.UnsupportedOperationError('links setter in Parameter class is not not supported.');
|
|
194
|
+
}
|
|
195
|
+
get media() {
|
|
196
|
+
throw new _apidomError.UnsupportedOperationError('media getter in Parameter class is not not supported.');
|
|
197
|
+
}
|
|
198
|
+
set media(media) {
|
|
199
|
+
throw new _apidomError.UnsupportedOperationError('media setter in Parameter class is not not supported.');
|
|
200
|
+
}
|
|
201
|
+
get readOnly() {
|
|
202
|
+
throw new _apidomError.UnsupportedOperationError('readOnly getter in Parameter class is not not supported.');
|
|
203
|
+
}
|
|
204
|
+
set readOnly(readOnly) {
|
|
205
|
+
throw new _apidomError.UnsupportedOperationError('readOnly setter in Parameter class is not not supported.');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* OpenAPI vocabulary
|
|
210
|
+
*/
|
|
211
|
+
get name() {
|
|
212
|
+
return this.get('name');
|
|
213
|
+
}
|
|
214
|
+
set name(name) {
|
|
215
|
+
this.set('name', name);
|
|
216
|
+
}
|
|
217
|
+
get in() {
|
|
218
|
+
return this.get('in');
|
|
219
|
+
}
|
|
220
|
+
set in(val) {
|
|
221
|
+
this.set('in', val);
|
|
222
|
+
}
|
|
223
|
+
get schema() {
|
|
224
|
+
return this.get('schema');
|
|
225
|
+
}
|
|
226
|
+
set schema(schema) {
|
|
227
|
+
this.set('schema', schema);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
var _default = exports.default = Parameter;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { UnsupportedOperationError } from '@speclynx/apidom-error';
|
|
2
|
+
import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class Parameter extends JSONSchemaElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'parameter';
|
|
10
|
+
this.classes.push('json-schema-draft-4');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Core vocabulary
|
|
15
|
+
*
|
|
16
|
+
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
get idProp() {
|
|
20
|
+
throw new UnsupportedOperationError('idProp getter in Parameter class is not not supported.');
|
|
21
|
+
}
|
|
22
|
+
set idProp(idProps) {
|
|
23
|
+
throw new UnsupportedOperationError('idProp setter in Parameter class is not not supported.');
|
|
24
|
+
}
|
|
25
|
+
get $schema() {
|
|
26
|
+
throw new UnsupportedOperationError('$schema getter in Parameter class is not not supported.');
|
|
27
|
+
}
|
|
28
|
+
set $schema($schema) {
|
|
29
|
+
throw new UnsupportedOperationError('$schema setter in Parameter class is not not supported.');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Validation keywords for arrays
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
get additionalItems() {
|
|
37
|
+
throw new UnsupportedOperationError('additionalItems getter in Parameter class is not not supported.');
|
|
38
|
+
}
|
|
39
|
+
set additionalItems(additionalItems) {
|
|
40
|
+
throw new UnsupportedOperationError('additionalItems setter in Parameter class is not not supported.');
|
|
41
|
+
}
|
|
42
|
+
get items() {
|
|
43
|
+
return this.get('items');
|
|
44
|
+
}
|
|
45
|
+
set items(items) {
|
|
46
|
+
this.set('items', items);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Validation keywords for objects
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
get maxProperties() {
|
|
54
|
+
throw new UnsupportedOperationError('maxProperties getter in Parameter class is not not supported.');
|
|
55
|
+
}
|
|
56
|
+
set maxProperties(maxProperties) {
|
|
57
|
+
throw new UnsupportedOperationError('maxProperties setter in Parameter class is not not supported.');
|
|
58
|
+
}
|
|
59
|
+
get minProperties() {
|
|
60
|
+
throw new UnsupportedOperationError('minProperties getter in Parameter class is not not supported.');
|
|
61
|
+
}
|
|
62
|
+
set minProperties(minProperties) {
|
|
63
|
+
throw new UnsupportedOperationError('minProperties setter in Parameter class is not not supported.');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
|
+
get required() {
|
|
68
|
+
return this.get('required');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
|
+
set required(required) {
|
|
73
|
+
this.set('required', required);
|
|
74
|
+
}
|
|
75
|
+
get properties() {
|
|
76
|
+
throw new UnsupportedOperationError('properties getter in Parameter class is not not supported.');
|
|
77
|
+
}
|
|
78
|
+
set properties(properties) {
|
|
79
|
+
throw new UnsupportedOperationError('properties setter in Parameter class is not not supported.');
|
|
80
|
+
}
|
|
81
|
+
get additionalProperties() {
|
|
82
|
+
throw new UnsupportedOperationError('additionalProperties getter in Parameter class is not not supported.');
|
|
83
|
+
}
|
|
84
|
+
set additionalProperties(additionalProperties) {
|
|
85
|
+
throw new UnsupportedOperationError('additionalProperties setter in Parameter class is not not supported.');
|
|
86
|
+
}
|
|
87
|
+
get patternProperties() {
|
|
88
|
+
throw new UnsupportedOperationError('patternProperties getter in Parameter class is not not supported.');
|
|
89
|
+
}
|
|
90
|
+
set patternProperties(patternProperties) {
|
|
91
|
+
throw new UnsupportedOperationError('patternProperties setter in Parameter class is not not supported.');
|
|
92
|
+
}
|
|
93
|
+
get dependencies() {
|
|
94
|
+
throw new UnsupportedOperationError('dependencies getter in Parameter class is not not supported.');
|
|
95
|
+
}
|
|
96
|
+
set dependencies(dependencies) {
|
|
97
|
+
throw new UnsupportedOperationError('dependencies setter in Parameter class is not not supported.');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Validation keywords for any instance type
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
get type() {
|
|
105
|
+
return this.get('type');
|
|
106
|
+
}
|
|
107
|
+
set type(type) {
|
|
108
|
+
this.set('type', type);
|
|
109
|
+
}
|
|
110
|
+
get allOf() {
|
|
111
|
+
throw new UnsupportedOperationError('allOf getter in Parameter class is not not supported.');
|
|
112
|
+
}
|
|
113
|
+
set allOf(allOf) {
|
|
114
|
+
throw new UnsupportedOperationError('allOf setter in Parameter class is not not supported.');
|
|
115
|
+
}
|
|
116
|
+
get anyOf() {
|
|
117
|
+
throw new UnsupportedOperationError('anyOf getter in Parameter class is not not supported.');
|
|
118
|
+
}
|
|
119
|
+
set anyOf(anyOf) {
|
|
120
|
+
throw new UnsupportedOperationError('anyOf setter in Parameter class is not not supported.');
|
|
121
|
+
}
|
|
122
|
+
get oneOf() {
|
|
123
|
+
throw new UnsupportedOperationError('oneOf getter in Parameter class is not not supported.');
|
|
124
|
+
}
|
|
125
|
+
set oneOf(oneOf) {
|
|
126
|
+
throw new UnsupportedOperationError('oneOf setter in Parameter class is not not supported.');
|
|
127
|
+
}
|
|
128
|
+
get not() {
|
|
129
|
+
throw new UnsupportedOperationError('not getter in Parameter class is not not supported.');
|
|
130
|
+
}
|
|
131
|
+
set not(not) {
|
|
132
|
+
throw new UnsupportedOperationError('not setter in Parameter class is not not supported.');
|
|
133
|
+
}
|
|
134
|
+
get definitions() {
|
|
135
|
+
throw new UnsupportedOperationError('definitions getter in Parameter class is not not supported.');
|
|
136
|
+
}
|
|
137
|
+
set definitions(definitions) {
|
|
138
|
+
throw new UnsupportedOperationError('definitions setter in Parameter class is not not supported.');
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Metadata keywords
|
|
143
|
+
*
|
|
144
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-6
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
get title() {
|
|
148
|
+
throw new UnsupportedOperationError('title getter in Parameter class is not not supported.');
|
|
149
|
+
}
|
|
150
|
+
set title(title) {
|
|
151
|
+
throw new UnsupportedOperationError('title setter in Parameter class is not not supported.');
|
|
152
|
+
}
|
|
153
|
+
get description() {
|
|
154
|
+
return this.get('description');
|
|
155
|
+
}
|
|
156
|
+
set description(description) {
|
|
157
|
+
this.set('description,', description);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Semantic validation with "format"
|
|
162
|
+
*
|
|
163
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-7
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
get format() {
|
|
167
|
+
return this.get('format');
|
|
168
|
+
}
|
|
169
|
+
set format(format) {
|
|
170
|
+
this.set('format', format);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* JSON Hyper-Schema
|
|
175
|
+
*
|
|
176
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
get base() {
|
|
180
|
+
throw new UnsupportedOperationError('base getter in Parameter class is not not supported.');
|
|
181
|
+
}
|
|
182
|
+
set base(base) {
|
|
183
|
+
throw new UnsupportedOperationError('base setter in Parameter class is not not supported.');
|
|
184
|
+
}
|
|
185
|
+
get links() {
|
|
186
|
+
throw new UnsupportedOperationError('links getter in Parameter class is not not supported.');
|
|
187
|
+
}
|
|
188
|
+
set links(links) {
|
|
189
|
+
throw new UnsupportedOperationError('links setter in Parameter class is not not supported.');
|
|
190
|
+
}
|
|
191
|
+
get media() {
|
|
192
|
+
throw new UnsupportedOperationError('media getter in Parameter class is not not supported.');
|
|
193
|
+
}
|
|
194
|
+
set media(media) {
|
|
195
|
+
throw new UnsupportedOperationError('media setter in Parameter class is not not supported.');
|
|
196
|
+
}
|
|
197
|
+
get readOnly() {
|
|
198
|
+
throw new UnsupportedOperationError('readOnly getter in Parameter class is not not supported.');
|
|
199
|
+
}
|
|
200
|
+
set readOnly(readOnly) {
|
|
201
|
+
throw new UnsupportedOperationError('readOnly setter in Parameter class is not not supported.');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* OpenAPI vocabulary
|
|
206
|
+
*/
|
|
207
|
+
get name() {
|
|
208
|
+
return this.get('name');
|
|
209
|
+
}
|
|
210
|
+
set name(name) {
|
|
211
|
+
this.set('name', name);
|
|
212
|
+
}
|
|
213
|
+
get in() {
|
|
214
|
+
return this.get('in');
|
|
215
|
+
}
|
|
216
|
+
set in(val) {
|
|
217
|
+
this.set('in', val);
|
|
218
|
+
}
|
|
219
|
+
get schema() {
|
|
220
|
+
return this.get('schema');
|
|
221
|
+
}
|
|
222
|
+
set schema(schema) {
|
|
223
|
+
this.set('schema', schema);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export default Parameter;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomCore = require("@speclynx/apidom-core");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class ParametersDefinitions extends _apidomCore.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'parametersDefinitions';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
var _default = exports.default = ParametersDefinitions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class ParametersDefinitions extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'parametersDefinitions';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default ParametersDefinitions;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomCore = require("@speclynx/apidom-core");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class PathItem extends _apidomCore.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'pathItem';
|
|
13
|
+
}
|
|
14
|
+
get $ref() {
|
|
15
|
+
return this.get('$ref');
|
|
16
|
+
}
|
|
17
|
+
set $ref($ref) {
|
|
18
|
+
this.set('$ref', $ref);
|
|
19
|
+
}
|
|
20
|
+
get GET() {
|
|
21
|
+
return this.get('get');
|
|
22
|
+
}
|
|
23
|
+
set GET(operation) {
|
|
24
|
+
this.set('GET', operation);
|
|
25
|
+
}
|
|
26
|
+
get PUT() {
|
|
27
|
+
return this.get('put');
|
|
28
|
+
}
|
|
29
|
+
set PUT(operation) {
|
|
30
|
+
this.set('PUT', operation);
|
|
31
|
+
}
|
|
32
|
+
get POST() {
|
|
33
|
+
return this.get('post');
|
|
34
|
+
}
|
|
35
|
+
set POST(operation) {
|
|
36
|
+
this.set('POST', operation);
|
|
37
|
+
}
|
|
38
|
+
get DELETE() {
|
|
39
|
+
return this.get('delete');
|
|
40
|
+
}
|
|
41
|
+
set DELETE(operation) {
|
|
42
|
+
this.set('DELETE', operation);
|
|
43
|
+
}
|
|
44
|
+
get OPTIONS() {
|
|
45
|
+
return this.get('options');
|
|
46
|
+
}
|
|
47
|
+
set OPTIONS(operation) {
|
|
48
|
+
this.set('OPTIONS', operation);
|
|
49
|
+
}
|
|
50
|
+
get HEAD() {
|
|
51
|
+
return this.get('head');
|
|
52
|
+
}
|
|
53
|
+
set HEAD(operation) {
|
|
54
|
+
this.set('HEAD', operation);
|
|
55
|
+
}
|
|
56
|
+
get PATCH() {
|
|
57
|
+
return this.get('patch');
|
|
58
|
+
}
|
|
59
|
+
set PATCH(operation) {
|
|
60
|
+
this.set('PATCH', operation);
|
|
61
|
+
}
|
|
62
|
+
get parameters() {
|
|
63
|
+
return this.get('parameters');
|
|
64
|
+
}
|
|
65
|
+
set parameters(parameters) {
|
|
66
|
+
this.set('parameters', parameters);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
var _default = exports.default = PathItem;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-core';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class PathItem extends ObjectElement {
|
|
6
|
+
constructor(content, meta, attributes) {
|
|
7
|
+
super(content, meta, attributes);
|
|
8
|
+
this.element = 'pathItem';
|
|
9
|
+
}
|
|
10
|
+
get $ref() {
|
|
11
|
+
return this.get('$ref');
|
|
12
|
+
}
|
|
13
|
+
set $ref($ref) {
|
|
14
|
+
this.set('$ref', $ref);
|
|
15
|
+
}
|
|
16
|
+
get GET() {
|
|
17
|
+
return this.get('get');
|
|
18
|
+
}
|
|
19
|
+
set GET(operation) {
|
|
20
|
+
this.set('GET', operation);
|
|
21
|
+
}
|
|
22
|
+
get PUT() {
|
|
23
|
+
return this.get('put');
|
|
24
|
+
}
|
|
25
|
+
set PUT(operation) {
|
|
26
|
+
this.set('PUT', operation);
|
|
27
|
+
}
|
|
28
|
+
get POST() {
|
|
29
|
+
return this.get('post');
|
|
30
|
+
}
|
|
31
|
+
set POST(operation) {
|
|
32
|
+
this.set('POST', operation);
|
|
33
|
+
}
|
|
34
|
+
get DELETE() {
|
|
35
|
+
return this.get('delete');
|
|
36
|
+
}
|
|
37
|
+
set DELETE(operation) {
|
|
38
|
+
this.set('DELETE', operation);
|
|
39
|
+
}
|
|
40
|
+
get OPTIONS() {
|
|
41
|
+
return this.get('options');
|
|
42
|
+
}
|
|
43
|
+
set OPTIONS(operation) {
|
|
44
|
+
this.set('OPTIONS', operation);
|
|
45
|
+
}
|
|
46
|
+
get HEAD() {
|
|
47
|
+
return this.get('head');
|
|
48
|
+
}
|
|
49
|
+
set HEAD(operation) {
|
|
50
|
+
this.set('HEAD', operation);
|
|
51
|
+
}
|
|
52
|
+
get PATCH() {
|
|
53
|
+
return this.get('patch');
|
|
54
|
+
}
|
|
55
|
+
set PATCH(operation) {
|
|
56
|
+
this.set('PATCH', operation);
|
|
57
|
+
}
|
|
58
|
+
get parameters() {
|
|
59
|
+
return this.get('parameters');
|
|
60
|
+
}
|
|
61
|
+
set parameters(parameters) {
|
|
62
|
+
this.set('parameters', parameters);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export default PathItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomCore = require("@speclynx/apidom-core");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class Paths extends _apidomCore.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'paths';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
var _default = exports.default = Paths;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class Paths extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'paths';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default Paths;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomCore = require("@speclynx/apidom-core");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class Reference extends _apidomCore.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'reference';
|
|
13
|
+
this.classes.push('openapi-reference');
|
|
14
|
+
}
|
|
15
|
+
get $ref() {
|
|
16
|
+
return this.get('$ref');
|
|
17
|
+
}
|
|
18
|
+
set $ref($ref) {
|
|
19
|
+
this.set('$ref', $ref);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
var _default = exports.default = Reference;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class Reference extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'reference';
|
|
10
|
+
this.classes.push('openapi-reference');
|
|
11
|
+
}
|
|
12
|
+
get $ref() {
|
|
13
|
+
return this.get('$ref');
|
|
14
|
+
}
|
|
15
|
+
set $ref($ref) {
|
|
16
|
+
this.set('$ref', $ref);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export default Reference;
|