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