@speclynx/apidom-ns-openapi-2 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/apidom-ns-openapi-2.browser.js +49 -49
- package/dist/apidom-ns-openapi-2.browser.min.js +1 -1
- package/package.json +7 -7
- package/src/elements/Contact.cjs +0 -33
- package/src/elements/Contact.mjs +0 -30
- package/src/elements/Definitions.cjs +0 -15
- package/src/elements/Definitions.mjs +0 -12
- package/src/elements/Example.cjs +0 -15
- package/src/elements/Example.mjs +0 -12
- package/src/elements/ExternalDocumentation.cjs +0 -27
- package/src/elements/ExternalDocumentation.mjs +0 -24
- package/src/elements/Header.cjs +0 -185
- package/src/elements/Header.mjs +0 -182
- package/src/elements/Headers.cjs +0 -15
- package/src/elements/Headers.mjs +0 -12
- package/src/elements/Info.cjs +0 -52
- package/src/elements/Info.mjs +0 -48
- package/src/elements/Items.cjs +0 -190
- package/src/elements/Items.mjs +0 -187
- package/src/elements/License.cjs +0 -27
- package/src/elements/License.mjs +0 -24
- package/src/elements/Operation.cjs +0 -78
- package/src/elements/Operation.mjs +0 -74
- package/src/elements/Parameter.cjs +0 -230
- package/src/elements/Parameter.mjs +0 -226
- package/src/elements/ParametersDefinitions.cjs +0 -15
- package/src/elements/ParametersDefinitions.mjs +0 -12
- package/src/elements/PathItem.cjs +0 -69
- package/src/elements/PathItem.mjs +0 -65
- package/src/elements/Paths.cjs +0 -15
- package/src/elements/Paths.mjs +0 -12
- package/src/elements/Reference.cjs +0 -22
- package/src/elements/Reference.mjs +0 -19
- package/src/elements/Response.cjs +0 -39
- package/src/elements/Response.mjs +0 -35
- package/src/elements/Responses.cjs +0 -21
- package/src/elements/Responses.mjs +0 -17
- package/src/elements/ResponsesDefinitions.cjs +0 -15
- package/src/elements/ResponsesDefinitions.mjs +0 -12
- package/src/elements/Schema.cjs +0 -151
- package/src/elements/Schema.mjs +0 -147
- package/src/elements/Scopes.cjs +0 -15
- package/src/elements/Scopes.mjs +0 -12
- package/src/elements/SecurityDefinitions.cjs +0 -15
- package/src/elements/SecurityDefinitions.mjs +0 -12
- package/src/elements/SecurityRequirement.cjs +0 -15
- package/src/elements/SecurityRequirement.mjs +0 -12
- package/src/elements/SecurityScheme.cjs +0 -63
- package/src/elements/SecurityScheme.mjs +0 -60
- package/src/elements/Swagger.cjs +0 -106
- package/src/elements/Swagger.mjs +0 -102
- package/src/elements/SwaggerVersion.cjs +0 -17
- package/src/elements/SwaggerVersion.mjs +0 -14
- package/src/elements/Tag.cjs +0 -33
- package/src/elements/Tag.mjs +0 -29
- package/src/elements/Xml.cjs +0 -45
- package/src/elements/Xml.mjs +0 -42
- package/src/elements/nces/OperationConsumes.cjs +0 -16
- package/src/elements/nces/OperationConsumes.mjs +0 -13
- package/src/elements/nces/OperationParameters.cjs +0 -17
- package/src/elements/nces/OperationParameters.mjs +0 -14
- package/src/elements/nces/OperationProduces.cjs +0 -16
- package/src/elements/nces/OperationProduces.mjs +0 -13
- package/src/elements/nces/OperationSchemes.cjs +0 -16
- package/src/elements/nces/OperationSchemes.mjs +0 -13
- package/src/elements/nces/OperationSecurity.cjs +0 -17
- package/src/elements/nces/OperationSecurity.mjs +0 -14
- package/src/elements/nces/OperationTags.cjs +0 -17
- package/src/elements/nces/OperationTags.mjs +0 -14
- package/src/elements/nces/PathItemParameters.cjs +0 -17
- package/src/elements/nces/PathItemParameters.mjs +0 -14
- package/src/elements/nces/SwaggerConsumes.cjs +0 -16
- package/src/elements/nces/SwaggerConsumes.mjs +0 -13
- package/src/elements/nces/SwaggerProduces.cjs +0 -16
- package/src/elements/nces/SwaggerProduces.mjs +0 -13
- package/src/elements/nces/SwaggerSchemes.cjs +0 -16
- package/src/elements/nces/SwaggerSchemes.mjs +0 -13
- package/src/elements/nces/SwaggerSecurity.cjs +0 -17
- package/src/elements/nces/SwaggerSecurity.mjs +0 -14
- package/src/elements/nces/SwaggerTags.cjs +0 -16
- package/src/elements/nces/SwaggerTags.mjs +0 -13
- package/src/index.cjs +0 -156
- package/src/index.mjs +0 -32
- package/src/media-types.cjs +0 -34
- package/src/media-types.mjs +0 -30
- package/src/namespace.cjs +0 -71
- package/src/namespace.mjs +0 -66
- package/src/predicates.cjs +0 -193
- package/src/predicates.mjs +0 -161
- package/src/refractor/index.cjs +0 -316
- package/src/refractor/index.mjs +0 -283
- package/src/refractor/inspect.cjs +0 -157
- package/src/refractor/inspect.mjs +0 -126
- package/src/refractor/plugins/replace-empty-element.cjs +0 -366
- package/src/refractor/plugins/replace-empty-element.mjs +0 -358
- package/src/refractor/predicates.cjs +0 -26
- package/src/refractor/predicates.mjs +0 -21
- package/src/refractor/specification.cjs +0 -519
- package/src/refractor/specification.mjs +0 -513
- package/src/refractor/toolbox.cjs +0 -28
- package/src/refractor/toolbox.mjs +0 -21
- package/src/refractor/visitors/FallbackVisitor.cjs +0 -24
- package/src/refractor/visitors/FallbackVisitor.mjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.cjs +0 -18
- package/src/refractor/visitors/SpecificationExtensionVisitor.mjs +0 -13
- package/src/refractor/visitors/SpecificationVisitor.cjs +0 -75
- package/src/refractor/visitors/SpecificationVisitor.mjs +0 -69
- package/src/refractor/visitors/Visitor.cjs +0 -36
- package/src/refractor/visitors/Visitor.mjs +0 -33
- package/src/refractor/visitors/generics/AlternatingVisitor.cjs +0 -42
- package/src/refractor/visitors/generics/AlternatingVisitor.mjs +0 -35
- package/src/refractor/visitors/generics/FixedFieldsVisitor.cjs +0 -73
- package/src/refractor/visitors/generics/FixedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/generics/MapVisitor.cjs +0 -21
- package/src/refractor/visitors/generics/MapVisitor.mjs +0 -15
- package/src/refractor/visitors/generics/MixedFieldsVisitor.cjs +0 -67
- package/src/refractor/visitors/generics/MixedFieldsVisitor.mjs +0 -61
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.cjs +0 -72
- package/src/refractor/visitors/generics/PatternedFieldsVisitor.mjs +0 -66
- package/src/refractor/visitors/open-api-2/BasePathVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/BasePathVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/ConsumesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/HostVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/HostVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/ProducesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/ProducesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/SchemesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/SchemesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/SecurityVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/SecurityVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.cjs +0 -21
- package/src/refractor/visitors/open-api-2/SwaggerVisitor.mjs +0 -16
- package/src/refractor/visitors/open-api-2/TagsVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/TagsVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/bases.cjs +0 -72
- package/src/refractor/visitors/open-api-2/bases.mjs +0 -67
- package/src/refractor/visitors/open-api-2/contact/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/contact/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/definitions/index.cjs +0 -31
- package/src/refractor/visitors/open-api-2/definitions/index.mjs +0 -26
- package/src/refractor/visitors/open-api-2/example/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/example/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/external-documentation/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/external-documentation/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/header/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/header/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/headers/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/headers/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/index.cjs +0 -21
- package/src/refractor/visitors/open-api-2/index.mjs +0 -16
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.cjs +0 -17
- package/src/refractor/visitors/open-api-2/info/VersionVisitor.mjs +0 -12
- package/src/refractor/visitors/open-api-2/info/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/info/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/items/index.cjs +0 -22
- package/src/refractor/visitors/open-api-2/items/index.mjs +0 -17
- package/src/refractor/visitors/open-api-2/license/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/license/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/ConsumesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-2/operation/ParametersVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/ProducesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/SchemesVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.cjs +0 -27
- package/src/refractor/visitors/open-api-2/operation/SecurityVisitor.mjs +0 -22
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/operation/TagsVisitor.mjs +0 -18
- package/src/refractor/visitors/open-api-2/operation/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/operation/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/parameter/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/parameter/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/parameters-definitions/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/path-item/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.cjs +0 -32
- package/src/refractor/visitors/open-api-2/path-item/ParametersVisitor.mjs +0 -27
- package/src/refractor/visitors/open-api-2/path-item/index.cjs +0 -40
- package/src/refractor/visitors/open-api-2/path-item/index.mjs +0 -35
- package/src/refractor/visitors/open-api-2/paths/index.cjs +0 -37
- package/src/refractor/visitors/open-api-2/paths/index.mjs +0 -32
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.cjs +0 -16
- package/src/refractor/visitors/open-api-2/reference/$RefVisitor.mjs +0 -11
- package/src/refractor/visitors/open-api-2/reference/index.cjs +0 -29
- package/src/refractor/visitors/open-api-2/reference/index.mjs +0 -24
- package/src/refractor/visitors/open-api-2/response/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/response/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.cjs +0 -36
- package/src/refractor/visitors/open-api-2/responses/DefaultVisitor.mjs +0 -31
- package/src/refractor/visitors/open-api-2/responses/index.cjs +0 -46
- package/src/refractor/visitors/open-api-2/responses/index.mjs +0 -41
- package/src/refractor/visitors/open-api-2/responses-definitions/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/responses-definitions/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.cjs +0 -24
- package/src/refractor/visitors/open-api-2/schema/AllOfVisitor.mjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.cjs +0 -26
- package/src/refractor/visitors/open-api-2/schema/ItemsVisitor.mjs +0 -23
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.cjs +0 -24
- package/src/refractor/visitors/open-api-2/schema/PropertiesVisitor.mjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs +0 -23
- package/src/refractor/visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.mjs +0 -19
- package/src/refractor/visitors/open-api-2/schema/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/schema/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/scopes/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/scopes/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/security-definitions/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/security-definitions/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/security-requirement/index.cjs +0 -19
- package/src/refractor/visitors/open-api-2/security-requirement/index.mjs +0 -14
- package/src/refractor/visitors/open-api-2/security-scheme/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/security-scheme/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/tag/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/tag/index.mjs +0 -15
- package/src/refractor/visitors/open-api-2/xml/index.cjs +0 -20
- package/src/refractor/visitors/open-api-2/xml/index.mjs +0 -15
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-4");
|
|
7
|
-
var _FallbackVisitor = _interopRequireDefault(require("./visitors/FallbackVisitor.cjs"));
|
|
8
|
-
var _index = _interopRequireDefault(require("./visitors/open-api-2/index.cjs"));
|
|
9
|
-
var _SwaggerVisitor = _interopRequireDefault(require("./visitors/open-api-2/SwaggerVisitor.cjs"));
|
|
10
|
-
var _HostVisitor = _interopRequireDefault(require("./visitors/open-api-2/HostVisitor.cjs"));
|
|
11
|
-
var _BasePathVisitor = _interopRequireDefault(require("./visitors/open-api-2/BasePathVisitor.cjs"));
|
|
12
|
-
var _SchemesVisitor = _interopRequireDefault(require("./visitors/open-api-2/SchemesVisitor.cjs"));
|
|
13
|
-
var _ConsumesVisitor = _interopRequireDefault(require("./visitors/open-api-2/ConsumesVisitor.cjs"));
|
|
14
|
-
var _ProducesVisitor = _interopRequireDefault(require("./visitors/open-api-2/ProducesVisitor.cjs"));
|
|
15
|
-
var _SecurityVisitor = _interopRequireDefault(require("./visitors/open-api-2/SecurityVisitor.cjs"));
|
|
16
|
-
var _TagsVisitor = _interopRequireDefault(require("./visitors/open-api-2/TagsVisitor.cjs"));
|
|
17
|
-
var _index2 = _interopRequireDefault(require("./visitors/open-api-2/info/index.cjs"));
|
|
18
|
-
var _VersionVisitor = _interopRequireDefault(require("./visitors/open-api-2/info/VersionVisitor.cjs"));
|
|
19
|
-
var _index3 = _interopRequireDefault(require("./visitors/open-api-2/contact/index.cjs"));
|
|
20
|
-
var _index4 = _interopRequireDefault(require("./visitors/open-api-2/license/index.cjs"));
|
|
21
|
-
var _index5 = _interopRequireDefault(require("./visitors/open-api-2/paths/index.cjs"));
|
|
22
|
-
var _index6 = _interopRequireDefault(require("./visitors/open-api-2/path-item/index.cjs"));
|
|
23
|
-
var _$RefVisitor = _interopRequireDefault(require("./visitors/open-api-2/path-item/$RefVisitor.cjs"));
|
|
24
|
-
var _ParametersVisitor = _interopRequireDefault(require("./visitors/open-api-2/path-item/ParametersVisitor.cjs"));
|
|
25
|
-
var _index7 = _interopRequireDefault(require("./visitors/open-api-2/operation/index.cjs"));
|
|
26
|
-
var _TagsVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/operation/TagsVisitor.cjs"));
|
|
27
|
-
var _ConsumesVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/operation/ConsumesVisitor.cjs"));
|
|
28
|
-
var _ProducesVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/operation/ProducesVisitor.cjs"));
|
|
29
|
-
var _ParametersVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/operation/ParametersVisitor.cjs"));
|
|
30
|
-
var _SchemesVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/operation/SchemesVisitor.cjs"));
|
|
31
|
-
var _SecurityVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/operation/SecurityVisitor.cjs"));
|
|
32
|
-
var _index8 = _interopRequireDefault(require("./visitors/open-api-2/external-documentation/index.cjs"));
|
|
33
|
-
var _index9 = _interopRequireDefault(require("./visitors/open-api-2/parameter/index.cjs"));
|
|
34
|
-
var _index0 = _interopRequireDefault(require("./visitors/open-api-2/items/index.cjs"));
|
|
35
|
-
var _index1 = _interopRequireDefault(require("./visitors/open-api-2/responses/index.cjs"));
|
|
36
|
-
var _DefaultVisitor = _interopRequireDefault(require("./visitors/open-api-2/responses/DefaultVisitor.cjs"));
|
|
37
|
-
var _index10 = _interopRequireDefault(require("./visitors/open-api-2/response/index.cjs"));
|
|
38
|
-
var _index11 = _interopRequireDefault(require("./visitors/open-api-2/headers/index.cjs"));
|
|
39
|
-
var _index12 = _interopRequireDefault(require("./visitors/open-api-2/example/index.cjs"));
|
|
40
|
-
var _index13 = _interopRequireDefault(require("./visitors/open-api-2/header/index.cjs"));
|
|
41
|
-
var _index14 = _interopRequireDefault(require("./visitors/open-api-2/tag/index.cjs"));
|
|
42
|
-
var _index15 = _interopRequireDefault(require("./visitors/open-api-2/reference/index.cjs"));
|
|
43
|
-
var _$RefVisitor2 = _interopRequireDefault(require("./visitors/open-api-2/reference/$RefVisitor.cjs"));
|
|
44
|
-
var _index16 = _interopRequireDefault(require("./visitors/open-api-2/schema/index.cjs"));
|
|
45
|
-
var _AllOfVisitor = _interopRequireDefault(require("./visitors/open-api-2/schema/AllOfVisitor.cjs"));
|
|
46
|
-
var _ItemsVisitor = _interopRequireDefault(require("./visitors/open-api-2/schema/ItemsVisitor.cjs"));
|
|
47
|
-
var _PropertiesVisitor = _interopRequireDefault(require("./visitors/open-api-2/schema/PropertiesVisitor.cjs"));
|
|
48
|
-
var _SchemaOrJSONReferenceVisitor = _interopRequireDefault(require("./visitors/open-api-2/schema/SchemaOrJSONReferenceVisitor.cjs"));
|
|
49
|
-
var _index17 = _interopRequireDefault(require("./visitors/open-api-2/xml/index.cjs"));
|
|
50
|
-
var _index18 = _interopRequireDefault(require("./visitors/open-api-2/definitions/index.cjs"));
|
|
51
|
-
var _index19 = _interopRequireDefault(require("./visitors/open-api-2/responses-definitions/index.cjs"));
|
|
52
|
-
var _index20 = _interopRequireDefault(require("./visitors/open-api-2/parameters-definitions/index.cjs"));
|
|
53
|
-
var _index21 = _interopRequireDefault(require("./visitors/open-api-2/security-definitions/index.cjs"));
|
|
54
|
-
var _index22 = _interopRequireDefault(require("./visitors/open-api-2/security-scheme/index.cjs"));
|
|
55
|
-
var _index23 = _interopRequireDefault(require("./visitors/open-api-2/scopes/index.cjs"));
|
|
56
|
-
var _index24 = _interopRequireDefault(require("./visitors/open-api-2/security-requirement/index.cjs"));
|
|
57
|
-
var _SpecificationExtensionVisitor = _interopRequireDefault(require("./visitors/SpecificationExtensionVisitor.cjs"));
|
|
58
|
-
/**
|
|
59
|
-
* Specification object allows us to have complete control over visitors
|
|
60
|
-
* when traversing the ApiDOM.
|
|
61
|
-
* Specification also allows us to create amended refractors from
|
|
62
|
-
* existing ones by manipulating it.
|
|
63
|
-
*
|
|
64
|
-
* Note: Specification object allows to use absolute internal JSON pointers.
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
const {
|
|
68
|
-
fixedFields: jsonSchemaFixedFields
|
|
69
|
-
} = _apidomNsJsonSchemaDraft.specificationObj.visitors.document.objects.JSONSchema;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
|
-
const specification = {
|
|
75
|
-
visitors: {
|
|
76
|
-
value: _FallbackVisitor.default,
|
|
77
|
-
document: {
|
|
78
|
-
objects: {
|
|
79
|
-
// JSON Schema Draft 4/5 specific visitors
|
|
80
|
-
JSONReference: _apidomNsJsonSchemaDraft.specificationObj.visitors.document.objects.JSONReference,
|
|
81
|
-
JSONSchema: {
|
|
82
|
-
$ref: '#/visitors/document/objects/Schema'
|
|
83
|
-
},
|
|
84
|
-
// OpenAPI 2 specific visitors
|
|
85
|
-
Swagger: {
|
|
86
|
-
$visitor: _index.default,
|
|
87
|
-
element: 'swagger',
|
|
88
|
-
fixedFields: {
|
|
89
|
-
swagger: _SwaggerVisitor.default,
|
|
90
|
-
info: {
|
|
91
|
-
$ref: '#/visitors/document/objects/Info'
|
|
92
|
-
},
|
|
93
|
-
host: _HostVisitor.default,
|
|
94
|
-
basePath: _BasePathVisitor.default,
|
|
95
|
-
schemes: _SchemesVisitor.default,
|
|
96
|
-
consumes: _ConsumesVisitor.default,
|
|
97
|
-
produces: _ProducesVisitor.default,
|
|
98
|
-
paths: {
|
|
99
|
-
$ref: '#/visitors/document/objects/Paths'
|
|
100
|
-
},
|
|
101
|
-
definitions: {
|
|
102
|
-
$ref: '#/visitors/document/objects/Definitions'
|
|
103
|
-
},
|
|
104
|
-
parameters: {
|
|
105
|
-
$ref: '#/visitors/document/objects/ParametersDefinitions'
|
|
106
|
-
},
|
|
107
|
-
responses: {
|
|
108
|
-
$ref: '#/visitors/document/objects/ResponsesDefinitions'
|
|
109
|
-
},
|
|
110
|
-
securityDefinitions: {
|
|
111
|
-
$ref: '#/visitors/document/objects/SecurityDefinitions'
|
|
112
|
-
},
|
|
113
|
-
security: _SecurityVisitor.default,
|
|
114
|
-
tags: _TagsVisitor.default,
|
|
115
|
-
externalDocs: {
|
|
116
|
-
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
Info: {
|
|
121
|
-
$visitor: _index2.default,
|
|
122
|
-
element: 'info',
|
|
123
|
-
fixedFields: {
|
|
124
|
-
title: {
|
|
125
|
-
$ref: '#/visitors/value'
|
|
126
|
-
},
|
|
127
|
-
description: {
|
|
128
|
-
$ref: '#/visitors/value'
|
|
129
|
-
},
|
|
130
|
-
termsOfService: {
|
|
131
|
-
$ref: '#/visitors/value'
|
|
132
|
-
},
|
|
133
|
-
contact: {
|
|
134
|
-
$ref: '#/visitors/document/objects/Contact'
|
|
135
|
-
},
|
|
136
|
-
license: {
|
|
137
|
-
$ref: '#/visitors/document/objects/License'
|
|
138
|
-
},
|
|
139
|
-
version: _VersionVisitor.default
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
Contact: {
|
|
143
|
-
$visitor: _index3.default,
|
|
144
|
-
element: 'contact',
|
|
145
|
-
fixedFields: {
|
|
146
|
-
name: {
|
|
147
|
-
$ref: '#/visitors/value'
|
|
148
|
-
},
|
|
149
|
-
url: {
|
|
150
|
-
$ref: '#/visitors/value'
|
|
151
|
-
},
|
|
152
|
-
email: {
|
|
153
|
-
$ref: '#/visitors/value'
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
License: {
|
|
158
|
-
$visitor: _index4.default,
|
|
159
|
-
element: 'license',
|
|
160
|
-
fixedFields: {
|
|
161
|
-
name: {
|
|
162
|
-
$ref: '#/visitors/value'
|
|
163
|
-
},
|
|
164
|
-
url: {
|
|
165
|
-
$ref: '#/visitors/value'
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
Paths: {
|
|
170
|
-
$visitor: _index5.default,
|
|
171
|
-
element: 'paths'
|
|
172
|
-
},
|
|
173
|
-
PathItem: {
|
|
174
|
-
$visitor: _index6.default,
|
|
175
|
-
element: 'pathItem',
|
|
176
|
-
fixedFields: {
|
|
177
|
-
$ref: _$RefVisitor.default,
|
|
178
|
-
get: {
|
|
179
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
180
|
-
},
|
|
181
|
-
put: {
|
|
182
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
183
|
-
},
|
|
184
|
-
post: {
|
|
185
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
186
|
-
},
|
|
187
|
-
delete: {
|
|
188
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
189
|
-
},
|
|
190
|
-
options: {
|
|
191
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
192
|
-
},
|
|
193
|
-
head: {
|
|
194
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
195
|
-
},
|
|
196
|
-
patch: {
|
|
197
|
-
$ref: '#/visitors/document/objects/Operation'
|
|
198
|
-
},
|
|
199
|
-
parameters: _ParametersVisitor.default
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
Operation: {
|
|
203
|
-
$visitor: _index7.default,
|
|
204
|
-
element: 'operation',
|
|
205
|
-
fixedFields: {
|
|
206
|
-
tags: _TagsVisitor2.default,
|
|
207
|
-
summary: {
|
|
208
|
-
$ref: '#/visitors/value'
|
|
209
|
-
},
|
|
210
|
-
description: {
|
|
211
|
-
$ref: '#/visitors/value'
|
|
212
|
-
},
|
|
213
|
-
externalDocs: {
|
|
214
|
-
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
215
|
-
},
|
|
216
|
-
operationId: {
|
|
217
|
-
$ref: '#/visitors/value'
|
|
218
|
-
},
|
|
219
|
-
consumes: _ConsumesVisitor2.default,
|
|
220
|
-
produces: _ProducesVisitor2.default,
|
|
221
|
-
parameters: _ParametersVisitor2.default,
|
|
222
|
-
responses: {
|
|
223
|
-
$ref: '#/visitors/document/objects/Responses'
|
|
224
|
-
},
|
|
225
|
-
schemes: _SchemesVisitor2.default,
|
|
226
|
-
deprecated: {
|
|
227
|
-
$ref: '#/visitors/value'
|
|
228
|
-
},
|
|
229
|
-
security: _SecurityVisitor2.default
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
ExternalDocumentation: {
|
|
233
|
-
$visitor: _index8.default,
|
|
234
|
-
element: 'externalDocumentation',
|
|
235
|
-
fixedFields: {
|
|
236
|
-
description: {
|
|
237
|
-
$ref: '#/visitors/value'
|
|
238
|
-
},
|
|
239
|
-
url: {
|
|
240
|
-
$ref: '#/visitors/value'
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
Parameter: {
|
|
245
|
-
$visitor: _index9.default,
|
|
246
|
-
element: 'parameter',
|
|
247
|
-
fixedFields: {
|
|
248
|
-
name: {
|
|
249
|
-
$ref: '#/visitors/value'
|
|
250
|
-
},
|
|
251
|
-
in: {
|
|
252
|
-
$ref: '#/visitors/value'
|
|
253
|
-
},
|
|
254
|
-
description: jsonSchemaFixedFields.description,
|
|
255
|
-
required: jsonSchemaFixedFields.required,
|
|
256
|
-
schema: _SchemaOrJSONReferenceVisitor.default,
|
|
257
|
-
type: jsonSchemaFixedFields.type,
|
|
258
|
-
format: jsonSchemaFixedFields.format,
|
|
259
|
-
items: {
|
|
260
|
-
$visitor: _index0.default,
|
|
261
|
-
alias: 'itemsField'
|
|
262
|
-
},
|
|
263
|
-
collectionFormat: {
|
|
264
|
-
$ref: '#/visitors/value'
|
|
265
|
-
},
|
|
266
|
-
default: jsonSchemaFixedFields.default,
|
|
267
|
-
maximum: jsonSchemaFixedFields.maximum,
|
|
268
|
-
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
269
|
-
minimum: jsonSchemaFixedFields.minimum,
|
|
270
|
-
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
271
|
-
maxLength: jsonSchemaFixedFields.maxLength,
|
|
272
|
-
minLength: jsonSchemaFixedFields.minLength,
|
|
273
|
-
pattern: jsonSchemaFixedFields.pattern,
|
|
274
|
-
maxItems: jsonSchemaFixedFields.maxItems,
|
|
275
|
-
minItems: jsonSchemaFixedFields.minItems,
|
|
276
|
-
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
277
|
-
enum: jsonSchemaFixedFields.enum,
|
|
278
|
-
multipleOf: jsonSchemaFixedFields.multipleOf
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
Items: {
|
|
282
|
-
$visitor: _index0.default,
|
|
283
|
-
element: 'items',
|
|
284
|
-
fixedFields: {
|
|
285
|
-
type: jsonSchemaFixedFields.type,
|
|
286
|
-
format: jsonSchemaFixedFields.format,
|
|
287
|
-
items: {
|
|
288
|
-
$visitor: _index0.default,
|
|
289
|
-
alias: 'itemsField'
|
|
290
|
-
},
|
|
291
|
-
collectionFormat: {
|
|
292
|
-
$ref: '#/visitors/value'
|
|
293
|
-
},
|
|
294
|
-
default: jsonSchemaFixedFields.default,
|
|
295
|
-
maximum: jsonSchemaFixedFields.maximum,
|
|
296
|
-
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
297
|
-
minimum: jsonSchemaFixedFields.minimum,
|
|
298
|
-
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
299
|
-
maxLength: jsonSchemaFixedFields.maxLength,
|
|
300
|
-
minLength: jsonSchemaFixedFields.minLength,
|
|
301
|
-
pattern: jsonSchemaFixedFields.pattern,
|
|
302
|
-
maxItems: jsonSchemaFixedFields.maxItems,
|
|
303
|
-
minItems: jsonSchemaFixedFields.minItems,
|
|
304
|
-
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
305
|
-
enum: jsonSchemaFixedFields.enum,
|
|
306
|
-
multipleOf: jsonSchemaFixedFields.multipleOf
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
Responses: {
|
|
310
|
-
$visitor: _index1.default,
|
|
311
|
-
element: 'responses',
|
|
312
|
-
fixedFields: {
|
|
313
|
-
default: _DefaultVisitor.default
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
Response: {
|
|
317
|
-
$visitor: _index10.default,
|
|
318
|
-
element: 'response',
|
|
319
|
-
fixedFields: {
|
|
320
|
-
description: {
|
|
321
|
-
$ref: '#/visitors/value'
|
|
322
|
-
},
|
|
323
|
-
schema: _SchemaOrJSONReferenceVisitor.default,
|
|
324
|
-
headers: {
|
|
325
|
-
$ref: '#/visitors/document/objects/Headers'
|
|
326
|
-
},
|
|
327
|
-
examples: {
|
|
328
|
-
$ref: '#/visitors/document/objects/Example'
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
Headers: {
|
|
333
|
-
$visitor: _index11.default,
|
|
334
|
-
element: 'headers'
|
|
335
|
-
},
|
|
336
|
-
Example: {
|
|
337
|
-
$visitor: _index12.default,
|
|
338
|
-
element: 'example'
|
|
339
|
-
},
|
|
340
|
-
Header: {
|
|
341
|
-
$visitor: _index13.default,
|
|
342
|
-
element: 'header',
|
|
343
|
-
fixedFields: {
|
|
344
|
-
description: jsonSchemaFixedFields.description,
|
|
345
|
-
type: jsonSchemaFixedFields.type,
|
|
346
|
-
format: jsonSchemaFixedFields.format,
|
|
347
|
-
items: {
|
|
348
|
-
$visitor: _index0.default,
|
|
349
|
-
alias: 'itemsField'
|
|
350
|
-
},
|
|
351
|
-
collectionFormat: {
|
|
352
|
-
$ref: '#/visitors/value'
|
|
353
|
-
},
|
|
354
|
-
default: jsonSchemaFixedFields.default,
|
|
355
|
-
maximum: jsonSchemaFixedFields.maximum,
|
|
356
|
-
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
357
|
-
minimum: jsonSchemaFixedFields.minimum,
|
|
358
|
-
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
359
|
-
maxLength: jsonSchemaFixedFields.maxLength,
|
|
360
|
-
minLength: jsonSchemaFixedFields.minLength,
|
|
361
|
-
pattern: jsonSchemaFixedFields.pattern,
|
|
362
|
-
maxItems: jsonSchemaFixedFields.maxItems,
|
|
363
|
-
minItems: jsonSchemaFixedFields.minItems,
|
|
364
|
-
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
365
|
-
enum: jsonSchemaFixedFields.enum,
|
|
366
|
-
multipleOf: jsonSchemaFixedFields.multipleOf
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
Tag: {
|
|
370
|
-
$visitor: _index14.default,
|
|
371
|
-
element: 'tag',
|
|
372
|
-
fixedFields: {
|
|
373
|
-
name: {
|
|
374
|
-
$ref: '#/visitors/value'
|
|
375
|
-
},
|
|
376
|
-
description: {
|
|
377
|
-
$ref: '#/visitors/value'
|
|
378
|
-
},
|
|
379
|
-
externalDocs: {
|
|
380
|
-
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
Reference: {
|
|
385
|
-
$visitor: _index15.default,
|
|
386
|
-
element: 'reference',
|
|
387
|
-
fixedFields: {
|
|
388
|
-
$ref: _$RefVisitor2.default
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
Schema: {
|
|
392
|
-
$visitor: _index16.default,
|
|
393
|
-
element: 'schema',
|
|
394
|
-
fixedFields: {
|
|
395
|
-
// the following properties are taken directly from the JSON Schema definition and follow the same specifications
|
|
396
|
-
format: jsonSchemaFixedFields.format,
|
|
397
|
-
title: jsonSchemaFixedFields.title,
|
|
398
|
-
description: jsonSchemaFixedFields.description,
|
|
399
|
-
default: jsonSchemaFixedFields.default,
|
|
400
|
-
multipleOf: jsonSchemaFixedFields.multipleOf,
|
|
401
|
-
maximum: jsonSchemaFixedFields.maximum,
|
|
402
|
-
exclusiveMaximum: jsonSchemaFixedFields.exclusiveMaximum,
|
|
403
|
-
minimum: jsonSchemaFixedFields.minimum,
|
|
404
|
-
exclusiveMinimum: jsonSchemaFixedFields.exclusiveMinimum,
|
|
405
|
-
maxLength: jsonSchemaFixedFields.maxLength,
|
|
406
|
-
minLength: jsonSchemaFixedFields.minLength,
|
|
407
|
-
pattern: jsonSchemaFixedFields.pattern,
|
|
408
|
-
maxItems: jsonSchemaFixedFields.maxItems,
|
|
409
|
-
minItems: jsonSchemaFixedFields.minItems,
|
|
410
|
-
uniqueItems: jsonSchemaFixedFields.uniqueItems,
|
|
411
|
-
maxProperties: jsonSchemaFixedFields.maxProperties,
|
|
412
|
-
minProperties: jsonSchemaFixedFields.minProperties,
|
|
413
|
-
required: jsonSchemaFixedFields.required,
|
|
414
|
-
enum: jsonSchemaFixedFields.enum,
|
|
415
|
-
type: jsonSchemaFixedFields.type,
|
|
416
|
-
readOnly: jsonSchemaFixedFields.readOnly,
|
|
417
|
-
// the following properties are taken from the JSON Schema definition but their definitions were adjusted to the Swagger Specification
|
|
418
|
-
items: _ItemsVisitor.default,
|
|
419
|
-
allOf: _AllOfVisitor.default,
|
|
420
|
-
properties: _PropertiesVisitor.default,
|
|
421
|
-
additionalProperties: _SchemaOrJSONReferenceVisitor.default,
|
|
422
|
-
// OpenAPI vocabulary
|
|
423
|
-
discriminator: {
|
|
424
|
-
$ref: '#/visitors/value'
|
|
425
|
-
},
|
|
426
|
-
xml: {
|
|
427
|
-
$ref: '#/visitors/document/objects/XML'
|
|
428
|
-
},
|
|
429
|
-
externalDocs: {
|
|
430
|
-
$ref: '#/visitors/document/objects/ExternalDocumentation'
|
|
431
|
-
},
|
|
432
|
-
example: {
|
|
433
|
-
$ref: '#/visitors/value'
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
XML: {
|
|
438
|
-
$visitor: _index17.default,
|
|
439
|
-
element: 'xml',
|
|
440
|
-
fixedFields: {
|
|
441
|
-
name: {
|
|
442
|
-
$ref: '#/visitors/value'
|
|
443
|
-
},
|
|
444
|
-
namespace: {
|
|
445
|
-
$ref: '#/visitors/value'
|
|
446
|
-
},
|
|
447
|
-
prefix: {
|
|
448
|
-
$ref: '#/visitors/value'
|
|
449
|
-
},
|
|
450
|
-
attribute: {
|
|
451
|
-
$ref: '#/visitors/value'
|
|
452
|
-
},
|
|
453
|
-
wrapped: {
|
|
454
|
-
$ref: '#/visitors/value'
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
Definitions: {
|
|
459
|
-
$visitor: _index18.default,
|
|
460
|
-
element: 'definitions'
|
|
461
|
-
},
|
|
462
|
-
ParametersDefinitions: {
|
|
463
|
-
$visitor: _index20.default,
|
|
464
|
-
element: 'parametersDefinitions'
|
|
465
|
-
},
|
|
466
|
-
ResponsesDefinitions: {
|
|
467
|
-
$visitor: _index19.default,
|
|
468
|
-
element: 'responsesDefinitions'
|
|
469
|
-
},
|
|
470
|
-
SecurityDefinitions: {
|
|
471
|
-
$visitor: _index21.default,
|
|
472
|
-
element: 'securityDefinitions'
|
|
473
|
-
},
|
|
474
|
-
SecurityScheme: {
|
|
475
|
-
$visitor: _index22.default,
|
|
476
|
-
element: 'securityScheme',
|
|
477
|
-
fixedFields: {
|
|
478
|
-
type: {
|
|
479
|
-
$ref: '#/visitors/value'
|
|
480
|
-
},
|
|
481
|
-
description: {
|
|
482
|
-
$ref: '#/visitors/value'
|
|
483
|
-
},
|
|
484
|
-
name: {
|
|
485
|
-
$ref: '#/visitors/value'
|
|
486
|
-
},
|
|
487
|
-
in: {
|
|
488
|
-
$ref: '#/visitors/value'
|
|
489
|
-
},
|
|
490
|
-
flow: {
|
|
491
|
-
$ref: '#/visitors/value'
|
|
492
|
-
},
|
|
493
|
-
authorizationUrl: {
|
|
494
|
-
$ref: '#/visitors/value'
|
|
495
|
-
},
|
|
496
|
-
token: {
|
|
497
|
-
$ref: '#/visitors/value'
|
|
498
|
-
},
|
|
499
|
-
scopes: {
|
|
500
|
-
$ref: '#/visitors/document/objects/Scopes'
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
Scopes: {
|
|
505
|
-
$visitor: _index23.default,
|
|
506
|
-
element: 'scopes'
|
|
507
|
-
},
|
|
508
|
-
SecurityRequirement: {
|
|
509
|
-
$visitor: _index24.default,
|
|
510
|
-
element: 'securityRequirement'
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
extension: {
|
|
514
|
-
$visitor: _SpecificationExtensionVisitor.default
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
var _default = exports.default = specification;
|