@swagger-api/apidom-ns-openapi-3-1 1.0.0-beta.1 → 1.0.0-beta.11
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 +42 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/NOTICE +26 -0
- package/dist/apidom-ns-openapi-3-1.browser.js +5023 -2573
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +11 -10
- package/src/elements/Callback.cjs +3 -0
- package/src/elements/Callback.mjs +4 -0
- package/src/elements/Components.cjs +3 -0
- package/src/elements/Components.mjs +4 -0
- package/src/elements/Contact.cjs +3 -0
- package/src/elements/Contact.mjs +4 -0
- package/src/elements/Discriminator.cjs +3 -0
- package/src/elements/Discriminator.mjs +4 -0
- package/src/elements/Encoding.cjs +3 -0
- package/src/elements/Encoding.mjs +4 -0
- package/src/elements/Example.cjs +3 -0
- package/src/elements/Example.mjs +4 -0
- package/src/elements/ExternalDocumentation.cjs +3 -0
- package/src/elements/ExternalDocumentation.mjs +4 -0
- package/src/elements/Header.cjs +3 -0
- package/src/elements/Header.mjs +3 -0
- package/src/elements/Info.cjs +3 -0
- package/src/elements/Info.mjs +3 -0
- package/src/elements/JsonSchemaDialect.cjs +3 -0
- package/src/elements/JsonSchemaDialect.mjs +4 -0
- package/src/elements/License.cjs +3 -0
- package/src/elements/License.mjs +4 -0
- package/src/elements/Link.cjs +3 -0
- package/src/elements/Link.mjs +4 -0
- package/src/elements/MediaType.cjs +3 -0
- package/src/elements/MediaType.mjs +3 -0
- package/src/elements/OAuthFlow.cjs +3 -0
- package/src/elements/OAuthFlow.mjs +4 -0
- package/src/elements/OAuthFlows.cjs +3 -0
- package/src/elements/OAuthFlows.mjs +4 -0
- package/src/elements/OpenApi3-1.cjs +3 -0
- package/src/elements/OpenApi3-1.mjs +3 -0
- package/src/elements/Openapi.cjs +3 -0
- package/src/elements/Openapi.mjs +4 -0
- package/src/elements/Operation.cjs +3 -0
- package/src/elements/Operation.mjs +3 -0
- package/src/elements/Parameter.cjs +3 -0
- package/src/elements/Parameter.mjs +3 -0
- package/src/elements/PathItem.cjs +3 -0
- package/src/elements/PathItem.mjs +3 -0
- package/src/elements/Paths.cjs +3 -0
- package/src/elements/Paths.mjs +4 -0
- package/src/elements/Reference.cjs +3 -0
- package/src/elements/Reference.mjs +4 -0
- package/src/elements/RequestBody.cjs +3 -0
- package/src/elements/RequestBody.mjs +4 -0
- package/src/elements/Response.cjs +3 -0
- package/src/elements/Response.mjs +4 -0
- package/src/elements/Responses.cjs +3 -0
- package/src/elements/Responses.mjs +4 -0
- package/src/elements/Schema.cjs +5 -431
- package/src/elements/Schema.mjs +5 -431
- package/src/elements/SecurityRequirement.cjs +3 -0
- package/src/elements/SecurityRequirement.mjs +4 -0
- package/src/elements/SecurityScheme.cjs +3 -0
- package/src/elements/SecurityScheme.mjs +4 -0
- package/src/elements/Server.cjs +3 -0
- package/src/elements/Server.mjs +4 -0
- package/src/elements/ServerVariable.cjs +3 -0
- package/src/elements/ServerVariable.mjs +4 -0
- package/src/elements/Tag.cjs +3 -0
- package/src/elements/Tag.mjs +4 -0
- package/src/elements/Xml.cjs +3 -0
- package/src/elements/Xml.mjs +4 -0
- package/src/elements/nces/ComponentsPathItems.cjs +3 -0
- package/src/elements/nces/ComponentsPathItems.mjs +4 -0
- package/src/elements/nces/Webhooks.cjs +3 -0
- package/src/elements/nces/Webhooks.mjs +4 -0
- package/src/index.mjs +2 -1
- package/src/media-types.cjs +11 -0
- package/src/media-types.mjs +12 -0
- package/src/namespace.cjs +3 -0
- package/src/namespace.mjs +5 -1
- package/src/predicates.cjs +108 -0
- package/src/predicates.mjs +108 -0
- package/src/refractor/plugins/normalize-header-examples/index.cjs +4 -0
- package/src/refractor/plugins/normalize-header-examples/index.mjs +4 -0
- package/src/refractor/plugins/normalize-operation-ids.cjs +4 -0
- package/src/refractor/plugins/normalize-operation-ids.mjs +4 -0
- package/src/refractor/plugins/normalize-parameter-examples.cjs +4 -0
- package/src/refractor/plugins/normalize-parameter-examples.mjs +4 -0
- package/src/refractor/plugins/normalize-parameters.cjs +4 -0
- package/src/refractor/plugins/normalize-parameters.mjs +4 -0
- package/src/refractor/plugins/normalize-security-requirements.cjs +4 -0
- package/src/refractor/plugins/normalize-security-requirements.mjs +4 -0
- package/src/refractor/plugins/normalize-servers.cjs +6 -2
- package/src/refractor/plugins/normalize-servers.mjs +6 -2
- package/src/refractor/plugins/replace-empty-element.cjs +4 -0
- package/src/refractor/plugins/replace-empty-element.mjs +4 -0
- package/src/refractor/specification.cjs +14 -115
- package/src/refractor/specification.mjs +14 -115
- package/src/refractor/toolbox.cjs +19 -1
- package/src/refractor/toolbox.mjs +15 -1
- package/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.cjs +7 -0
- package/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.mjs +6 -0
- package/src/refractor/visitors/open-api-3-1/WebhooksVisitor.cjs +7 -0
- package/src/refractor/visitors/open-api-3-1/WebhooksVisitor.mjs +6 -0
- package/src/refractor/visitors/open-api-3-1/callback/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/callback/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.cjs +7 -0
- package/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.mjs +6 -0
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.cjs +7 -0
- package/src/refractor/visitors/open-api-3-1/components/SchemasVisitor.mjs +8 -0
- package/src/refractor/visitors/open-api-3-1/components/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/components/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/contact/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/contact/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/distriminator/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/distriminator/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/encoding/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/encoding/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/example/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/example/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/external-documentation/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/external-documentation/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/header/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/header/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/index.cjs +6 -0
- package/src/refractor/visitors/open-api-3-1/index.mjs +8 -1
- package/src/refractor/visitors/open-api-3-1/info/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/info/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/license/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/license/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/link/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/link/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/media-type/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/media-type/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/oauth-flow/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/oauth-flow/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/oauth-flows/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/oauth-flows/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/operation/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/operation/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/parameter/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/parameter/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/path-item/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/path-item/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/paths/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/paths/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/reference/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/reference/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/request-body/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/request-body/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/response/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/response/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/responses/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/responses/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.cjs +9 -10
- package/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.mjs +10 -9
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.cjs +5 -21
- package/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.mjs +5 -20
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.cjs +5 -21
- package/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.mjs +5 -20
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.cjs +5 -10
- package/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.mjs +5 -9
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.cjs +5 -21
- package/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.mjs +5 -20
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.cjs +5 -10
- package/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.mjs +5 -9
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.cjs +5 -21
- package/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.mjs +5 -20
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.cjs +5 -10
- package/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.mjs +5 -9
- package/src/refractor/visitors/open-api-3-1/schema/index.cjs +18 -32
- package/src/refractor/visitors/open-api-3-1/schema/index.mjs +19 -34
- package/src/refractor/visitors/open-api-3-1/security-requirement/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/security-requirement/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/security-scheme/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/security-scheme/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/server/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/server/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/server-variable/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/server-variable/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/tag/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/tag/index.mjs +7 -11
- package/src/refractor/visitors/open-api-3-1/xml/index.cjs +8 -12
- package/src/refractor/visitors/open-api-3-1/xml/index.mjs +7 -11
- package/src/traversal/visitor.cjs +4 -1
- package/src/traversal/visitor.mjs +4 -1
- package/types/apidom-ns-openapi-3-1.d.ts +2745 -0
- package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/$refVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/EnumVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/ExamplesVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/ParentSchemaAwareVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.cjs +0 -13
- package/src/refractor/visitors/open-api-3-1/schema/RequiredVisitor.mjs +0 -9
- package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.cjs +0 -18
- package/src/refractor/visitors/open-api-3-1/schema/TypeVisitor.mjs +0 -14
- package/types/dist.d.ts +0 -1778
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AllOfVisitor extends
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class AllOfVisitor extends _apidomNsJsonSchema.AllOfVisitor {
|
|
11
10
|
constructor(options) {
|
|
12
11
|
super(options);
|
|
13
|
-
this.element = new _apidomCore.ArrayElement();
|
|
14
|
-
this.element.classes.push('json-schema-allOf');
|
|
15
12
|
this.passingOptionsNames.push('parent');
|
|
16
13
|
}
|
|
17
|
-
ArrayElement(arrayElement) {
|
|
18
|
-
arrayElement.forEach(item => {
|
|
19
|
-
if ((0, _apidomCore.isObjectElement)(item)) {
|
|
20
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
21
|
-
this.element.push(schemaElement);
|
|
22
|
-
} else {
|
|
23
|
-
const element = (0, _apidomCore.cloneDeep)(item);
|
|
24
|
-
this.element.push(element);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
28
|
-
return _apidomCore.BREAK;
|
|
29
|
-
}
|
|
30
14
|
}
|
|
31
15
|
var _default = exports.default = AllOfVisitor;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class AllOfVisitor extends
|
|
1
|
+
import { AllOfVisitor as AllOfJSONSchema202012Options } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class AllOfVisitor extends AllOfJSONSchema202012Options {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
super(options);
|
|
8
|
-
this.element = new ArrayElement();
|
|
9
|
-
this.element.classes.push('json-schema-allOf');
|
|
10
8
|
this.passingOptionsNames.push('parent');
|
|
11
9
|
}
|
|
12
|
-
ArrayElement(arrayElement) {
|
|
13
|
-
arrayElement.forEach(item => {
|
|
14
|
-
if (isObjectElement(item)) {
|
|
15
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
16
|
-
this.element.push(schemaElement);
|
|
17
|
-
} else {
|
|
18
|
-
const element = cloneDeep(item);
|
|
19
|
-
this.element.push(element);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
23
|
-
return BREAK;
|
|
24
|
-
}
|
|
25
10
|
}
|
|
26
11
|
export default AllOfVisitor;
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AnyOfVisitor extends
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class AnyOfVisitor extends _apidomNsJsonSchema.AnyOfVisitor {
|
|
11
10
|
constructor(options) {
|
|
12
11
|
super(options);
|
|
13
|
-
this.element = new _apidomCore.ArrayElement();
|
|
14
|
-
this.element.classes.push('json-schema-anyOf');
|
|
15
12
|
this.passingOptionsNames.push('parent');
|
|
16
13
|
}
|
|
17
|
-
ArrayElement(arrayElement) {
|
|
18
|
-
arrayElement.forEach(item => {
|
|
19
|
-
if ((0, _apidomCore.isObjectElement)(item)) {
|
|
20
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
21
|
-
this.element.push(schemaElement);
|
|
22
|
-
} else {
|
|
23
|
-
const element = (0, _apidomCore.cloneDeep)(item);
|
|
24
|
-
this.element.push(element);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
28
|
-
return _apidomCore.BREAK;
|
|
29
|
-
}
|
|
30
14
|
}
|
|
31
15
|
var _default = exports.default = AnyOfVisitor;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class AnyOfVisitor extends
|
|
1
|
+
import { AnyOfVisitor as AnyOfJSONSchema202012Options } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class AnyOfVisitor extends AnyOfJSONSchema202012Options {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
super(options);
|
|
8
|
-
this.element = new ArrayElement();
|
|
9
|
-
this.element.classes.push('json-schema-anyOf');
|
|
10
8
|
this.passingOptionsNames.push('parent');
|
|
11
9
|
}
|
|
12
|
-
ArrayElement(arrayElement) {
|
|
13
|
-
arrayElement.forEach(item => {
|
|
14
|
-
if (isObjectElement(item)) {
|
|
15
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
16
|
-
this.element.push(schemaElement);
|
|
17
|
-
} else {
|
|
18
|
-
const element = cloneDeep(item);
|
|
19
|
-
this.element.push(element);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
23
|
-
return BREAK;
|
|
24
|
-
}
|
|
25
10
|
}
|
|
26
11
|
export default AnyOfVisitor;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class DependentSchemasVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.MapVisitor, _ParentSchemaAwareVisitor.default, _apidomNsOpenapi.FallbackVisitor) {
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class DependentSchemasVisitor extends _apidomNsJsonSchema.DependentSchemasVisitor {
|
|
12
10
|
constructor(options) {
|
|
13
11
|
super(options);
|
|
14
|
-
this.element = new _apidomCore.ObjectElement();
|
|
15
|
-
this.element.classes.push('json-schema-dependentSchemas');
|
|
16
|
-
this.specPath = (0, _ramda.always)(['document', 'objects', 'Schema']);
|
|
17
12
|
this.passingOptionsNames.push('parent');
|
|
18
13
|
}
|
|
19
14
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class DependentSchemasVisitor extends Mixin(MapVisitor, ParentSchemaAwareVisitor, FallbackVisitor) {
|
|
1
|
+
import { DependentSchemasVisitor as DependentSchemaJSONSchema202012Visitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class DependentSchemasVisitor extends DependentSchemaJSONSchema202012Visitor {
|
|
7
6
|
constructor(options) {
|
|
8
7
|
super(options);
|
|
9
|
-
this.element = new ObjectElement();
|
|
10
|
-
this.element.classes.push('json-schema-dependentSchemas');
|
|
11
|
-
this.specPath = always(['document', 'objects', 'Schema']);
|
|
12
8
|
this.passingOptionsNames.push('parent');
|
|
13
9
|
}
|
|
14
10
|
}
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class OneOfVisitor extends
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class OneOfVisitor extends _apidomNsJsonSchema.OneOfVisitor {
|
|
11
10
|
constructor(options) {
|
|
12
11
|
super(options);
|
|
13
|
-
this.element = new _apidomCore.ArrayElement();
|
|
14
|
-
this.element.classes.push('json-schema-oneOf');
|
|
15
12
|
this.passingOptionsNames.push('parent');
|
|
16
13
|
}
|
|
17
|
-
ArrayElement(arrayElement) {
|
|
18
|
-
arrayElement.forEach(item => {
|
|
19
|
-
if ((0, _apidomCore.isObjectElement)(item)) {
|
|
20
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
21
|
-
this.element.push(schemaElement);
|
|
22
|
-
} else {
|
|
23
|
-
const element = (0, _apidomCore.cloneDeep)(item);
|
|
24
|
-
this.element.push(element);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
28
|
-
return _apidomCore.BREAK;
|
|
29
|
-
}
|
|
30
14
|
}
|
|
31
15
|
var _default = exports.default = OneOfVisitor;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class OneOfVisitor extends
|
|
1
|
+
import { OneOfVisitor as OneOfJSONSchema202012Options } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class OneOfVisitor extends OneOfJSONSchema202012Options {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
super(options);
|
|
8
|
-
this.element = new ArrayElement();
|
|
9
|
-
this.element.classes.push('json-schema-oneOf');
|
|
10
8
|
this.passingOptionsNames.push('parent');
|
|
11
9
|
}
|
|
12
|
-
ArrayElement(arrayElement) {
|
|
13
|
-
arrayElement.forEach(item => {
|
|
14
|
-
if (isObjectElement(item)) {
|
|
15
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
16
|
-
this.element.push(schemaElement);
|
|
17
|
-
} else {
|
|
18
|
-
const element = cloneDeep(item);
|
|
19
|
-
this.element.push(element);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
23
|
-
return BREAK;
|
|
24
|
-
}
|
|
25
10
|
}
|
|
26
11
|
export default OneOfVisitor;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class PatternPropertiesVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.MapVisitor, _ParentSchemaAwareVisitor.default, _apidomNsOpenapi.FallbackVisitor) {
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class PatternPropertiesVisitor extends _apidomNsJsonSchema.PatternPropertiesVisitor {
|
|
12
10
|
constructor(options) {
|
|
13
11
|
super(options);
|
|
14
|
-
this.element = new _apidomCore.ObjectElement();
|
|
15
|
-
this.element.classes.push('json-schema-patternProperties');
|
|
16
|
-
this.specPath = (0, _ramda.always)(['document', 'objects', 'Schema']);
|
|
17
12
|
this.passingOptionsNames.push('parent');
|
|
18
13
|
}
|
|
19
14
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class PatternPropertiesVisitor extends Mixin(MapVisitor, ParentSchemaAwareVisitor, FallbackVisitor) {
|
|
1
|
+
import { PatternPropertiesVisitor as PatternPropertiesJSONSchema202012Visitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class PatternPropertiesVisitor extends PatternPropertiesJSONSchema202012Visitor {
|
|
7
6
|
constructor(options) {
|
|
8
7
|
super(options);
|
|
9
|
-
this.element = new ObjectElement();
|
|
10
|
-
this.element.classes.push('json-schema-patternProperties');
|
|
11
|
-
this.specPath = always(['document', 'objects', 'Schema']);
|
|
12
8
|
this.passingOptionsNames.push('parent');
|
|
13
9
|
}
|
|
14
10
|
}
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class PrefixItemsVisitor extends
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class PrefixItemsVisitor extends _apidomNsJsonSchema.PrefixItemsVisitor {
|
|
11
10
|
constructor(options) {
|
|
12
11
|
super(options);
|
|
13
|
-
this.element = new _apidomCore.ArrayElement();
|
|
14
|
-
this.element.classes.push('json-schema-prefixItems');
|
|
15
12
|
this.passingOptionsNames.push('parent');
|
|
16
13
|
}
|
|
17
|
-
ArrayElement(arrayElement) {
|
|
18
|
-
arrayElement.forEach(item => {
|
|
19
|
-
if ((0, _apidomCore.isObjectElement)(item)) {
|
|
20
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
21
|
-
this.element.push(schemaElement);
|
|
22
|
-
} else {
|
|
23
|
-
const element = (0, _apidomCore.cloneDeep)(item);
|
|
24
|
-
this.element.push(element);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
28
|
-
return _apidomCore.BREAK;
|
|
29
|
-
}
|
|
30
14
|
}
|
|
31
15
|
var _default = exports.default = PrefixItemsVisitor;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class PrefixItemsVisitor extends
|
|
1
|
+
import { PrefixItemsVisitor as PrefixItemsJSONSchema202012Visitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class PrefixItemsVisitor extends PrefixItemsJSONSchema202012Visitor {
|
|
6
6
|
constructor(options) {
|
|
7
7
|
super(options);
|
|
8
|
-
this.element = new ArrayElement();
|
|
9
|
-
this.element.classes.push('json-schema-prefixItems');
|
|
10
8
|
this.passingOptionsNames.push('parent');
|
|
11
9
|
}
|
|
12
|
-
ArrayElement(arrayElement) {
|
|
13
|
-
arrayElement.forEach(item => {
|
|
14
|
-
if (isObjectElement(item)) {
|
|
15
|
-
const schemaElement = this.toRefractedElement(['document', 'objects', 'Schema'], item);
|
|
16
|
-
this.element.push(schemaElement);
|
|
17
|
-
} else {
|
|
18
|
-
const element = cloneDeep(item);
|
|
19
|
-
this.element.push(element);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
23
|
-
return BREAK;
|
|
24
|
-
}
|
|
25
10
|
}
|
|
26
11
|
export default PrefixItemsVisitor;
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
3
|
exports.__esModule = true;
|
|
5
4
|
exports.default = void 0;
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class PropertiesVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.MapVisitor, _ParentSchemaAwareVisitor.default, _apidomNsOpenapi.FallbackVisitor) {
|
|
5
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
class PropertiesVisitor extends _apidomNsJsonSchema.PropertiesVisitor {
|
|
12
10
|
constructor(options) {
|
|
13
11
|
super(options);
|
|
14
|
-
this.element = new _apidomCore.ObjectElement();
|
|
15
|
-
this.element.classes.push('json-schema-properties');
|
|
16
|
-
this.specPath = (0, _ramda.always)(['document', 'objects', 'Schema']);
|
|
17
12
|
this.passingOptionsNames.push('parent');
|
|
18
13
|
}
|
|
19
14
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class PropertiesVisitor extends Mixin(MapVisitor, ParentSchemaAwareVisitor, FallbackVisitor) {
|
|
1
|
+
import { PropertiesVisitor as PropertiesJSONSchema202012Visitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
class PropertiesVisitor extends PropertiesJSONSchema202012Visitor {
|
|
7
6
|
constructor(options) {
|
|
8
7
|
super(options);
|
|
9
|
-
this.element = new ObjectElement();
|
|
10
|
-
this.element.classes.push('json-schema-properties');
|
|
11
|
-
this.specPath = always(['document', 'objects', 'Schema']);
|
|
12
8
|
this.passingOptionsNames.push('parent');
|
|
13
9
|
}
|
|
14
10
|
}
|
|
@@ -5,14 +5,20 @@ exports.__esModule = true;
|
|
|
5
5
|
exports.default = void 0;
|
|
6
6
|
var _tsMixer = require("ts-mixer");
|
|
7
7
|
var _ramda = require("ramda");
|
|
8
|
-
var _ramdaAdjunct = require("ramda-adjunct");
|
|
9
8
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
10
9
|
var _apidomNsOpenapi = require("@swagger-api/apidom-ns-openapi-3-0");
|
|
10
|
+
var _apidomNsJsonSchema = require("@swagger-api/apidom-ns-json-schema-2020-12");
|
|
11
11
|
var _predicates = require("../../../../predicates.cjs");
|
|
12
12
|
var _Schema = _interopRequireDefault(require("../../../../elements/Schema.cjs"));
|
|
13
13
|
var _JsonSchemaDialect = _interopRequireDefault(require("../../../../elements/JsonSchemaDialect.cjs"));
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
class SchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.FixedFieldsVisitor, _apidomNsJsonSchema.ParentSchemaAwareVisitor, _apidomNsOpenapi.FallbackVisitor) {
|
|
16
22
|
constructor(options) {
|
|
17
23
|
super(options);
|
|
18
24
|
this.element = new _Schema.default();
|
|
@@ -22,8 +28,8 @@ class SchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.FixedFieldsVisi
|
|
|
22
28
|
this.passingOptionsNames.push('parent');
|
|
23
29
|
}
|
|
24
30
|
ObjectElement(objectElement) {
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
31
|
+
this.handleDialectIdentifier(objectElement);
|
|
32
|
+
this.handleSchemaIdentifier(objectElement);
|
|
27
33
|
|
|
28
34
|
// for further processing consider this Schema Element as parent for all embedded Schema Elements
|
|
29
35
|
this.parent = this.element;
|
|
@@ -37,17 +43,15 @@ class SchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.FixedFieldsVisi
|
|
|
37
43
|
return result;
|
|
38
44
|
}
|
|
39
45
|
BooleanElement(booleanElement) {
|
|
40
|
-
|
|
41
|
-
this.element.classes.push('boolean-json-schema');
|
|
42
|
-
return result;
|
|
46
|
+
return _apidomNsJsonSchema.JSONSchemaVisitor.prototype.BooleanElement.call(this, booleanElement);
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
/**
|
|
46
50
|
* This function depends on some external context, so we need to make sure this function
|
|
47
51
|
* works even when no context is provided like when directly refracting generic Object Element
|
|
48
|
-
* into Schema Element: SchemaElement.refract(new ObjectElement({ type: 'object' })
|
|
52
|
+
* into Schema Element: `SchemaElement.refract(new ObjectElement({ type: 'object' });`
|
|
49
53
|
*/
|
|
50
|
-
|
|
54
|
+
get defaultDialectIdentifier() {
|
|
51
55
|
let jsonSchemaDialect;
|
|
52
56
|
if (this.openApiSemanticElement !== undefined &&
|
|
53
57
|
// @ts-ignore
|
|
@@ -61,29 +65,11 @@ class SchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsOpenapi.FixedFieldsVisi
|
|
|
61
65
|
}
|
|
62
66
|
return jsonSchemaDialect;
|
|
63
67
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
if ((0, _ramdaAdjunct.isUndefined)(this.parent) && !(0, _apidomCore.isStringElement)(objectElement.get('$schema'))) {
|
|
67
|
-
// no parent available and no $schema is defined, set default jsonSchemaDialect
|
|
68
|
-
this.element.setMetaProperty('inherited$schema', this.getJsonSchemaDialect());
|
|
69
|
-
} else if ((0, _predicates.isSchemaElement)(this.parent) && !(0, _apidomCore.isStringElement)(objectElement.get('$schema'))) {
|
|
70
|
-
// parent is available and no $schema is defined, set parent $schema
|
|
71
|
-
const inherited$schema = (0, _ramda.defaultTo)((0, _apidomCore.toValue)(this.parent.meta.get('inherited$schema')), (0, _apidomCore.toValue)(this.parent.$schema));
|
|
72
|
-
this.element.setMetaProperty('inherited$schema', inherited$schema);
|
|
73
|
-
}
|
|
68
|
+
handleDialectIdentifier(objectElement) {
|
|
69
|
+
return _apidomNsJsonSchema.JSONSchemaVisitor.prototype.handleDialectIdentifier.call(this, objectElement);
|
|
74
70
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// fetch parent's inherited$id
|
|
78
|
-
const inherited$id = this.parent !== undefined ? (0, _apidomCore.cloneDeep)(this.parent.getMetaProperty('inherited$id', [])) : new _apidomCore.ArrayElement();
|
|
79
|
-
// get current $id keyword
|
|
80
|
-
const $id = (0, _apidomCore.toValue)(objectElement.get('$id'));
|
|
81
|
-
|
|
82
|
-
// remember $id keyword if it's a non-empty strings
|
|
83
|
-
if ((0, _ramdaAdjunct.isNonEmptyString)($id)) {
|
|
84
|
-
inherited$id.push($id);
|
|
85
|
-
}
|
|
86
|
-
this.element.setMetaProperty('inherited$id', inherited$id);
|
|
71
|
+
handleSchemaIdentifier(objectElement) {
|
|
72
|
+
return _apidomNsJsonSchema.JSONSchemaVisitor.prototype.handleSchemaIdentifier.call(this, objectElement);
|
|
87
73
|
}
|
|
88
74
|
}
|
|
89
75
|
var _default = exports.default = SchemaVisitor;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { Mixin } from 'ts-mixer';
|
|
2
|
-
import { always
|
|
3
|
-
import {
|
|
4
|
-
import { ArrayElement, isStringElement, cloneDeep, toValue } from '@swagger-api/apidom-core';
|
|
2
|
+
import { always } from 'ramda';
|
|
3
|
+
import { isStringElement, toValue } from '@swagger-api/apidom-core';
|
|
5
4
|
import { FallbackVisitor, FixedFieldsVisitor } from '@swagger-api/apidom-ns-openapi-3-0';
|
|
6
|
-
import {
|
|
5
|
+
import { JSONSchemaVisitor, ParentSchemaAwareVisitor } from '@swagger-api/apidom-ns-json-schema-2020-12';
|
|
6
|
+
import { isJsonSchemaDialectElement } from "../../../../predicates.mjs";
|
|
7
7
|
import SchemaElement from "../../../../elements/Schema.mjs";
|
|
8
8
|
import JsonSchemaDialectElement from "../../../../elements/JsonSchemaDialect.mjs";
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
10
15
|
class SchemaVisitor extends Mixin(FixedFieldsVisitor, ParentSchemaAwareVisitor, FallbackVisitor) {
|
|
11
16
|
constructor(options) {
|
|
12
17
|
super(options);
|
|
@@ -17,8 +22,8 @@ class SchemaVisitor extends Mixin(FixedFieldsVisitor, ParentSchemaAwareVisitor,
|
|
|
17
22
|
this.passingOptionsNames.push('parent');
|
|
18
23
|
}
|
|
19
24
|
ObjectElement(objectElement) {
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
25
|
+
this.handleDialectIdentifier(objectElement);
|
|
26
|
+
this.handleSchemaIdentifier(objectElement);
|
|
22
27
|
|
|
23
28
|
// for further processing consider this Schema Element as parent for all embedded Schema Elements
|
|
24
29
|
this.parent = this.element;
|
|
@@ -32,17 +37,15 @@ class SchemaVisitor extends Mixin(FixedFieldsVisitor, ParentSchemaAwareVisitor,
|
|
|
32
37
|
return result;
|
|
33
38
|
}
|
|
34
39
|
BooleanElement(booleanElement) {
|
|
35
|
-
|
|
36
|
-
this.element.classes.push('boolean-json-schema');
|
|
37
|
-
return result;
|
|
40
|
+
return JSONSchemaVisitor.prototype.BooleanElement.call(this, booleanElement);
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
/**
|
|
41
44
|
* This function depends on some external context, so we need to make sure this function
|
|
42
45
|
* works even when no context is provided like when directly refracting generic Object Element
|
|
43
|
-
* into Schema Element: SchemaElement.refract(new ObjectElement({ type: 'object' })
|
|
46
|
+
* into Schema Element: `SchemaElement.refract(new ObjectElement({ type: 'object' });`
|
|
44
47
|
*/
|
|
45
|
-
|
|
48
|
+
get defaultDialectIdentifier() {
|
|
46
49
|
let jsonSchemaDialect;
|
|
47
50
|
if (this.openApiSemanticElement !== undefined &&
|
|
48
51
|
// @ts-ignore
|
|
@@ -56,29 +59,11 @@ class SchemaVisitor extends Mixin(FixedFieldsVisitor, ParentSchemaAwareVisitor,
|
|
|
56
59
|
}
|
|
57
60
|
return jsonSchemaDialect;
|
|
58
61
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if (isUndefined(this.parent) && !isStringElement(objectElement.get('$schema'))) {
|
|
62
|
-
// no parent available and no $schema is defined, set default jsonSchemaDialect
|
|
63
|
-
this.element.setMetaProperty('inherited$schema', this.getJsonSchemaDialect());
|
|
64
|
-
} else if (isSchemaElement(this.parent) && !isStringElement(objectElement.get('$schema'))) {
|
|
65
|
-
// parent is available and no $schema is defined, set parent $schema
|
|
66
|
-
const inherited$schema = defaultTo(toValue(this.parent.meta.get('inherited$schema')), toValue(this.parent.$schema));
|
|
67
|
-
this.element.setMetaProperty('inherited$schema', inherited$schema);
|
|
68
|
-
}
|
|
62
|
+
handleDialectIdentifier(objectElement) {
|
|
63
|
+
return JSONSchemaVisitor.prototype.handleDialectIdentifier.call(this, objectElement);
|
|
69
64
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
// fetch parent's inherited$id
|
|
73
|
-
const inherited$id = this.parent !== undefined ? cloneDeep(this.parent.getMetaProperty('inherited$id', [])) : new ArrayElement();
|
|
74
|
-
// get current $id keyword
|
|
75
|
-
const $id = toValue(objectElement.get('$id'));
|
|
76
|
-
|
|
77
|
-
// remember $id keyword if it's a non-empty strings
|
|
78
|
-
if (isNonEmptyString($id)) {
|
|
79
|
-
inherited$id.push($id);
|
|
80
|
-
}
|
|
81
|
-
this.element.setMetaProperty('inherited$id', inherited$id);
|
|
65
|
+
handleSchemaIdentifier(objectElement) {
|
|
66
|
+
return JSONSchemaVisitor.prototype.handleSchemaIdentifier.call(this, objectElement);
|
|
82
67
|
}
|
|
83
68
|
}
|
|
84
69
|
export default SchemaVisitor;
|
|
@@ -2,20 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.default = void 0;
|
|
5
|
+
exports.default = exports.BaseSecurityRequirementVisitor = void 0;
|
|
6
6
|
var _apidomNsOpenapi = require("@swagger-api/apidom-ns-openapi-3-0");
|
|
7
7
|
var _SecurityRequirement = _interopRequireDefault(require("../../../../elements/SecurityRequirement.cjs"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
} = _apidomNsOpenapi.specificationObj;
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
const BaseSecurityRequirementVisitor = exports.BaseSecurityRequirementVisitor = _apidomNsOpenapi.specificationObj.visitors.document.objects.SecurityRequirement.$visitor;
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
19
15
|
class SecurityRequirementVisitor extends BaseSecurityRequirementVisitor {
|
|
20
16
|
constructor(options) {
|
|
21
17
|
super(options);
|