@speclynx/apidom-ns-openapi-2 4.0.2 → 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 +6 -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,147 @@
|
|
|
1
|
+
import { UnsupportedOperationError } from '@speclynx/apidom-error';
|
|
2
|
+
import { JSONSchemaElement } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class Schema extends JSONSchemaElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'schema';
|
|
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
|
+
get idField() {
|
|
19
|
+
throw new UnsupportedOperationError('idField getter in Schema class is not not supported.');
|
|
20
|
+
}
|
|
21
|
+
set idField(idField) {
|
|
22
|
+
throw new UnsupportedOperationError('idField setter in Schema class is not not supported.');
|
|
23
|
+
}
|
|
24
|
+
get $schema() {
|
|
25
|
+
throw new UnsupportedOperationError('$schema getter in Schema class is not not supported.');
|
|
26
|
+
}
|
|
27
|
+
set $schema($schema) {
|
|
28
|
+
throw new UnsupportedOperationError('$schema setter in Schema class is not not supported.');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Validation keywords for arrays
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
get additionalItems() {
|
|
36
|
+
throw new UnsupportedOperationError('additionalItems getter in Schema class is not not supported.');
|
|
37
|
+
}
|
|
38
|
+
set additionalItems(additionalItems) {
|
|
39
|
+
throw new UnsupportedOperationError('additionalItems setter in Schema class is not not supported.');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Validation keywords for objects
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
get patternProperties() {
|
|
47
|
+
throw new UnsupportedOperationError('patternProperties getter in Schema class is not not supported.');
|
|
48
|
+
}
|
|
49
|
+
set patternProperties(patternProperties) {
|
|
50
|
+
throw new UnsupportedOperationError('patternProperties setter in Schema class is not not supported.');
|
|
51
|
+
}
|
|
52
|
+
get dependencies() {
|
|
53
|
+
throw new UnsupportedOperationError('dependencies getter in Schema class is not not supported.');
|
|
54
|
+
}
|
|
55
|
+
set dependencies(dependencies) {
|
|
56
|
+
throw new UnsupportedOperationError('dependencies setter in Schema class is not not supported.');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Validation keywords for any instance type
|
|
61
|
+
*/
|
|
62
|
+
get anyOf() {
|
|
63
|
+
throw new UnsupportedOperationError('anyOf getter in Schema class is not not supported.');
|
|
64
|
+
}
|
|
65
|
+
set anyOf(anyOf) {
|
|
66
|
+
throw new UnsupportedOperationError('anyOf setter in Schema class is not not supported.');
|
|
67
|
+
}
|
|
68
|
+
get oneOf() {
|
|
69
|
+
throw new UnsupportedOperationError('oneOf getter in Schema class is not not supported.');
|
|
70
|
+
}
|
|
71
|
+
set oneOf(oneOf) {
|
|
72
|
+
throw new UnsupportedOperationError('oneOf setter in Schema class is not not supported.');
|
|
73
|
+
}
|
|
74
|
+
get not() {
|
|
75
|
+
throw new UnsupportedOperationError('not getter in Schema class is not not supported.');
|
|
76
|
+
}
|
|
77
|
+
set not(not) {
|
|
78
|
+
throw new UnsupportedOperationError('not setter in Schema class is not not supported.');
|
|
79
|
+
}
|
|
80
|
+
get definitions() {
|
|
81
|
+
throw new UnsupportedOperationError('definitions getter in Schema class is not not supported.');
|
|
82
|
+
}
|
|
83
|
+
set definitions(definitions) {
|
|
84
|
+
throw new UnsupportedOperationError('definitions setter in Schema class is not not supported.');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* JSON Hyper-Schema
|
|
89
|
+
*
|
|
90
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
get base() {
|
|
94
|
+
throw new UnsupportedOperationError('base getter in Schema class is not not supported.');
|
|
95
|
+
}
|
|
96
|
+
set base(base) {
|
|
97
|
+
throw new UnsupportedOperationError('base setter in Schema class is not not supported.');
|
|
98
|
+
}
|
|
99
|
+
get linksField() {
|
|
100
|
+
throw new UnsupportedOperationError('linksField getter in Schema class is not not supported.');
|
|
101
|
+
}
|
|
102
|
+
set linksField(links) {
|
|
103
|
+
throw new UnsupportedOperationError('linksField setter in Schema class is not not supported.');
|
|
104
|
+
}
|
|
105
|
+
get media() {
|
|
106
|
+
throw new UnsupportedOperationError('media getter in Schema class is not not supported.');
|
|
107
|
+
}
|
|
108
|
+
set media(media) {
|
|
109
|
+
throw new UnsupportedOperationError('media setter in Schema class is not not supported.');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* OpenAPI 2.0 specific
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
get xml() {
|
|
117
|
+
return this.get('xml');
|
|
118
|
+
}
|
|
119
|
+
set xml(xml) {
|
|
120
|
+
this.set('xml', xml);
|
|
121
|
+
}
|
|
122
|
+
get discriminator() {
|
|
123
|
+
return this.get('discriminator');
|
|
124
|
+
}
|
|
125
|
+
set discriminator(discriminator) {
|
|
126
|
+
this.set('discriminator', discriminator);
|
|
127
|
+
}
|
|
128
|
+
get readOnly() {
|
|
129
|
+
return this.get('readOnly');
|
|
130
|
+
}
|
|
131
|
+
set readOnly(readOnly) {
|
|
132
|
+
this.set('readOnly', readOnly);
|
|
133
|
+
}
|
|
134
|
+
get externalDocs() {
|
|
135
|
+
return this.get('externalDocs');
|
|
136
|
+
}
|
|
137
|
+
set externalDocs(externalDocs) {
|
|
138
|
+
this.set('externalDocs', externalDocs);
|
|
139
|
+
}
|
|
140
|
+
get example() {
|
|
141
|
+
return this.get('example');
|
|
142
|
+
}
|
|
143
|
+
set example(example) {
|
|
144
|
+
this.set('example', example);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export default Schema;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type Attributes,
|
|
3
|
+
type Meta,
|
|
4
|
+
ArrayElement,
|
|
5
|
+
BooleanElement,
|
|
6
|
+
ObjectElement,
|
|
7
|
+
StringElement,
|
|
8
|
+
} from '@speclynx/apidom-datamodel';
|
|
9
|
+
import { UnsupportedOperationError } from '@speclynx/apidom-error';
|
|
10
|
+
import {
|
|
11
|
+
JSONReferenceElement,
|
|
12
|
+
JSONSchemaElement,
|
|
13
|
+
MediaElement,
|
|
14
|
+
LinkDescriptionElement,
|
|
15
|
+
} from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
16
|
+
|
|
17
|
+
import type XmlElement from './Xml.ts';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
class Schema extends JSONSchemaElement {
|
|
23
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
24
|
+
super(content, meta, attributes);
|
|
25
|
+
this.element = 'schema';
|
|
26
|
+
this.classes.push('json-schema-draft-4');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Core vocabulary
|
|
31
|
+
*
|
|
32
|
+
* URI: https://tools.ietf.org/html/draft-wright-json-schema-00
|
|
33
|
+
*/
|
|
34
|
+
get idField(): StringElement | undefined {
|
|
35
|
+
throw new UnsupportedOperationError('idField getter in Schema class is not not supported.');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
set idField(idField: StringElement | undefined) {
|
|
39
|
+
throw new UnsupportedOperationError('idField setter in Schema class is not not supported.');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
get $schema(): StringElement | undefined {
|
|
43
|
+
throw new UnsupportedOperationError('$schema getter in Schema class is not not supported.');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
set $schema($schema: StringElement | undefined) {
|
|
47
|
+
throw new UnsupportedOperationError('$schema setter in Schema class is not not supported.');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Validation keywords for arrays
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
get additionalItems(): this | JSONReferenceElement | BooleanElement | undefined {
|
|
55
|
+
throw new UnsupportedOperationError(
|
|
56
|
+
'additionalItems getter in Schema class is not not supported.',
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
set additionalItems(additionalItems: this | JSONReferenceElement | BooleanElement | undefined) {
|
|
61
|
+
throw new UnsupportedOperationError(
|
|
62
|
+
'additionalItems setter in Schema class is not not supported.',
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Validation keywords for objects
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
get patternProperties(): ObjectElement | undefined {
|
|
71
|
+
throw new UnsupportedOperationError(
|
|
72
|
+
'patternProperties getter in Schema class is not not supported.',
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
set patternProperties(patternProperties: ObjectElement | undefined) {
|
|
77
|
+
throw new UnsupportedOperationError(
|
|
78
|
+
'patternProperties setter in Schema class is not not supported.',
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
get dependencies(): ObjectElement | undefined {
|
|
83
|
+
throw new UnsupportedOperationError(
|
|
84
|
+
'dependencies getter in Schema class is not not supported.',
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
set dependencies(dependencies: ObjectElement | undefined) {
|
|
89
|
+
throw new UnsupportedOperationError(
|
|
90
|
+
'dependencies setter in Schema class is not not supported.',
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Validation keywords for any instance type
|
|
96
|
+
*/
|
|
97
|
+
get anyOf(): ArrayElement<this | JSONReferenceElement> | undefined {
|
|
98
|
+
throw new UnsupportedOperationError('anyOf getter in Schema class is not not supported.');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
set anyOf(anyOf: ArrayElement<this | JSONReferenceElement> | undefined) {
|
|
102
|
+
throw new UnsupportedOperationError('anyOf setter in Schema class is not not supported.');
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
get oneOf(): ArrayElement<this | JSONReferenceElement> | undefined {
|
|
106
|
+
throw new UnsupportedOperationError('oneOf getter in Schema class is not not supported.');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
set oneOf(oneOf: ArrayElement<this | JSONReferenceElement> | undefined) {
|
|
110
|
+
throw new UnsupportedOperationError('oneOf setter in Schema class is not not supported.');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
get not(): this | JSONReferenceElement | undefined {
|
|
114
|
+
throw new UnsupportedOperationError('not getter in Schema class is not not supported.');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
set not(not: this | JSONReferenceElement | undefined) {
|
|
118
|
+
throw new UnsupportedOperationError('not setter in Schema class is not not supported.');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
get definitions(): ObjectElement | undefined {
|
|
122
|
+
throw new UnsupportedOperationError('definitions getter in Schema class is not not supported.');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
set definitions(definitions: ObjectElement | undefined) {
|
|
126
|
+
throw new UnsupportedOperationError('definitions setter in Schema class is not not supported.');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* JSON Hyper-Schema
|
|
131
|
+
*
|
|
132
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-00
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
get base(): StringElement | undefined {
|
|
136
|
+
throw new UnsupportedOperationError('base getter in Schema class is not not supported.');
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
set base(base: StringElement | undefined) {
|
|
140
|
+
throw new UnsupportedOperationError('base setter in Schema class is not not supported.');
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
get linksField(): ArrayElement<LinkDescriptionElement> | undefined {
|
|
144
|
+
throw new UnsupportedOperationError('linksField getter in Schema class is not not supported.');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
set linksField(links: ArrayElement<LinkDescriptionElement> | undefined) {
|
|
148
|
+
throw new UnsupportedOperationError('linksField setter in Schema class is not not supported.');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
get media(): MediaElement | undefined {
|
|
152
|
+
throw new UnsupportedOperationError('media getter in Schema class is not not supported.');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
set media(media: MediaElement | undefined) {
|
|
156
|
+
throw new UnsupportedOperationError('media setter in Schema class is not not supported.');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* OpenAPI 2.0 specific
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
get xml(): XmlElement | undefined {
|
|
164
|
+
return this.get('xml') as XmlElement | undefined;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
set xml(xml: XmlElement | undefined) {
|
|
168
|
+
this.set('xml', xml);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
get discriminator(): StringElement | undefined {
|
|
172
|
+
return this.get('discriminator') as StringElement | undefined;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
set discriminator(discriminator: StringElement | undefined) {
|
|
176
|
+
this.set('discriminator', discriminator);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
get readOnly(): BooleanElement | undefined {
|
|
180
|
+
return this.get('readOnly') as BooleanElement | undefined;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
set readOnly(readOnly: BooleanElement | undefined) {
|
|
184
|
+
this.set('readOnly', readOnly);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
get externalDocs(): ObjectElement | undefined {
|
|
188
|
+
return this.get('externalDocs') as ObjectElement | undefined;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
set externalDocs(externalDocs: ObjectElement | undefined) {
|
|
192
|
+
this.set('externalDocs', externalDocs);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
get example(): unknown {
|
|
196
|
+
return this.get('example');
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
set example(example: unknown) {
|
|
200
|
+
this.set('example', example);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export default Schema;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 Scopes extends _apidomDatamodel.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'scopes';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
var _default = exports.default = Scopes;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class Scopes extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'scopes';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default Scopes;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class Scopes extends ObjectElement {
|
|
7
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'scopes';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default Scopes;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 SecurityDefinitions extends _apidomDatamodel.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'securityDefinitions';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
var _default = exports.default = SecurityDefinitions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class SecurityDefinitions extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'securityDefinitions';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default SecurityDefinitions;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class SecurityDefinitions extends ObjectElement {
|
|
7
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'securityDefinitions';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SecurityDefinitions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class SecurityRequirement extends _apidomDatamodel.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'securityRequirement';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
var _default = exports.default = SecurityRequirement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class SecurityRequirement extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'securityRequirement';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default SecurityRequirement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectElement, type Attributes, type Meta } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class SecurityRequirement extends ObjectElement {
|
|
7
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'securityRequirement';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SecurityRequirement;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _apidomDatamodel = require("@speclynx/apidom-datamodel");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class SecurityScheme extends _apidomDatamodel.ObjectElement {
|
|
10
|
+
constructor(content, meta, attributes) {
|
|
11
|
+
super(content, meta, attributes);
|
|
12
|
+
this.element = 'securityScheme';
|
|
13
|
+
}
|
|
14
|
+
get type() {
|
|
15
|
+
return this.get('type');
|
|
16
|
+
}
|
|
17
|
+
set type(type) {
|
|
18
|
+
this.set('type', type);
|
|
19
|
+
}
|
|
20
|
+
get description() {
|
|
21
|
+
return this.get('description');
|
|
22
|
+
}
|
|
23
|
+
set description(description) {
|
|
24
|
+
this.set('description', description);
|
|
25
|
+
}
|
|
26
|
+
get name() {
|
|
27
|
+
return this.get('name');
|
|
28
|
+
}
|
|
29
|
+
set name(name) {
|
|
30
|
+
this.set('name', name);
|
|
31
|
+
}
|
|
32
|
+
get in() {
|
|
33
|
+
return this.get('in');
|
|
34
|
+
}
|
|
35
|
+
set in(inVal) {
|
|
36
|
+
this.set('in', inVal);
|
|
37
|
+
}
|
|
38
|
+
get flow() {
|
|
39
|
+
return this.get('flow');
|
|
40
|
+
}
|
|
41
|
+
set flow(flow) {
|
|
42
|
+
this.set('flow', flow);
|
|
43
|
+
}
|
|
44
|
+
get authorizationUrl() {
|
|
45
|
+
return this.get('authorizationUrl');
|
|
46
|
+
}
|
|
47
|
+
set authorizationUrl(authorizationUrl) {
|
|
48
|
+
this.set('authorizationUrl', authorizationUrl);
|
|
49
|
+
}
|
|
50
|
+
get tokenUrl() {
|
|
51
|
+
return this.get('tokenUrl');
|
|
52
|
+
}
|
|
53
|
+
set tokenUrl(tokenUrl) {
|
|
54
|
+
this.set('tokenUrl', tokenUrl);
|
|
55
|
+
}
|
|
56
|
+
get scopes() {
|
|
57
|
+
return this.get('scopes');
|
|
58
|
+
}
|
|
59
|
+
set scopes(scopes) {
|
|
60
|
+
this.set('scopes', scopes);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
var _default = exports.default = SecurityScheme;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ObjectElement } from '@speclynx/apidom-datamodel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
class SecurityScheme extends ObjectElement {
|
|
7
|
+
constructor(content, meta, attributes) {
|
|
8
|
+
super(content, meta, attributes);
|
|
9
|
+
this.element = 'securityScheme';
|
|
10
|
+
}
|
|
11
|
+
get type() {
|
|
12
|
+
return this.get('type');
|
|
13
|
+
}
|
|
14
|
+
set type(type) {
|
|
15
|
+
this.set('type', type);
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return this.get('description');
|
|
19
|
+
}
|
|
20
|
+
set description(description) {
|
|
21
|
+
this.set('description', description);
|
|
22
|
+
}
|
|
23
|
+
get name() {
|
|
24
|
+
return this.get('name');
|
|
25
|
+
}
|
|
26
|
+
set name(name) {
|
|
27
|
+
this.set('name', name);
|
|
28
|
+
}
|
|
29
|
+
get in() {
|
|
30
|
+
return this.get('in');
|
|
31
|
+
}
|
|
32
|
+
set in(inVal) {
|
|
33
|
+
this.set('in', inVal);
|
|
34
|
+
}
|
|
35
|
+
get flow() {
|
|
36
|
+
return this.get('flow');
|
|
37
|
+
}
|
|
38
|
+
set flow(flow) {
|
|
39
|
+
this.set('flow', flow);
|
|
40
|
+
}
|
|
41
|
+
get authorizationUrl() {
|
|
42
|
+
return this.get('authorizationUrl');
|
|
43
|
+
}
|
|
44
|
+
set authorizationUrl(authorizationUrl) {
|
|
45
|
+
this.set('authorizationUrl', authorizationUrl);
|
|
46
|
+
}
|
|
47
|
+
get tokenUrl() {
|
|
48
|
+
return this.get('tokenUrl');
|
|
49
|
+
}
|
|
50
|
+
set tokenUrl(tokenUrl) {
|
|
51
|
+
this.set('tokenUrl', tokenUrl);
|
|
52
|
+
}
|
|
53
|
+
get scopes() {
|
|
54
|
+
return this.get('scopes');
|
|
55
|
+
}
|
|
56
|
+
set scopes(scopes) {
|
|
57
|
+
this.set('scopes', scopes);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export default SecurityScheme;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ObjectElement,
|
|
3
|
+
ArrayElement,
|
|
4
|
+
StringElement,
|
|
5
|
+
type Attributes,
|
|
6
|
+
type Meta,
|
|
7
|
+
} from '@speclynx/apidom-datamodel';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
class SecurityScheme extends ObjectElement {
|
|
13
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes) {
|
|
14
|
+
super(content, meta, attributes);
|
|
15
|
+
this.element = 'securityScheme';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
get type(): StringElement | undefined {
|
|
19
|
+
return this.get('type') as StringElement | undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
set type(type: StringElement | undefined) {
|
|
23
|
+
this.set('type', type);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
get description(): StringElement | undefined {
|
|
27
|
+
return this.get('description') as StringElement | undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
set description(description: StringElement | undefined) {
|
|
31
|
+
this.set('description', description);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
get name(): StringElement | undefined {
|
|
35
|
+
return this.get('name') as StringElement | undefined;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
set name(name: StringElement | undefined) {
|
|
39
|
+
this.set('name', name);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
get in(): StringElement | undefined {
|
|
43
|
+
return this.get('in') as StringElement | undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
set in(inVal: StringElement | undefined) {
|
|
47
|
+
this.set('in', inVal);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get flow(): StringElement | undefined {
|
|
51
|
+
return this.get('flow') as StringElement | undefined;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
set flow(flow: StringElement | undefined) {
|
|
55
|
+
this.set('flow', flow);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
get authorizationUrl(): StringElement | undefined {
|
|
59
|
+
return this.get('authorizationUrl') as StringElement | undefined;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
set authorizationUrl(authorizationUrl: StringElement | undefined) {
|
|
63
|
+
this.set('authorizationUrl', authorizationUrl);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
get tokenUrl(): StringElement | undefined {
|
|
67
|
+
return this.get('tokenUrl') as StringElement | undefined;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
set tokenUrl(tokenUrl: StringElement | undefined) {
|
|
71
|
+
this.set('tokenUrl', tokenUrl);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
get scopes(): ArrayElement | undefined {
|
|
75
|
+
return this.get('scopes') as ArrayElement | undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
set scopes(scopes: ArrayElement | undefined) {
|
|
79
|
+
this.set('scopes', scopes);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default SecurityScheme;
|