@speclynx/apidom-ns-openapi-2 4.0.1 → 4.0.3
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 +10 -0
- package/package.json +8 -9
- package/src/elements/Contact.cjs +33 -0
- package/src/elements/Contact.mjs +30 -0
- package/src/elements/Contact.ts +42 -0
- package/src/elements/Definitions.cjs +15 -0
- package/src/elements/Definitions.mjs +12 -0
- package/src/elements/Definitions.ts +13 -0
- package/src/elements/Example.cjs +15 -0
- package/src/elements/Example.mjs +12 -0
- package/src/elements/Example.ts +13 -0
- package/src/elements/ExternalDocumentation.cjs +27 -0
- package/src/elements/ExternalDocumentation.mjs +24 -0
- package/src/elements/ExternalDocumentation.ts +34 -0
- package/src/elements/Header.cjs +185 -0
- package/src/elements/Header.mjs +182 -0
- package/src/elements/Header.ts +261 -0
- package/src/elements/Headers.cjs +15 -0
- package/src/elements/Headers.mjs +12 -0
- package/src/elements/Headers.ts +13 -0
- package/src/elements/Info.cjs +52 -0
- package/src/elements/Info.mjs +48 -0
- package/src/elements/Info.ts +70 -0
- package/src/elements/Items.cjs +190 -0
- package/src/elements/Items.mjs +187 -0
- package/src/elements/Items.ts +264 -0
- package/src/elements/License.cjs +27 -0
- package/src/elements/License.mjs +24 -0
- package/src/elements/License.ts +34 -0
- package/src/elements/Operation.cjs +78 -0
- package/src/elements/Operation.mjs +74 -0
- package/src/elements/Operation.ts +106 -0
- package/src/elements/Parameter.cjs +230 -0
- package/src/elements/Parameter.mjs +226 -0
- package/src/elements/Parameter.ts +326 -0
- package/src/elements/ParametersDefinitions.cjs +15 -0
- package/src/elements/ParametersDefinitions.mjs +12 -0
- package/src/elements/ParametersDefinitions.ts +13 -0
- package/src/elements/PathItem.cjs +69 -0
- package/src/elements/PathItem.mjs +65 -0
- package/src/elements/PathItem.ts +93 -0
- package/src/elements/Paths.cjs +15 -0
- package/src/elements/Paths.mjs +12 -0
- package/src/elements/Paths.ts +13 -0
- package/src/elements/Reference.cjs +22 -0
- package/src/elements/Reference.mjs +19 -0
- package/src/elements/Reference.ts +27 -0
- package/src/elements/Response.cjs +39 -0
- package/src/elements/Response.mjs +35 -0
- package/src/elements/Response.ts +54 -0
- package/src/elements/Responses.cjs +21 -0
- package/src/elements/Responses.mjs +17 -0
- package/src/elements/Responses.ts +24 -0
- package/src/elements/ResponsesDefinitions.cjs +15 -0
- package/src/elements/ResponsesDefinitions.mjs +12 -0
- package/src/elements/ResponsesDefinitions.ts +13 -0
- package/src/elements/Schema.cjs +151 -0
- package/src/elements/Schema.mjs +147 -0
- package/src/elements/Schema.ts +204 -0
- package/src/elements/Scopes.cjs +15 -0
- package/src/elements/Scopes.mjs +12 -0
- package/src/elements/Scopes.ts +13 -0
- package/src/elements/SecurityDefinitions.cjs +15 -0
- package/src/elements/SecurityDefinitions.mjs +12 -0
- package/src/elements/SecurityDefinitions.ts +13 -0
- package/src/elements/SecurityRequirement.cjs +15 -0
- package/src/elements/SecurityRequirement.mjs +12 -0
- package/src/elements/SecurityRequirement.ts +13 -0
- package/src/elements/SecurityScheme.cjs +63 -0
- package/src/elements/SecurityScheme.mjs +60 -0
- package/src/elements/SecurityScheme.ts +83 -0
- package/src/elements/Swagger.cjs +106 -0
- package/src/elements/Swagger.mjs +102 -0
- package/src/elements/Swagger.ts +149 -0
- package/src/elements/SwaggerVersion.cjs +17 -0
- package/src/elements/SwaggerVersion.mjs +14 -0
- package/src/elements/SwaggerVersion.ts +15 -0
- package/src/elements/Tag.cjs +33 -0
- package/src/elements/Tag.mjs +29 -0
- package/src/elements/Tag.ts +44 -0
- package/src/elements/Xml.cjs +45 -0
- package/src/elements/Xml.mjs +42 -0
- package/src/elements/Xml.ts +59 -0
- package/src/elements/nces/OperationConsumes.cjs +16 -0
- package/src/elements/nces/OperationConsumes.mjs +13 -0
- package/src/elements/nces/OperationConsumes.ts +15 -0
- package/src/elements/nces/OperationParameters.cjs +17 -0
- package/src/elements/nces/OperationParameters.mjs +14 -0
- package/src/elements/nces/OperationParameters.ts +16 -0
- package/src/elements/nces/OperationProduces.cjs +16 -0
- package/src/elements/nces/OperationProduces.mjs +13 -0
- package/src/elements/nces/OperationProduces.ts +15 -0
- package/src/elements/nces/OperationSchemes.cjs +16 -0
- package/src/elements/nces/OperationSchemes.mjs +13 -0
- package/src/elements/nces/OperationSchemes.ts +15 -0
- package/src/elements/nces/OperationSecurity.cjs +17 -0
- package/src/elements/nces/OperationSecurity.mjs +14 -0
- package/src/elements/nces/OperationSecurity.ts +16 -0
- package/src/elements/nces/OperationTags.cjs +17 -0
- package/src/elements/nces/OperationTags.mjs +14 -0
- package/src/elements/nces/OperationTags.ts +16 -0
- package/src/elements/nces/PathItemParameters.cjs +17 -0
- package/src/elements/nces/PathItemParameters.mjs +14 -0
- package/src/elements/nces/PathItemParameters.ts +16 -0
- package/src/elements/nces/SwaggerConsumes.cjs +16 -0
- package/src/elements/nces/SwaggerConsumes.mjs +13 -0
- package/src/elements/nces/SwaggerConsumes.ts +15 -0
- package/src/elements/nces/SwaggerProduces.cjs +16 -0
- package/src/elements/nces/SwaggerProduces.mjs +13 -0
- package/src/elements/nces/SwaggerProduces.ts +15 -0
- package/src/elements/nces/SwaggerSchemes.cjs +16 -0
- package/src/elements/nces/SwaggerSchemes.mjs +13 -0
- package/src/elements/nces/SwaggerSchemes.ts +15 -0
- package/src/elements/nces/SwaggerSecurity.cjs +17 -0
- package/src/elements/nces/SwaggerSecurity.mjs +14 -0
- package/src/elements/nces/SwaggerSecurity.ts +16 -0
- package/src/elements/nces/SwaggerTags.cjs +16 -0
- package/src/elements/nces/SwaggerTags.mjs +13 -0
- package/src/elements/nces/SwaggerTags.ts +15 -0
- package/src/index.cjs +156 -0
- package/src/index.mjs +32 -0
- package/src/index.ts +368 -0
- package/src/media-types.cjs +34 -0
- package/src/media-types.mjs +30 -0
- package/src/media-types.ts +42 -0
- package/src/namespace.cjs +71 -0
- package/src/namespace.mjs +66 -0
- package/src/namespace.ts +70 -0
- package/src/predicates.cjs +193 -0
- package/src/predicates.mjs +161 -0
- package/src/predicates.ts +194 -0
- package/src/refractor/index.cjs +316 -0
- package/src/refractor/index.mjs +283 -0
- package/src/refractor/index.ts +330 -0
- package/src/refractor/inspect.cjs +157 -0
- package/src/refractor/inspect.mjs +126 -0
- package/src/refractor/inspect.ts +181 -0
- package/src/refractor/plugins/replace-empty-element.cjs +366 -0
- package/src/refractor/plugins/replace-empty-element.mjs +358 -0
- package/src/refractor/plugins/replace-empty-element.ts +389 -0
- package/src/refractor/predicates.cjs +26 -0
- package/src/refractor/predicates.mjs +21 -0
- package/src/refractor/predicates.ts +29 -0
- package/src/refractor/specification.cjs +519 -0
- package/src/refractor/specification.mjs +513 -0
- package/src/refractor/specification.ts +444 -0
- package/src/refractor/toolbox.cjs +28 -0
- package/src/refractor/toolbox.mjs +21 -0
- package/src/refractor/toolbox.ts +24 -0
- package/src/refractor/visitors/FallbackVisitor.cjs +24 -0
- package/src/refractor/visitors/FallbackVisitor.mjs +18 -0
- package/src/refractor/visitors/FallbackVisitor.ts +25 -0
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +18 -0
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +13 -0
- package/src/refractor/visitors/SpecificationExtensionVisitor.ts +22 -0
- package/src/refractor/visitors/SpecificationVisitor.cjs +75 -0
- package/src/refractor/visitors/SpecificationVisitor.mjs +69 -0
- package/src/refractor/visitors/SpecificationVisitor.ts +83 -0
- package/src/refractor/visitors/Visitor.cjs +36 -0
- package/src/refractor/visitors/Visitor.mjs +33 -0
- package/src/refractor/visitors/Visitor.ts +47 -0
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +42 -0
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +35 -0
- package/src/refractor/visitors/generics/AlternatingVisitor.ts +45 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +73 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +66 -0
- package/src/refractor/visitors/generics/FixedFieldsVisitor.ts +109 -0
- package/src/refractor/visitors/generics/MapVisitor.cjs +21 -0
- package/src/refractor/visitors/generics/MapVisitor.mjs +15 -0
- package/src/refractor/visitors/generics/MapVisitor.ts +25 -0
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +67 -0
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +61 -0
- package/src/refractor/visitors/generics/MixedFieldsVisitor.ts +77 -0
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +72 -0
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +66 -0
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.ts +99 -0
- package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +16 -0
- package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +11 -0
- package/src/refractor/visitors/open-api-2/BasePathVisitor.ts +20 -0
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/HostVisitor.cjs +16 -0
- package/src/refractor/visitors/open-api-2/HostVisitor.mjs +11 -0
- package/src/refractor/visitors/open-api-2/HostVisitor.ts +20 -0
- package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/ProducesVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/SchemesVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +27 -0
- package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +22 -0
- package/src/refractor/visitors/open-api-2/SecurityVisitor.ts +34 -0
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +21 -0
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +16 -0
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +27 -0
- package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +22 -0
- package/src/refractor/visitors/open-api-2/TagsVisitor.ts +34 -0
- package/src/refractor/visitors/open-api-2/bases.cjs +72 -0
- package/src/refractor/visitors/open-api-2/bases.mjs +67 -0
- package/src/refractor/visitors/open-api-2/bases.ts +82 -0
- package/src/refractor/visitors/open-api-2/contact/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/contact/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/contact/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/definitions/index.cjs +31 -0
- package/src/refractor/visitors/open-api-2/definitions/index.mjs +26 -0
- package/src/refractor/visitors/open-api-2/definitions/index.ts +48 -0
- package/src/refractor/visitors/open-api-2/example/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/example/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/example/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/external-documentation/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/header/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/header/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/header/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/headers/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/headers/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/headers/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/index.cjs +21 -0
- package/src/refractor/visitors/open-api-2/index.mjs +16 -0
- package/src/refractor/visitors/open-api-2/index.ts +28 -0
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +17 -0
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +12 -0
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.ts +21 -0
- package/src/refractor/visitors/open-api-2/info/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/info/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/info/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/items/index.cjs +22 -0
- package/src/refractor/visitors/open-api-2/items/index.mjs +17 -0
- package/src/refractor/visitors/open-api-2/items/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/license/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/license/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/license/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +32 -0
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +27 -0
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.ts +44 -0
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +27 -0
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +22 -0
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.ts +34 -0
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +18 -0
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.ts +29 -0
- package/src/refractor/visitors/open-api-2/operation/index.cjs +19 -0
- package/src/refractor/visitors/open-api-2/operation/index.mjs +14 -0
- package/src/refractor/visitors/open-api-2/operation/index.ts +24 -0
- package/src/refractor/visitors/open-api-2/parameter/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/parameter/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/parameter/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +19 -0
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +14 -0
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.ts +24 -0
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +16 -0
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +11 -0
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.ts +20 -0
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +32 -0
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +27 -0
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.ts +44 -0
- package/src/refractor/visitors/open-api-2/path-item/index.cjs +39 -0
- package/src/refractor/visitors/open-api-2/path-item/index.mjs +34 -0
- package/src/refractor/visitors/open-api-2/path-item/index.ts +48 -0
- package/src/refractor/visitors/open-api-2/paths/index.cjs +37 -0
- package/src/refractor/visitors/open-api-2/paths/index.mjs +32 -0
- package/src/refractor/visitors/open-api-2/paths/index.ts +48 -0
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +16 -0
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +11 -0
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.ts +20 -0
- package/src/refractor/visitors/open-api-2/reference/index.cjs +29 -0
- package/src/refractor/visitors/open-api-2/reference/index.mjs +24 -0
- package/src/refractor/visitors/open-api-2/reference/index.ts +38 -0
- package/src/refractor/visitors/open-api-2/response/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/response/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/response/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +36 -0
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +31 -0
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.ts +36 -0
- package/src/refractor/visitors/open-api-2/responses/index.cjs +45 -0
- package/src/refractor/visitors/open-api-2/responses/index.mjs +40 -0
- package/src/refractor/visitors/open-api-2/responses/index.ts +64 -0
- package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +19 -0
- package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +14 -0
- package/src/refractor/visitors/open-api-2/responses-definitions/index.ts +24 -0
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +24 -0
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +20 -0
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.ts +35 -0
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +26 -0
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +23 -0
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.ts +38 -0
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +24 -0
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +20 -0
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.ts +35 -0
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +23 -0
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +19 -0
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.ts +37 -0
- package/src/refractor/visitors/open-api-2/schema/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/schema/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/schema/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/scopes/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/scopes/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/scopes/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/security-definitions/index.ts +24 -0
- package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +19 -0
- package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +14 -0
- package/src/refractor/visitors/open-api-2/security-requirement/index.ts +24 -0
- package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/security-scheme/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/tag/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/tag/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/tag/index.ts +27 -0
- package/src/refractor/visitors/open-api-2/xml/index.cjs +20 -0
- package/src/refractor/visitors/open-api-2/xml/index.mjs +15 -0
- package/src/refractor/visitors/open-api-2/xml/index.ts +27 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StringElement,
|
|
3
|
+
ObjectElement,
|
|
4
|
+
type Attributes,
|
|
5
|
+
type Meta,
|
|
6
|
+
} from '@speclynx/apidom-datamodel';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
class License extends ObjectElement {
|
|
12
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
13
|
+
super(content, meta, attributes);
|
|
14
|
+
this.element = 'license';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
get name(): StringElement | undefined {
|
|
18
|
+
return this.get('name') as StringElement | undefined;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
set name(name: StringElement | undefined) {
|
|
22
|
+
this.set('name', name);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
get url(): StringElement | undefined {
|
|
26
|
+
return this.get('url') as StringElement | undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
set url(url: StringElement | undefined) {
|
|
30
|
+
this.set('url', url);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default License;
|
|
@@ -0,0 +1,78 @@
|
|
|
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 Operation extends _apidomDatamodel.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'operation';
|
|
13
|
+
}
|
|
14
|
+
get tags() {
|
|
15
|
+
return this.get('tags');
|
|
16
|
+
}
|
|
17
|
+
set tags(tags) {
|
|
18
|
+
this.set('tags', tags);
|
|
19
|
+
}
|
|
20
|
+
get summary() {
|
|
21
|
+
return this.get('summary');
|
|
22
|
+
}
|
|
23
|
+
set summary(description) {
|
|
24
|
+
this.set('summary', description);
|
|
25
|
+
}
|
|
26
|
+
get description() {
|
|
27
|
+
return this.get('description');
|
|
28
|
+
}
|
|
29
|
+
set description(description) {
|
|
30
|
+
this.set('description', description);
|
|
31
|
+
}
|
|
32
|
+
set externalDocs(externalDocs) {
|
|
33
|
+
this.set('externalDocs', externalDocs);
|
|
34
|
+
}
|
|
35
|
+
get externalDocs() {
|
|
36
|
+
return this.get('externalDocs');
|
|
37
|
+
}
|
|
38
|
+
get operationId() {
|
|
39
|
+
return this.get('operationId');
|
|
40
|
+
}
|
|
41
|
+
set operationId(operationId) {
|
|
42
|
+
this.set('operationId', operationId);
|
|
43
|
+
}
|
|
44
|
+
get parameters() {
|
|
45
|
+
return this.get('parameters');
|
|
46
|
+
}
|
|
47
|
+
set parameters(parameters) {
|
|
48
|
+
this.set('parameters', parameters);
|
|
49
|
+
}
|
|
50
|
+
get responses() {
|
|
51
|
+
return this.get('responses');
|
|
52
|
+
}
|
|
53
|
+
set responses(responses) {
|
|
54
|
+
this.set('responses', responses);
|
|
55
|
+
}
|
|
56
|
+
get schemes() {
|
|
57
|
+
return this.get('schemes');
|
|
58
|
+
}
|
|
59
|
+
set schemes(schemes) {
|
|
60
|
+
this.set('schemes', schemes);
|
|
61
|
+
}
|
|
62
|
+
get deprecated() {
|
|
63
|
+
if (this.hasKey('deprecated')) {
|
|
64
|
+
return this.get('deprecated');
|
|
65
|
+
}
|
|
66
|
+
return new _apidomDatamodel.BooleanElement(false);
|
|
67
|
+
}
|
|
68
|
+
set deprecated(deprecated) {
|
|
69
|
+
this.set('deprecated', deprecated);
|
|
70
|
+
}
|
|
71
|
+
get security() {
|
|
72
|
+
return this.get('security');
|
|
73
|
+
}
|
|
74
|
+
set security(security) {
|
|
75
|
+
this.set('security', security);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
var _default = exports.default = Operation;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ObjectElement, BooleanElement } from '@speclynx/apidom-datamodel';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class Operation extends ObjectElement {
|
|
6
|
+
constructor(content, meta, attributes) {
|
|
7
|
+
super(content, meta, attributes);
|
|
8
|
+
this.element = 'operation';
|
|
9
|
+
}
|
|
10
|
+
get tags() {
|
|
11
|
+
return this.get('tags');
|
|
12
|
+
}
|
|
13
|
+
set tags(tags) {
|
|
14
|
+
this.set('tags', tags);
|
|
15
|
+
}
|
|
16
|
+
get summary() {
|
|
17
|
+
return this.get('summary');
|
|
18
|
+
}
|
|
19
|
+
set summary(description) {
|
|
20
|
+
this.set('summary', description);
|
|
21
|
+
}
|
|
22
|
+
get description() {
|
|
23
|
+
return this.get('description');
|
|
24
|
+
}
|
|
25
|
+
set description(description) {
|
|
26
|
+
this.set('description', description);
|
|
27
|
+
}
|
|
28
|
+
set externalDocs(externalDocs) {
|
|
29
|
+
this.set('externalDocs', externalDocs);
|
|
30
|
+
}
|
|
31
|
+
get externalDocs() {
|
|
32
|
+
return this.get('externalDocs');
|
|
33
|
+
}
|
|
34
|
+
get operationId() {
|
|
35
|
+
return this.get('operationId');
|
|
36
|
+
}
|
|
37
|
+
set operationId(operationId) {
|
|
38
|
+
this.set('operationId', operationId);
|
|
39
|
+
}
|
|
40
|
+
get parameters() {
|
|
41
|
+
return this.get('parameters');
|
|
42
|
+
}
|
|
43
|
+
set parameters(parameters) {
|
|
44
|
+
this.set('parameters', parameters);
|
|
45
|
+
}
|
|
46
|
+
get responses() {
|
|
47
|
+
return this.get('responses');
|
|
48
|
+
}
|
|
49
|
+
set responses(responses) {
|
|
50
|
+
this.set('responses', responses);
|
|
51
|
+
}
|
|
52
|
+
get schemes() {
|
|
53
|
+
return this.get('schemes');
|
|
54
|
+
}
|
|
55
|
+
set schemes(schemes) {
|
|
56
|
+
this.set('schemes', schemes);
|
|
57
|
+
}
|
|
58
|
+
get deprecated() {
|
|
59
|
+
if (this.hasKey('deprecated')) {
|
|
60
|
+
return this.get('deprecated');
|
|
61
|
+
}
|
|
62
|
+
return new BooleanElement(false);
|
|
63
|
+
}
|
|
64
|
+
set deprecated(deprecated) {
|
|
65
|
+
this.set('deprecated', deprecated);
|
|
66
|
+
}
|
|
67
|
+
get security() {
|
|
68
|
+
return this.get('security');
|
|
69
|
+
}
|
|
70
|
+
set security(security) {
|
|
71
|
+
this.set('security', security);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export default Operation;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ObjectElement,
|
|
3
|
+
ArrayElement,
|
|
4
|
+
BooleanElement,
|
|
5
|
+
StringElement,
|
|
6
|
+
type Attributes,
|
|
7
|
+
type Meta,
|
|
8
|
+
} from '@speclynx/apidom-datamodel';
|
|
9
|
+
|
|
10
|
+
import ExternalDocumentationElement from './ExternalDocumentation.ts';
|
|
11
|
+
import ResponsesElement from './Responses.ts';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
class Operation extends ObjectElement {
|
|
17
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
18
|
+
super(content, meta, attributes);
|
|
19
|
+
this.element = 'operation';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get tags(): ArrayElement | undefined {
|
|
23
|
+
return this.get('tags') as ArrayElement | undefined;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set tags(tags: ArrayElement | undefined) {
|
|
27
|
+
this.set('tags', tags);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get summary(): StringElement | undefined {
|
|
31
|
+
return this.get('summary') as StringElement | undefined;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set summary(description: StringElement | undefined) {
|
|
35
|
+
this.set('summary', description);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get description(): StringElement | undefined {
|
|
39
|
+
return this.get('description') as StringElement | undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set description(description: StringElement | undefined) {
|
|
43
|
+
this.set('description', description);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
set externalDocs(externalDocs: ExternalDocumentationElement | undefined) {
|
|
47
|
+
this.set('externalDocs', externalDocs);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get externalDocs(): ExternalDocumentationElement | undefined {
|
|
51
|
+
return this.get('externalDocs') as ExternalDocumentationElement | undefined;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
get operationId(): StringElement | undefined {
|
|
55
|
+
return this.get('operationId') as StringElement | undefined;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
set operationId(operationId: StringElement | undefined) {
|
|
59
|
+
this.set('operationId', operationId);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
get parameters(): ArrayElement | undefined {
|
|
63
|
+
return this.get('parameters') as ArrayElement | undefined;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
set parameters(parameters: ArrayElement | undefined) {
|
|
67
|
+
this.set('parameters', parameters);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
get responses(): ResponsesElement | undefined {
|
|
71
|
+
return this.get('responses') as ResponsesElement | undefined;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
set responses(responses: ResponsesElement | undefined) {
|
|
75
|
+
this.set('responses', responses);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
get schemes(): ArrayElement | undefined {
|
|
79
|
+
return this.get('schemes') as ArrayElement | undefined;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
set schemes(schemes: ArrayElement | undefined) {
|
|
83
|
+
this.set('schemes', schemes);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
get deprecated(): BooleanElement {
|
|
87
|
+
if (this.hasKey('deprecated')) {
|
|
88
|
+
return this.get('deprecated') as BooleanElement;
|
|
89
|
+
}
|
|
90
|
+
return new BooleanElement(false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
set deprecated(deprecated: BooleanElement) {
|
|
94
|
+
this.set('deprecated', deprecated);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
get security(): ArrayElement | undefined {
|
|
98
|
+
return this.get('security') as ArrayElement | undefined;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
set security(security: ArrayElement | undefined) {
|
|
102
|
+
this.set('security', security);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export default Operation;
|
|
@@ -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 idField() {
|
|
24
|
+
throw new _apidomError.UnsupportedOperationError('idField getter in Parameter class is not not supported.');
|
|
25
|
+
}
|
|
26
|
+
set idField(idField) {
|
|
27
|
+
throw new _apidomError.UnsupportedOperationError('idField 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 itemsField() {
|
|
47
|
+
return this.get('items');
|
|
48
|
+
}
|
|
49
|
+
set itemsField(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 linksField() {
|
|
190
|
+
throw new _apidomError.UnsupportedOperationError('linksField getter in Parameter class is not not supported.');
|
|
191
|
+
}
|
|
192
|
+
set linksField(links) {
|
|
193
|
+
throw new _apidomError.UnsupportedOperationError('linksField 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;
|