@swagger-api/apidom-ns-json-schema-draft-6 1.0.0-beta.3 → 1.0.0-beta.30
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 +115 -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-json-schema-draft-6.browser.js +1 -1
- package/package.json +6 -6
- package/src/index.cjs +7 -1
- package/src/index.mjs +3 -0
- package/src/refractor/visitors/json-schema/ItemsVisitor.cjs +1 -22
- package/src/refractor/visitors/json-schema/ItemsVisitor.mjs +3 -25
- package/src/refractor/visitors/json-schema/index.cjs +9 -11
- package/src/refractor/visitors/json-schema/index.mjs +10 -11
- package/src/refractor/visitors/json-schema/link-description/index.cjs +1 -8
- package/src/refractor/visitors/json-schema/link-description/index.mjs +2 -8
- package/src/traversal/visitor.cjs +2 -11
- package/src/traversal/visitor.mjs +2 -11
- package/types/apidom-ns-json-schema-draft-6.d.ts +33 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-ns-json-schema-draft-6",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.30",
|
|
4
4
|
"description": "JSON Schema Draft 6 namespace for ApiDOM.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"author": "Vladimir Gorej",
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@babel/runtime-corejs3": "^7.
|
|
45
|
-
"@swagger-api/apidom-core": "^1.0.0-beta.
|
|
46
|
-
"@swagger-api/apidom-error": "^1.0.0-beta.
|
|
47
|
-
"@swagger-api/apidom-ns-json-schema-draft-4": "^1.0.0-beta.
|
|
44
|
+
"@babel/runtime-corejs3": "^7.26.10",
|
|
45
|
+
"@swagger-api/apidom-core": "^1.0.0-beta.30",
|
|
46
|
+
"@swagger-api/apidom-error": "^1.0.0-beta.30",
|
|
47
|
+
"@swagger-api/apidom-ns-json-schema-draft-4": "^1.0.0-beta.30",
|
|
48
48
|
"@types/ramda": "~0.30.0",
|
|
49
49
|
"ramda": "~0.30.0",
|
|
50
50
|
"ramda-adjunct": "^5.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"README.md",
|
|
61
61
|
"CHANGELOG.md"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "6c9b103eee7d2886214719436829f744aa6059cd"
|
|
64
64
|
}
|
package/src/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
4
|
var _interopRequireWildcard = require("@babel/runtime-corejs3/helpers/interopRequireWildcard").default;
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.specificationObj = exports.refractorPluginReplaceEmptyElement = exports.refract = exports.mediaTypes = exports.keyMap = exports.isStringElement = exports.isRefElement = exports.isObjectElement = exports.isNumberElement = exports.isNullElement = exports.isMemberElement = exports.isMediaElement = exports.isLinkElement = exports.isLinkDescriptionElement = exports.isJSONSchemaElement = exports.isJSONReferenceLikeElement = exports.isJSONReferenceElement = exports.isElement = exports.isBooleanElement = exports.isArrayElement = exports.getNodeType = exports.default = exports.createRefractor = exports.Visitor = exports.SpecificationVisitor = exports.PatternedFieldsVisitor = exports.ParentSchemaAwareVisitor = exports.MediaElement = exports.MapVisitor = exports.LinkDescriptionElement = exports.JSONSchemaElement = exports.JSONSchemaDraft6MediaTypes = exports.JSONReferenceElement = exports.FixedFieldsVisitor = exports.FallbackVisitor = exports.AlternatingVisitor = void 0;
|
|
6
|
+
exports.specificationObj = exports.refractorPluginReplaceEmptyElement = exports.refract = exports.mediaTypes = exports.keyMap = exports.isStringElement = exports.isRefElement = exports.isObjectElement = exports.isNumberElement = exports.isNullElement = exports.isMemberElement = exports.isMediaElement = exports.isLinkElement = exports.isLinkDescriptionElement = exports.isJSONSchemaElement = exports.isJSONReferenceLikeElement = exports.isJSONReferenceElement = exports.isElement = exports.isBooleanElement = exports.isArrayElement = exports.getNodeType = exports.default = exports.createRefractor = exports.Visitor = exports.SpecificationVisitor = exports.PatternedFieldsVisitor = exports.ParentSchemaAwareVisitor = exports.MediaElement = exports.MapVisitor = exports.LinkDescriptionVisitor = exports.LinkDescriptionElement = exports.JSONSchemaVisitor = exports.JSONSchemaElement = exports.JSONSchemaDraft6MediaTypes = exports.JSONReferenceElement = exports.ItemsVisitor = exports.FixedFieldsVisitor = exports.FallbackVisitor = exports.AlternatingVisitor = void 0;
|
|
7
7
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
8
8
|
exports.isRefElement = _apidomCore.isRefElement;
|
|
9
9
|
exports.isLinkElement = _apidomCore.isLinkElement;
|
|
@@ -44,6 +44,12 @@ exports.ParentSchemaAwareVisitor = _apidomNsJsonSchemaDraft.ParentSchemaAwareVis
|
|
|
44
44
|
exports.Visitor = _apidomNsJsonSchemaDraft.Visitor;
|
|
45
45
|
exports.JSONReferenceElement = _apidomNsJsonSchemaDraft.JSONReferenceElement;
|
|
46
46
|
exports.MediaElement = _apidomNsJsonSchemaDraft.MediaElement;
|
|
47
|
+
var _index2 = _interopRequireDefault(require("./refractor/visitors/json-schema/link-description/index.cjs"));
|
|
48
|
+
exports.LinkDescriptionVisitor = _index2.default;
|
|
49
|
+
var _index3 = _interopRequireDefault(require("./refractor/visitors/json-schema/index.cjs"));
|
|
50
|
+
exports.JSONSchemaVisitor = _index3.default;
|
|
51
|
+
var _ItemsVisitor = _interopRequireDefault(require("./refractor/visitors/json-schema/ItemsVisitor.cjs"));
|
|
52
|
+
exports.ItemsVisitor = _ItemsVisitor.default;
|
|
47
53
|
var _visitor = require("./traversal/visitor.cjs");
|
|
48
54
|
exports.keyMap = _visitor.keyMap;
|
|
49
55
|
exports.getNodeType = _visitor.getNodeType;
|
package/src/index.mjs
CHANGED
|
@@ -7,6 +7,9 @@ export { default as refract, createRefractor } from "./refractor/index.mjs";
|
|
|
7
7
|
export { default as specificationObj } from "./refractor/specification.mjs";
|
|
8
8
|
export { isJSONReferenceElement, isJSONSchemaElement, isLinkDescriptionElement, isMediaElement } from "./predicates.mjs";
|
|
9
9
|
export { isJSONReferenceLikeElement, SpecificationVisitor, FallbackVisitor, FixedFieldsVisitor, PatternedFieldsVisitor, MapVisitor, AlternatingVisitor, ParentSchemaAwareVisitor, Visitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
10
|
+
export { default as LinkDescriptionVisitor } from "./refractor/visitors/json-schema/link-description/index.mjs";
|
|
11
|
+
export { default as JSONSchemaVisitor } from "./refractor/visitors/json-schema/index.mjs";
|
|
12
|
+
export { default as ItemsVisitor } from "./refractor/visitors/json-schema/ItemsVisitor.mjs";
|
|
10
13
|
export { keyMap, getNodeType } from "./traversal/visitor.mjs";
|
|
11
14
|
/**
|
|
12
15
|
* JSON Schema Draft 6 specification elements.
|
|
@@ -2,33 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
var _tsMixer = require("ts-mixer");
|
|
6
5
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
7
6
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-4");
|
|
8
7
|
/**
|
|
9
8
|
* @public
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
class ItemsVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.SpecificationVisitor, _apidomNsJsonSchemaDraft.ParentSchemaAwareVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
16
|
-
ObjectElement(objectElement) {
|
|
17
|
-
const specPath = (0, _apidomNsJsonSchemaDraft.isJSONReferenceLikeElement)(objectElement) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'];
|
|
18
|
-
this.element = this.toRefractedElement(specPath, objectElement);
|
|
19
|
-
return _apidomCore.BREAK;
|
|
20
|
-
}
|
|
21
|
-
ArrayElement(arrayElement) {
|
|
22
|
-
this.element = new _apidomCore.ArrayElement();
|
|
23
|
-
this.element.classes.push('json-schema-items');
|
|
24
|
-
arrayElement.forEach(item => {
|
|
25
|
-
const specPath = (0, _apidomNsJsonSchemaDraft.isJSONReferenceLikeElement)(item) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'];
|
|
26
|
-
const element = this.toRefractedElement(specPath, item);
|
|
27
|
-
this.element.push(element);
|
|
28
|
-
});
|
|
29
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
30
|
-
return _apidomCore.BREAK;
|
|
31
|
-
}
|
|
10
|
+
class ItemsVisitor extends _apidomNsJsonSchemaDraft.ItemsVisitor {
|
|
32
11
|
BooleanElement(booleanElement) {
|
|
33
12
|
this.element = this.toRefractedElement(['document', 'objects', 'JSONSchema'], booleanElement);
|
|
34
13
|
return _apidomCore.BREAK;
|
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SpecificationVisitor, FallbackVisitor, ParentSchemaAwareVisitor, isJSONReferenceLikeElement } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
4
|
-
|
|
1
|
+
import { BREAK } from '@swagger-api/apidom-core';
|
|
2
|
+
import { ItemsVisitor as JSONSchemaDraft4ItemsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
class ItemsVisitor extends Mixin(SpecificationVisitor, ParentSchemaAwareVisitor, FallbackVisitor) {
|
|
13
|
-
ObjectElement(objectElement) {
|
|
14
|
-
const specPath = isJSONReferenceLikeElement(objectElement) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'];
|
|
15
|
-
this.element = this.toRefractedElement(specPath, objectElement);
|
|
16
|
-
return BREAK;
|
|
17
|
-
}
|
|
18
|
-
ArrayElement(arrayElement) {
|
|
19
|
-
this.element = new ArrayElement();
|
|
20
|
-
this.element.classes.push('json-schema-items');
|
|
21
|
-
arrayElement.forEach(item => {
|
|
22
|
-
const specPath = isJSONReferenceLikeElement(item) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'];
|
|
23
|
-
const element = this.toRefractedElement(specPath, item);
|
|
24
|
-
this.element.push(element);
|
|
25
|
-
});
|
|
26
|
-
this.copyMetaAndAttributes(arrayElement, this.element);
|
|
27
|
-
return BREAK;
|
|
28
|
-
}
|
|
6
|
+
class ItemsVisitor extends JSONSchemaDraft4ItemsVisitor {
|
|
29
7
|
BooleanElement(booleanElement) {
|
|
30
8
|
this.element = this.toRefractedElement(['document', 'objects', 'JSONSchema'], booleanElement);
|
|
31
9
|
return BREAK;
|
|
@@ -3,30 +3,28 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
|
-
var _tsMixer = require("ts-mixer");
|
|
7
|
-
var _ramda = require("ramda");
|
|
8
6
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-4");
|
|
9
7
|
var _JSONSchema = _interopRequireDefault(require("../../../elements/JSONSchema.cjs"));
|
|
10
8
|
/**
|
|
11
9
|
* @public
|
|
12
10
|
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
class JSONSchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.FixedFieldsVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
11
|
+
class JSONSchemaVisitor extends _apidomNsJsonSchemaDraft.JSONSchemaVisitor {
|
|
18
12
|
constructor(options) {
|
|
19
13
|
super(options);
|
|
20
|
-
this.specPath = (0, _ramda.always)(['document', 'objects', 'JSONSchema']);
|
|
21
|
-
}
|
|
22
|
-
ObjectElement(objectElement) {
|
|
23
14
|
this.element = new _JSONSchema.default();
|
|
24
|
-
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line class-methods-use-this
|
|
18
|
+
get defaultDialectIdentifier() {
|
|
19
|
+
return 'http://json-schema.org/draft-06/schema#';
|
|
25
20
|
}
|
|
26
21
|
BooleanElement(booleanElement) {
|
|
27
22
|
const result = this.enter(booleanElement);
|
|
28
23
|
this.element.classes.push('boolean-json-schema');
|
|
29
24
|
return result;
|
|
30
25
|
}
|
|
26
|
+
handleSchemaIdentifier(objectElement, identifierKeyword = '$id') {
|
|
27
|
+
return super.handleSchemaIdentifier(objectElement, identifierKeyword);
|
|
28
|
+
}
|
|
31
29
|
}
|
|
32
30
|
var _default = exports.default = JSONSchemaVisitor;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { always } from 'ramda';
|
|
3
|
-
import { FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
1
|
+
import { JSONSchemaVisitor as JSONSchemaDraft4Visitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
4
2
|
import JSONSchemaElement from "../../../elements/JSONSchema.mjs";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
class JSONSchemaVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) {
|
|
6
|
+
class JSONSchemaVisitor extends JSONSchemaDraft4Visitor {
|
|
12
7
|
constructor(options) {
|
|
13
8
|
super(options);
|
|
14
|
-
this.specPath = always(['document', 'objects', 'JSONSchema']);
|
|
15
|
-
}
|
|
16
|
-
ObjectElement(objectElement) {
|
|
17
9
|
this.element = new JSONSchemaElement();
|
|
18
|
-
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line class-methods-use-this
|
|
13
|
+
get defaultDialectIdentifier() {
|
|
14
|
+
return 'http://json-schema.org/draft-06/schema#';
|
|
19
15
|
}
|
|
20
16
|
BooleanElement(booleanElement) {
|
|
21
17
|
const result = this.enter(booleanElement);
|
|
22
18
|
this.element.classes.push('boolean-json-schema');
|
|
23
19
|
return result;
|
|
24
20
|
}
|
|
21
|
+
handleSchemaIdentifier(objectElement, identifierKeyword = '$id') {
|
|
22
|
+
return super.handleSchemaIdentifier(objectElement, identifierKeyword);
|
|
23
|
+
}
|
|
25
24
|
}
|
|
26
25
|
export default JSONSchemaVisitor;
|
|
@@ -3,22 +3,15 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.default = void 0;
|
|
6
|
-
var _tsMixer = require("ts-mixer");
|
|
7
|
-
var _ramda = require("ramda");
|
|
8
6
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-4");
|
|
9
7
|
var _LinkDescription = _interopRequireDefault(require("../../../../elements/LinkDescription.cjs"));
|
|
10
8
|
/**
|
|
11
9
|
* @public
|
|
12
10
|
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
class LinkDescriptionVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.FixedFieldsVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
11
|
+
class LinkDescriptionVisitor extends _apidomNsJsonSchemaDraft.LinkDescriptionVisitor {
|
|
18
12
|
constructor(options) {
|
|
19
13
|
super(options);
|
|
20
14
|
this.element = new _LinkDescription.default();
|
|
21
|
-
this.specPath = (0, _ramda.always)(['document', 'objects', 'LinkDescription']);
|
|
22
15
|
}
|
|
23
16
|
}
|
|
24
17
|
var _default = exports.default = LinkDescriptionVisitor;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { always } from 'ramda';
|
|
3
|
-
import { FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
1
|
+
import { LinkDescriptionVisitor as JSONSchemaDraft4LinkDescriptionVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
4
2
|
import LinkDescriptionElement from "../../../../elements/LinkDescription.mjs";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
class LinkDescriptionVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) {
|
|
6
|
+
class LinkDescriptionVisitor extends JSONSchemaDraft4LinkDescriptionVisitor {
|
|
12
7
|
constructor(options) {
|
|
13
8
|
super(options);
|
|
14
9
|
this.element = new LinkDescriptionElement();
|
|
15
|
-
this.specPath = always(['document', 'objects', 'LinkDescription']);
|
|
16
10
|
}
|
|
17
11
|
}
|
|
18
12
|
export default LinkDescriptionVisitor;
|
|
@@ -3,20 +3,11 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.keyMap = exports.getNodeType = void 0;
|
|
5
5
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
6
|
+
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-4");
|
|
7
|
+
exports.getNodeType = _apidomNsJsonSchemaDraft.getNodeType;
|
|
6
8
|
/**
|
|
7
9
|
* @public
|
|
8
10
|
*/
|
|
9
|
-
const getNodeType = element => {
|
|
10
|
-
if (!(0, _apidomCore.isElement)(element)) {
|
|
11
|
-
return undefined;
|
|
12
|
-
}
|
|
13
|
-
return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
exports.getNodeType = getNodeType;
|
|
20
11
|
const keyMap = exports.keyMap = {
|
|
21
12
|
JSONSchemaDraft6Element: ['content'],
|
|
22
13
|
JSONReferenceElement: ['content'],
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import { keyMap as keyMapBase
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export const getNodeType = element => {
|
|
7
|
-
if (!isElement(element)) {
|
|
8
|
-
return undefined;
|
|
9
|
-
}
|
|
10
|
-
return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
|
|
11
|
-
};
|
|
1
|
+
import { keyMap as keyMapBase } from '@swagger-api/apidom-core';
|
|
2
|
+
export { getNodeType } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
12
3
|
|
|
13
4
|
/**
|
|
14
5
|
* @public
|
|
@@ -7,7 +7,6 @@ import { AnyOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4'
|
|
|
7
7
|
import { ArrayElement } from '@swagger-api/apidom-core';
|
|
8
8
|
import { Attributes } from '@swagger-api/apidom-core';
|
|
9
9
|
import { BooleanElement } from '@swagger-api/apidom-core';
|
|
10
|
-
import { Class } from 'ts-mixer/dist/types/types.js';
|
|
11
10
|
import { DefinitionsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
12
11
|
import { DefinitionsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
13
12
|
import { DependenciesVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
@@ -19,6 +18,7 @@ import { FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
|
19
18
|
import { FallbackVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
20
19
|
import { FixedFieldsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
21
20
|
import { FixedFieldsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
21
|
+
import { getNodeType } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
22
22
|
import { isArrayElement } from '@swagger-api/apidom-core';
|
|
23
23
|
import { isBooleanElement } from '@swagger-api/apidom-core';
|
|
24
24
|
import { isElement } from '@swagger-api/apidom-core';
|
|
@@ -32,14 +32,17 @@ import { isNumberElement } from '@swagger-api/apidom-core';
|
|
|
32
32
|
import { isObjectElement } from '@swagger-api/apidom-core';
|
|
33
33
|
import { isRefElement } from '@swagger-api/apidom-core';
|
|
34
34
|
import { isStringElement } from '@swagger-api/apidom-core';
|
|
35
|
-
import {
|
|
35
|
+
import { ItemsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
36
36
|
import { JSONReference$RefVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
37
37
|
import { JSONReferenceElement } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
38
38
|
import { JSONReferenceVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
39
|
+
import { ItemsVisitor as JSONSchemaDraft4ItemsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
39
40
|
import { JSONSchemaElement as JSONSchemaElement_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
40
41
|
import { JSONSchemaVisitor as JSONSchemaVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
42
|
+
import { JSONSchemaVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
41
43
|
import { LinkDescriptionElement as LinkDescriptionElement_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
42
44
|
import { LinkDescriptionVisitor as LinkDescriptionVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
45
|
+
import { LinkDescriptionVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
43
46
|
import { LinksVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
44
47
|
import { MapVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
45
48
|
import { MapVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
@@ -73,12 +76,16 @@ import { TypeVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
|
73
76
|
import { Visitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
74
77
|
import { VisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
75
78
|
|
|
79
|
+
export { AllOfVisitor }
|
|
80
|
+
|
|
76
81
|
export { AllOfVisitorOptions }
|
|
77
82
|
|
|
78
83
|
export { AlternatingVisitor }
|
|
79
84
|
|
|
80
85
|
export { AlternatingVisitorOptions }
|
|
81
86
|
|
|
87
|
+
export { AnyOfVisitor }
|
|
88
|
+
|
|
82
89
|
export { AnyOfVisitorOptions }
|
|
83
90
|
|
|
84
91
|
/**
|
|
@@ -86,8 +93,12 @@ export { AnyOfVisitorOptions }
|
|
|
86
93
|
*/
|
|
87
94
|
export declare const createRefractor: (specPath: string[]) => (value: unknown, options?: {}) => Element_2;
|
|
88
95
|
|
|
96
|
+
export { DefinitionsVisitor }
|
|
97
|
+
|
|
89
98
|
export { DefinitionsVisitorOptions }
|
|
90
99
|
|
|
100
|
+
export { DependenciesVisitor }
|
|
101
|
+
|
|
91
102
|
export { DependenciesVisitorOptions }
|
|
92
103
|
|
|
93
104
|
/**
|
|
@@ -112,10 +123,7 @@ export { FixedFieldsVisitorOptions }
|
|
|
112
123
|
*/
|
|
113
124
|
export declare type Format = 'generic' | 'json' | 'yaml';
|
|
114
125
|
|
|
115
|
-
|
|
116
|
-
* @public
|
|
117
|
-
*/
|
|
118
|
-
export declare const getNodeType: <T extends Element_2>(element: T) => string | undefined;
|
|
126
|
+
export { getNodeType }
|
|
119
127
|
|
|
120
128
|
export { isArrayElement }
|
|
121
129
|
|
|
@@ -156,23 +164,16 @@ export { isStringElement }
|
|
|
156
164
|
/**
|
|
157
165
|
* @public
|
|
158
166
|
*/
|
|
159
|
-
export declare class ItemsVisitor extends
|
|
160
|
-
element: ObjectElement | ArrayElement;
|
|
161
|
-
ObjectElement(objectElement: ObjectElement): {};
|
|
162
|
-
ArrayElement(arrayElement: ArrayElement): {};
|
|
167
|
+
export declare class ItemsVisitor extends JSONSchemaDraft4ItemsVisitor {
|
|
163
168
|
BooleanElement(booleanElement: BooleanElement): {};
|
|
164
169
|
}
|
|
165
170
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
171
|
-
export declare interface ItemsVisitorOptions extends SpecificationVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
172
|
-
}
|
|
171
|
+
export { ItemsVisitorOptions }
|
|
173
172
|
|
|
174
173
|
export { JSONReferenceElement }
|
|
175
174
|
|
|
175
|
+
export { JSONSchemaDraft4ItemsVisitor }
|
|
176
|
+
|
|
176
177
|
/**
|
|
177
178
|
* @public
|
|
178
179
|
*/
|
|
@@ -247,21 +248,15 @@ export declare class JSONSchemaElement extends JSONSchemaElement_2 {
|
|
|
247
248
|
/**
|
|
248
249
|
* @public
|
|
249
250
|
*/
|
|
250
|
-
export declare class JSONSchemaVisitor extends
|
|
251
|
+
export declare class JSONSchemaVisitor extends JSONSchemaVisitor_2 {
|
|
251
252
|
element: JSONSchemaElement;
|
|
252
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
253
253
|
constructor(options: JSONSchemaVisitorOptions);
|
|
254
|
-
|
|
254
|
+
get defaultDialectIdentifier(): string;
|
|
255
255
|
BooleanElement(booleanElement: BooleanElement): {};
|
|
256
|
+
handleSchemaIdentifier(objectElement: ObjectElement, identifierKeyword?: string): void;
|
|
256
257
|
}
|
|
257
258
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @public
|
|
262
|
-
*/
|
|
263
|
-
export declare interface JSONSchemaVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
|
|
264
|
-
}
|
|
259
|
+
export { JSONSchemaVisitorOptions }
|
|
265
260
|
|
|
266
261
|
/**
|
|
267
262
|
* @public
|
|
@@ -310,19 +305,12 @@ export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
|
|
|
310
305
|
/**
|
|
311
306
|
* @public
|
|
312
307
|
*/
|
|
313
|
-
export declare class LinkDescriptionVisitor extends
|
|
308
|
+
export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_2 {
|
|
314
309
|
readonly element: LinkDescriptionElement;
|
|
315
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'LinkDescription']>;
|
|
316
310
|
constructor(options: LinkDescriptionVisitorOptions);
|
|
317
311
|
}
|
|
318
312
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* @public
|
|
323
|
-
*/
|
|
324
|
-
export declare interface LinkDescriptionVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
|
|
325
|
-
}
|
|
313
|
+
export { LinkDescriptionVisitorOptions }
|
|
326
314
|
|
|
327
315
|
export { MapVisitor }
|
|
328
316
|
|
|
@@ -335,6 +323,8 @@ export { MediaElement }
|
|
|
335
323
|
*/
|
|
336
324
|
export declare const mediaTypes: JSONSchemaDraft6MediaTypes;
|
|
337
325
|
|
|
326
|
+
export { OneOfVisitor }
|
|
327
|
+
|
|
338
328
|
export { OneOfVisitorOptions }
|
|
339
329
|
|
|
340
330
|
export { ParentSchemaAwareVisitor }
|
|
@@ -345,8 +335,12 @@ export { PatternedFieldsVisitor }
|
|
|
345
335
|
|
|
346
336
|
export { PatternedFieldsVisitorOptions }
|
|
347
337
|
|
|
338
|
+
export { PatternPropertiesVisitor }
|
|
339
|
+
|
|
348
340
|
export { PatternPropertiesVisitorOptions }
|
|
349
341
|
|
|
342
|
+
export { PropertiesVisitor }
|
|
343
|
+
|
|
350
344
|
export { PropertiesVisitorOptions }
|
|
351
345
|
|
|
352
346
|
/**
|
|
@@ -395,7 +389,7 @@ export declare const refract: <T extends Element_2>(value: unknown, { specPath,
|
|
|
395
389
|
$ref: string;
|
|
396
390
|
};
|
|
397
391
|
additionalItems: SchemaOrReferenceVisitor;
|
|
398
|
-
items:
|
|
392
|
+
items: JSONSchemaDraft4ItemsVisitor;
|
|
399
393
|
maxItems: {
|
|
400
394
|
$ref: string;
|
|
401
395
|
};
|
|
@@ -504,6 +498,8 @@ export declare const refractorPluginReplaceEmptyElement: () => () => {
|
|
|
504
498
|
};
|
|
505
499
|
};
|
|
506
500
|
|
|
501
|
+
export { SchemaOrReferenceVisitor }
|
|
502
|
+
|
|
507
503
|
export { SchemaOrReferenceVisitorOptions }
|
|
508
504
|
|
|
509
505
|
export declare const specificationObj: typeof specificationObj_2;
|