@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,513 @@
|
|
|
1
|
+
import { specificationObj as JSONSchemaDraft4Specification } from '@speclynx/apidom-ns-json-schema-draft-4';
|
|
2
|
+
import FallbackVisitor from "./visitors/FallbackVisitor.mjs";
|
|
3
|
+
import SwaggerVisitor from "./visitors/open-api-2/index.mjs";
|
|
4
|
+
import SwaggerSwaggerVisitor from "./visitors/open-api-2/SwaggerVisitor.mjs";
|
|
5
|
+
import SwaggerHostVisitor from "./visitors/open-api-2/HostVisitor.mjs";
|
|
6
|
+
import SwaggerBasePathVisitor from "./visitors/open-api-2/BasePathVisitor.mjs";
|
|
7
|
+
import SwaggerSchemesVisitor from "./visitors/open-api-2/SchemesVisitor.mjs";
|
|
8
|
+
import SwaggerConsumesVisitor from "./visitors/open-api-2/ConsumesVisitor.mjs";
|
|
9
|
+
import SwaggerProducesVisitor from "./visitors/open-api-2/ProducesVisitor.mjs";
|
|
10
|
+
import SwaggerSecurityVisitor from "./visitors/open-api-2/SecurityVisitor.mjs";
|
|
11
|
+
import SwaggerTagsVisitor from "./visitors/open-api-2/TagsVisitor.mjs";
|
|
12
|
+
import InfoVisitor from "./visitors/open-api-2/info/index.mjs";
|
|
13
|
+
import InfoVersionVisitor from "./visitors/open-api-2/info/VersionVisitor.mjs";
|
|
14
|
+
import ContactVisitor from "./visitors/open-api-2/contact/index.mjs";
|
|
15
|
+
import LicenseVisitor from "./visitors/open-api-2/license/index.mjs";
|
|
16
|
+
import PathsVisitor from "./visitors/open-api-2/paths/index.mjs";
|
|
17
|
+
import PathItemVisitor from "./visitors/open-api-2/path-item/index.mjs";
|
|
18
|
+
import PathItem$RefVisitor from "./visitors/open-api-2/path-item/$RefVisitor.mjs";
|
|
19
|
+
import PathItemParametersVisitor from "./visitors/open-api-2/path-item/ParametersVisitor.mjs";
|
|
20
|
+
import OperationVisitor from "./visitors/open-api-2/operation/index.mjs";
|
|
21
|
+
import OperationTagsVisitor from "./visitors/open-api-2/operation/TagsVisitor.mjs";
|
|
22
|
+
import OperationConsumesVisitor from "./visitors/open-api-2/operation/ConsumesVisitor.mjs";
|
|
23
|
+
import OperationProducesVisitor from "./visitors/open-api-2/operation/ProducesVisitor.mjs";
|
|
24
|
+
import OperationParametersVisitor from "./visitors/open-api-2/operation/ParametersVisitor.mjs";
|
|
25
|
+
import OperationSchemesVisitor from "./visitors/open-api-2/operation/SchemesVisitor.mjs";
|
|
26
|
+
import OperationSecurityVisitor from "./visitors/open-api-2/operation/SecurityVisitor.mjs";
|
|
27
|
+
import ExternalDocumentationElement from "./visitors/open-api-2/external-documentation/index.mjs";
|
|
28
|
+
import ParameterVisitor from "./visitors/open-api-2/parameter/index.mjs";
|
|
29
|
+
import ItemsVisitor from "./visitors/open-api-2/items/index.mjs";
|
|
30
|
+
import ResponsesVisitor from "./visitors/open-api-2/responses/index.mjs";
|
|
31
|
+
import ResponsesDefaultVisitor from "./visitors/open-api-2/responses/DefaultVisitor.mjs";
|
|
32
|
+
import ResponseVisitor from "./visitors/open-api-2/response/index.mjs";
|
|
33
|
+
import HeadersVisitor from "./visitors/open-api-2/headers/index.mjs";
|
|
34
|
+
import ExampleVisitor from "./visitors/open-api-2/example/index.mjs";
|
|
35
|
+
import HeaderVisitor from "./visitors/open-api-2/header/index.mjs";
|
|
36
|
+
import TagVisitor from "./visitors/open-api-2/tag/index.mjs";
|
|
37
|
+
import ReferenceVisitor from "./visitors/open-api-2/reference/index.mjs";
|
|
38
|
+
import Reference$RefVisitor from "./visitors/open-api-2/reference/$RefVisitor.mjs";
|
|
39
|
+
import SchemaVisitor from "./visitors/open-api-2/schema/index.mjs";
|
|
40
|
+
import SchemaAllOfVisitor from "./visitors/open-api-2/schema/AllOfVisitor.mjs";
|
|
41
|
+
import SchemaItemsVisitor from "./visitors/open-api-2/schema/ItemsVisitor.mjs";
|
|
42
|
+
import SchemaPropertiesVisitor from "./visitors/open-api-2/schema/PropertiesVisitor.mjs";
|
|
43
|
+
import SchemaOrJSONReferenceVisitor from "./visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs";
|
|
44
|
+
import XmlVisitor from "./visitors/open-api-2/xml/index.mjs";
|
|
45
|
+
import DefinitionsVisitor from "./visitors/open-api-2/definitions/index.mjs";
|
|
46
|
+
import ResponsesDefinitionsVisitor from "./visitors/open-api-2/responses-definitions/index.mjs";
|
|
47
|
+
import ParametersDefinitionsVisitor from "./visitors/open-api-2/parameters-definitions/index.mjs";
|
|
48
|
+
import SecurityDefinitionsVisitor from "./visitors/open-api-2/security-definitions/index.mjs";
|
|
49
|
+
import SecuritySchemeVisitor from "./visitors/open-api-2/security-scheme/index.mjs";
|
|
50
|
+
import ScopesVisitor from "./visitors/open-api-2/scopes/index.mjs";
|
|
51
|
+
import SecurityRequirementVisitor from "./visitors/open-api-2/security-requirement/index.mjs";
|
|
52
|
+
import SpecificationExtensionVisitor from "./visitors/SpecificationExtensionVisitor.mjs";
|
|
53
|
+
/**
|
|
54
|
+
* Specification object allows us to have complete control over visitors
|
|
55
|
+
* when traversing the ApiDOM.
|
|
56
|
+
* Specification also allows us to create amended refractors from
|
|
57
|
+
* existing ones by manipulating it.
|
|
58
|
+
*
|
|
59
|
+
* Note: Specification object allows to use absolute internal JSON pointers.
|
|
60
|
+
*/
|
|
61
|
+
const {
|
|
62
|
+
fixedFields: jsonSchemaFixedFields
|
|
63
|
+
} = JSONSchemaDraft4Specification.visitors.document.objects.JSONSchema;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
const specification = {
|
|
69
|
+
visitors: {
|
|
70
|
+
value: FallbackVisitor,
|
|
71
|
+
document: {
|
|
72
|
+
objects: {
|
|
73
|
+
// JSON Schema Draft 4/5 specific visitors
|
|
74
|
+
JSONReference: JSONSchemaDraft4Specification.visitors.document.objects.JSONReference,
|
|
75
|
+
JSONSchema: {
|
|
76
|
+
$ref: '#/visitors/document/objects/Schema'
|
|
77
|
+
},
|
|
78
|
+
// OpenAPI 2 specific visitors
|
|
79
|
+
Swagger: {
|
|
80
|
+
$visitor: SwaggerVisitor,
|
|
81
|
+
element: 'swagger',
|
|
82
|
+
fixedFields: {
|
|
83
|
+
swagger: SwaggerSwaggerVisitor,
|
|
84
|
+
info: {
|
|
85
|
+
$ref: '#/visitors/document/objects/Info'
|
|
86
|
+
},
|
|
87
|
+
host: SwaggerHostVisitor,
|
|
88
|
+
basePath: SwaggerBasePathVisitor,
|
|
89
|
+
schemes: SwaggerSchemesVisitor,
|
|
90
|
+
consumes: SwaggerConsumesVisitor,
|
|
91
|
+
produces: SwaggerProducesVisitor,
|
|
92
|
+
paths: {
|
|
93
|
+
$ref: '#/visitors/document/objects/Paths'
|
|
94
|
+
},
|
|
95
|
+
definitions: {
|
|
96
|
+
$ref: '#/visitors/document/objects/Definitions'
|
|
97
|
+
},
|
|
98
|
+
parameters: {
|
|
99
|
+
$ref: '#/visitors/document/objects/ParametersDefinitions'
|
|
100
|
+
},
|
|
101
|
+
responses: {
|
|
102
|
+
$ref: '#/visitors/document/objects/ResponsesDefinitions'
|
|
103
|
+
},
|
|
104
|
+
securityDefinitions: {
|
|
105
|
+
$ref: '#/visitors/document/objects/SecurityDefinitions'
|
|
106
|
+
},
|
|
107
|
+
security: SwaggerSecurityVisitor,
|
|
108
|
+
tags: SwaggerTagsVisitor,
|
|
109
|
+
externalDocs: {
|
|
110
|
+
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
Info: {
|
|
115
|
+
$visitor: InfoVisitor,
|
|
116
|
+
element: 'info',
|
|
117
|
+
fixedFields: {
|
|
118
|
+
title: {
|
|
119
|
+
$ref: '#/visitors/value'
|
|
120
|
+
},
|
|
121
|
+
description: {
|
|
122
|
+
$ref: '#/visitors/value'
|
|
123
|
+
},
|
|
124
|
+
termsOfService: {
|
|
125
|
+
$ref: '#/visitors/value'
|
|
126
|
+
},
|
|
127
|
+
contact: {
|
|
128
|
+
$ref: '#/visitors/document/objects/Contact'
|
|
129
|
+
},
|
|
130
|
+
license: {
|
|
131
|
+
$ref: '#/visitors/document/objects/License'
|
|
132
|
+
},
|
|
133
|
+
version: InfoVersionVisitor
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
Contact: {
|
|
137
|
+
$visitor: ContactVisitor,
|
|
138
|
+
element: 'contact',
|
|
139
|
+
fixedFields: {
|
|
140
|
+
name: {
|
|
141
|
+
$ref: '#/visitors/value'
|
|
142
|
+
},
|
|
143
|
+
url: {
|
|
144
|
+
$ref: '#/visitors/value'
|
|
145
|
+
},
|
|
146
|
+
email: {
|
|
147
|
+
$ref: '#/visitors/value'
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
License: {
|
|
152
|
+
$visitor: LicenseVisitor,
|
|
153
|
+
element: 'license',
|
|
154
|
+
fixedFields: {
|
|
155
|
+
name: {
|
|
156
|
+
$ref: '#/visitors/value'
|
|
157
|
+
},
|
|
158
|
+
url: {
|
|
159
|
+
$ref: '#/visitors/value'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
Paths: {
|
|
164
|
+
$visitor: PathsVisitor,
|
|
165
|
+
element: 'paths'
|
|
166
|
+
},
|
|
167
|
+
PathItem: {
|
|
168
|
+
$visitor: PathItemVisitor,
|
|
169
|
+
element: 'pathItem',
|
|
170
|
+
fixedFields: {
|
|
171
|
+
$ref: PathItem$RefVisitor,
|
|
172
|
+
get: {
|
|
173
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
174
|
+
},
|
|
175
|
+
put: {
|
|
176
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
177
|
+
},
|
|
178
|
+
post: {
|
|
179
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
180
|
+
},
|
|
181
|
+
delete: {
|
|
182
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
183
|
+
},
|
|
184
|
+
options: {
|
|
185
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
186
|
+
},
|
|
187
|
+
head: {
|
|
188
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
189
|
+
},
|
|
190
|
+
patch: {
|
|
191
|
+
$ref: '#/visitors/document/objects/Operation'
|
|
192
|
+
},
|
|
193
|
+
parameters: PathItemParametersVisitor
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
Operation: {
|
|
197
|
+
$visitor: OperationVisitor,
|
|
198
|
+
element: 'operation',
|
|
199
|
+
fixedFields: {
|
|
200
|
+
tags: OperationTagsVisitor,
|
|
201
|
+
summary: {
|
|
202
|
+
$ref: '#/visitors/value'
|
|
203
|
+
},
|
|
204
|
+
description: {
|
|
205
|
+
$ref: '#/visitors/value'
|
|
206
|
+
},
|
|
207
|
+
externalDocs: {
|
|
208
|
+
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
209
|
+
},
|
|
210
|
+
operationId: {
|
|
211
|
+
$ref: '#/visitors/value'
|
|
212
|
+
},
|
|
213
|
+
consumes: OperationConsumesVisitor,
|
|
214
|
+
produces: OperationProducesVisitor,
|
|
215
|
+
parameters: OperationParametersVisitor,
|
|
216
|
+
responses: {
|
|
217
|
+
$ref: '#/visitors/document/objects/Responses'
|
|
218
|
+
},
|
|
219
|
+
schemes: OperationSchemesVisitor,
|
|
220
|
+
deprecated: {
|
|
221
|
+
$ref: '#/visitors/value'
|
|
222
|
+
},
|
|
223
|
+
security: OperationSecurityVisitor
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
ExternalDocumentation: {
|
|
227
|
+
$visitor: ExternalDocumentationElement,
|
|
228
|
+
element: 'externalDocumentation',
|
|
229
|
+
fixedFields: {
|
|
230
|
+
description: {
|
|
231
|
+
$ref: '#/visitors/value'
|
|
232
|
+
},
|
|
233
|
+
url: {
|
|
234
|
+
$ref: '#/visitors/value'
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
Parameter: {
|
|
239
|
+
$visitor: ParameterVisitor,
|
|
240
|
+
element: 'parameter',
|
|
241
|
+
fixedFields: {
|
|
242
|
+
name: {
|
|
243
|
+
$ref: '#/visitors/value'
|
|
244
|
+
},
|
|
245
|
+
in: {
|
|
246
|
+
$ref: '#/visitors/value'
|
|
247
|
+
},
|
|
248
|
+
description: jsonSchemaFixedFields.description,
|
|
249
|
+
required: jsonSchemaFixedFields.required,
|
|
250
|
+
schema: SchemaOrJSONReferenceVisitor,
|
|
251
|
+
type: jsonSchemaFixedFields.type,
|
|
252
|
+
format: jsonSchemaFixedFields.format,
|
|
253
|
+
items: {
|
|
254
|
+
$visitor: ItemsVisitor,
|
|
255
|
+
alias: 'itemsField'
|
|
256
|
+
},
|
|
257
|
+
collectionFormat: {
|
|
258
|
+
$ref: '#/visitors/value'
|
|
259
|
+
},
|
|
260
|
+
default: jsonSchemaFixedFields.default,
|
|
261
|
+
maximum: jsonSchemaFixedFields.maximum,
|
|
262
|
+
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
263
|
+
minimum: jsonSchemaFixedFields.minimum,
|
|
264
|
+
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
265
|
+
maxLength: jsonSchemaFixedFields.maxLength,
|
|
266
|
+
minLength: jsonSchemaFixedFields.minLength,
|
|
267
|
+
pattern: jsonSchemaFixedFields.pattern,
|
|
268
|
+
maxItems: jsonSchemaFixedFields.maxItems,
|
|
269
|
+
minItems: jsonSchemaFixedFields.minItems,
|
|
270
|
+
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
271
|
+
enum: jsonSchemaFixedFields.enum,
|
|
272
|
+
multipleOf: jsonSchemaFixedFields.multipleOf
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
Items: {
|
|
276
|
+
$visitor: ItemsVisitor,
|
|
277
|
+
element: 'items',
|
|
278
|
+
fixedFields: {
|
|
279
|
+
type: jsonSchemaFixedFields.type,
|
|
280
|
+
format: jsonSchemaFixedFields.format,
|
|
281
|
+
items: {
|
|
282
|
+
$visitor: ItemsVisitor,
|
|
283
|
+
alias: 'itemsField'
|
|
284
|
+
},
|
|
285
|
+
collectionFormat: {
|
|
286
|
+
$ref: '#/visitors/value'
|
|
287
|
+
},
|
|
288
|
+
default: jsonSchemaFixedFields.default,
|
|
289
|
+
maximum: jsonSchemaFixedFields.maximum,
|
|
290
|
+
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
291
|
+
minimum: jsonSchemaFixedFields.minimum,
|
|
292
|
+
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
293
|
+
maxLength: jsonSchemaFixedFields.maxLength,
|
|
294
|
+
minLength: jsonSchemaFixedFields.minLength,
|
|
295
|
+
pattern: jsonSchemaFixedFields.pattern,
|
|
296
|
+
maxItems: jsonSchemaFixedFields.maxItems,
|
|
297
|
+
minItems: jsonSchemaFixedFields.minItems,
|
|
298
|
+
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
299
|
+
enum: jsonSchemaFixedFields.enum,
|
|
300
|
+
multipleOf: jsonSchemaFixedFields.multipleOf
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
Responses: {
|
|
304
|
+
$visitor: ResponsesVisitor,
|
|
305
|
+
element: 'responses',
|
|
306
|
+
fixedFields: {
|
|
307
|
+
default: ResponsesDefaultVisitor
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
Response: {
|
|
311
|
+
$visitor: ResponseVisitor,
|
|
312
|
+
element: 'response',
|
|
313
|
+
fixedFields: {
|
|
314
|
+
description: {
|
|
315
|
+
$ref: '#/visitors/value'
|
|
316
|
+
},
|
|
317
|
+
schema: SchemaOrJSONReferenceVisitor,
|
|
318
|
+
headers: {
|
|
319
|
+
$ref: '#/visitors/document/objects/Headers'
|
|
320
|
+
},
|
|
321
|
+
examples: {
|
|
322
|
+
$ref: '#/visitors/document/objects/Example'
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
Headers: {
|
|
327
|
+
$visitor: HeadersVisitor,
|
|
328
|
+
element: 'headers'
|
|
329
|
+
},
|
|
330
|
+
Example: {
|
|
331
|
+
$visitor: ExampleVisitor,
|
|
332
|
+
element: 'example'
|
|
333
|
+
},
|
|
334
|
+
Header: {
|
|
335
|
+
$visitor: HeaderVisitor,
|
|
336
|
+
element: 'header',
|
|
337
|
+
fixedFields: {
|
|
338
|
+
description: jsonSchemaFixedFields.description,
|
|
339
|
+
type: jsonSchemaFixedFields.type,
|
|
340
|
+
format: jsonSchemaFixedFields.format,
|
|
341
|
+
items: {
|
|
342
|
+
$visitor: ItemsVisitor,
|
|
343
|
+
alias: 'itemsField'
|
|
344
|
+
},
|
|
345
|
+
collectionFormat: {
|
|
346
|
+
$ref: '#/visitors/value'
|
|
347
|
+
},
|
|
348
|
+
default: jsonSchemaFixedFields.default,
|
|
349
|
+
maximum: jsonSchemaFixedFields.maximum,
|
|
350
|
+
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
351
|
+
minimum: jsonSchemaFixedFields.minimum,
|
|
352
|
+
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
353
|
+
maxLength: jsonSchemaFixedFields.maxLength,
|
|
354
|
+
minLength: jsonSchemaFixedFields.minLength,
|
|
355
|
+
pattern: jsonSchemaFixedFields.pattern,
|
|
356
|
+
maxItems: jsonSchemaFixedFields.maxItems,
|
|
357
|
+
minItems: jsonSchemaFixedFields.minItems,
|
|
358
|
+
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
359
|
+
enum: jsonSchemaFixedFields.enum,
|
|
360
|
+
multipleOf: jsonSchemaFixedFields.multipleOf
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
Tag: {
|
|
364
|
+
$visitor: TagVisitor,
|
|
365
|
+
element: 'tag',
|
|
366
|
+
fixedFields: {
|
|
367
|
+
name: {
|
|
368
|
+
$ref: '#/visitors/value'
|
|
369
|
+
},
|
|
370
|
+
description: {
|
|
371
|
+
$ref: '#/visitors/value'
|
|
372
|
+
},
|
|
373
|
+
externalDocs: {
|
|
374
|
+
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
Reference: {
|
|
379
|
+
$visitor: ReferenceVisitor,
|
|
380
|
+
element: 'reference',
|
|
381
|
+
fixedFields: {
|
|
382
|
+
$ref: Reference$RefVisitor
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
Schema: {
|
|
386
|
+
$visitor: SchemaVisitor,
|
|
387
|
+
element: 'schema',
|
|
388
|
+
fixedFields: {
|
|
389
|
+
// the following properties are taken directly from the JSON Schema definition and follow the same specifications
|
|
390
|
+
format: jsonSchemaFixedFields.format,
|
|
391
|
+
title: jsonSchemaFixedFields.title,
|
|
392
|
+
description: jsonSchemaFixedFields.description,
|
|
393
|
+
default: jsonSchemaFixedFields.default,
|
|
394
|
+
multipleOf: jsonSchemaFixedFields.multipleOf,
|
|
395
|
+
maximum: jsonSchemaFixedFields.maximum,
|
|
396
|
+
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
397
|
+
minimum: jsonSchemaFixedFields.minimum,
|
|
398
|
+
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
399
|
+
maxLength: jsonSchemaFixedFields.maxLength,
|
|
400
|
+
minLength: jsonSchemaFixedFields.minLength,
|
|
401
|
+
pattern: jsonSchemaFixedFields.pattern,
|
|
402
|
+
maxItems: jsonSchemaFixedFields.maxItems,
|
|
403
|
+
minItems: jsonSchemaFixedFields.minItems,
|
|
404
|
+
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
405
|
+
maxProperties: jsonSchemaFixedFields.maxProperties,
|
|
406
|
+
minProperties: jsonSchemaFixedFields.minProperties,
|
|
407
|
+
required: jsonSchemaFixedFields.required,
|
|
408
|
+
enum: jsonSchemaFixedFields.enum,
|
|
409
|
+
type: jsonSchemaFixedFields.type,
|
|
410
|
+
readOnly: jsonSchemaFixedFields.readOnly,
|
|
411
|
+
// the following properties are taken from the JSON Schema definition but their definitions were adjusted to the Swagger Specification
|
|
412
|
+
items: SchemaItemsVisitor,
|
|
413
|
+
allOf: SchemaAllOfVisitor,
|
|
414
|
+
properties: SchemaPropertiesVisitor,
|
|
415
|
+
additionalProperties: SchemaOrJSONReferenceVisitor,
|
|
416
|
+
// OpenAPI vocabulary
|
|
417
|
+
discriminator: {
|
|
418
|
+
$ref: '#/visitors/value'
|
|
419
|
+
},
|
|
420
|
+
xml: {
|
|
421
|
+
$ref: '#/visitors/document/objects/XML'
|
|
422
|
+
},
|
|
423
|
+
externalDocs: {
|
|
424
|
+
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
425
|
+
},
|
|
426
|
+
example: {
|
|
427
|
+
$ref: '#/visitors/value'
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
XML: {
|
|
432
|
+
$visitor: XmlVisitor,
|
|
433
|
+
element: 'xml',
|
|
434
|
+
fixedFields: {
|
|
435
|
+
name: {
|
|
436
|
+
$ref: '#/visitors/value'
|
|
437
|
+
},
|
|
438
|
+
namespace: {
|
|
439
|
+
$ref: '#/visitors/value'
|
|
440
|
+
},
|
|
441
|
+
prefix: {
|
|
442
|
+
$ref: '#/visitors/value'
|
|
443
|
+
},
|
|
444
|
+
attribute: {
|
|
445
|
+
$ref: '#/visitors/value'
|
|
446
|
+
},
|
|
447
|
+
wrapped: {
|
|
448
|
+
$ref: '#/visitors/value'
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
Definitions: {
|
|
453
|
+
$visitor: DefinitionsVisitor,
|
|
454
|
+
element: 'definitions'
|
|
455
|
+
},
|
|
456
|
+
ParametersDefinitions: {
|
|
457
|
+
$visitor: ParametersDefinitionsVisitor,
|
|
458
|
+
element: 'parametersDefinitions'
|
|
459
|
+
},
|
|
460
|
+
ResponsesDefinitions: {
|
|
461
|
+
$visitor: ResponsesDefinitionsVisitor,
|
|
462
|
+
element: 'responsesDefinitions'
|
|
463
|
+
},
|
|
464
|
+
SecurityDefinitions: {
|
|
465
|
+
$visitor: SecurityDefinitionsVisitor,
|
|
466
|
+
element: 'securityDefinitions'
|
|
467
|
+
},
|
|
468
|
+
SecurityScheme: {
|
|
469
|
+
$visitor: SecuritySchemeVisitor,
|
|
470
|
+
element: 'securityScheme',
|
|
471
|
+
fixedFields: {
|
|
472
|
+
type: {
|
|
473
|
+
$ref: '#/visitors/value'
|
|
474
|
+
},
|
|
475
|
+
description: {
|
|
476
|
+
$ref: '#/visitors/value'
|
|
477
|
+
},
|
|
478
|
+
name: {
|
|
479
|
+
$ref: '#/visitors/value'
|
|
480
|
+
},
|
|
481
|
+
in: {
|
|
482
|
+
$ref: '#/visitors/value'
|
|
483
|
+
},
|
|
484
|
+
flow: {
|
|
485
|
+
$ref: '#/visitors/value'
|
|
486
|
+
},
|
|
487
|
+
authorizationUrl: {
|
|
488
|
+
$ref: '#/visitors/value'
|
|
489
|
+
},
|
|
490
|
+
token: {
|
|
491
|
+
$ref: '#/visitors/value'
|
|
492
|
+
},
|
|
493
|
+
scopes: {
|
|
494
|
+
$ref: '#/visitors/document/objects/Scopes'
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
Scopes: {
|
|
499
|
+
$visitor: ScopesVisitor,
|
|
500
|
+
element: 'scopes'
|
|
501
|
+
},
|
|
502
|
+
SecurityRequirement: {
|
|
503
|
+
$visitor: SecurityRequirementVisitor,
|
|
504
|
+
element: 'securityRequirement'
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
extension: {
|
|
508
|
+
$visitor: SpecificationExtensionVisitor
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
export default specification;
|