@swagger-api/apidom-ns-json-schema-draft-7 1.0.0-beta.9 → 1.0.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-ns-json-schema-draft-7",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0-rc.0",
4
4
  "description": "JSON Schema Draft 7 namespace for ApiDOM.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -26,8 +26,8 @@
26
26
  "build:umd:browser": "cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress",
27
27
  "lint": "eslint ./",
28
28
  "lint:fix": "eslint ./ --fix",
29
- "clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' 'test/**/*.mjs' ./dist ./types",
30
- "test": "npm run build:es && cross-env BABEL_ENV=es babel test --out-dir test --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward' && cross-env NODE_ENV=test mocha",
29
+ "clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' ./dist ./types",
30
+ "test": "NODE_ENV=test ts-mocha --exit",
31
31
  "test:update-snapshots": "cross-env UPDATE_SNAPSHOT=1 mocha",
32
32
  "typescript:check-types": "tsc --noEmit && tsc -p ./test/tsconfig.json --noEmit",
33
33
  "typescript:declaration": "tsc -p tsconfig.declaration.json && api-extractor run -l -c ./config/api-extractor/api-extractor.json 2>&1 | shx grep -v 'Visitor_base'",
@@ -41,10 +41,10 @@
41
41
  "author": "Vladimir Gorej",
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
- "@babel/runtime-corejs3": "^7.20.7",
45
- "@swagger-api/apidom-core": "^1.0.0-beta.9",
46
- "@swagger-api/apidom-error": "^1.0.0-beta.9",
47
- "@swagger-api/apidom-ns-json-schema-draft-6": "^1.0.0-beta.9",
44
+ "@babel/runtime-corejs3": "^7.26.10",
45
+ "@swagger-api/apidom-core": "^1.0.0-rc.0",
46
+ "@swagger-api/apidom-error": "^1.0.0-rc.0",
47
+ "@swagger-api/apidom-ns-json-schema-draft-6": "^1.0.0-rc.0",
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": "2d97871bd8addd42274917c6d131a09eebe9b1f8"
63
+ "gitHead": "af4b6e0fcae489477729581c52036725ac57a412"
64
64
  }
@@ -36,13 +36,6 @@ class JSONSchema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
36
36
  /**
37
37
  * Validation keywords for arrays
38
38
  */
39
-
40
- get containsProp() {
41
- return this.get('contains');
42
- }
43
- set containsProp(contains) {
44
- this.set('contains', contains);
45
- }
46
39
  get items() {
47
40
  return this.get('items');
48
41
  }
@@ -50,17 +43,6 @@ class JSONSchema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
50
43
  this.set('items', items);
51
44
  }
52
45
 
53
- /**
54
- * Validation keywords for objects
55
- */
56
-
57
- get propertyNames() {
58
- return this.get('propertyNames');
59
- }
60
- set propertyNames(propertyNames) {
61
- this.set('propertyNames', propertyNames);
62
- }
63
-
64
46
  /**
65
47
  * Keywords for Applying Subschemas Conditionally
66
48
  *
@@ -33,13 +33,6 @@ class JSONSchema extends JSONSchemaElement {
33
33
  /**
34
34
  * Validation keywords for arrays
35
35
  */
36
-
37
- get containsProp() {
38
- return this.get('contains');
39
- }
40
- set containsProp(contains) {
41
- this.set('contains', contains);
42
- }
43
36
  get items() {
44
37
  return this.get('items');
45
38
  }
@@ -47,17 +40,6 @@ class JSONSchema extends JSONSchemaElement {
47
40
  this.set('items', items);
48
41
  }
49
42
 
50
- /**
51
- * Validation keywords for objects
52
- */
53
-
54
- get propertyNames() {
55
- return this.get('propertyNames');
56
- }
57
- set propertyNames(propertyNames) {
58
- this.set('propertyNames', propertyNames);
59
- }
60
-
61
43
  /**
62
44
  * Keywords for Applying Subschemas Conditionally
63
45
  *
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.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.MapVisitor = exports.LinkDescriptionElement = exports.JSONSchemaVisitor = exports.JSONSchemaElement = exports.JSONSchemaDraft7MediaTypes = 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.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.MapVisitor = exports.LinkDescriptionVisitor = exports.LinkDescriptionElement = exports.JSONSchemaVisitor = exports.JSONSchemaElement = exports.JSONSchemaDraft7MediaTypes = exports.JSONReferenceElement = 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,8 @@ exports.Visitor = _apidomNsJsonSchemaDraft.Visitor;
44
44
  exports.JSONReferenceElement = _apidomNsJsonSchemaDraft.JSONReferenceElement;
45
45
  var _index2 = _interopRequireDefault(require("./refractor/visitors/json-schema/index.cjs"));
46
46
  exports.JSONSchemaVisitor = _index2.default;
47
+ var _index3 = _interopRequireDefault(require("./refractor/visitors/json-schema/link-description/index.cjs"));
48
+ exports.LinkDescriptionVisitor = _index3.default;
47
49
  var _visitor = require("./traversal/visitor.cjs");
48
50
  exports.keyMap = _visitor.keyMap;
49
51
  exports.getNodeType = _visitor.getNodeType;
package/src/index.mjs CHANGED
@@ -8,6 +8,7 @@ export { default as specificationObj } from "./refractor/specification.mjs";
8
8
  export { isJSONReferenceElement, isJSONSchemaElement, isLinkDescriptionElement } from "./predicates.mjs";
9
9
  export { isJSONReferenceLikeElement, SpecificationVisitor, FallbackVisitor, FixedFieldsVisitor, PatternedFieldsVisitor, MapVisitor, AlternatingVisitor, ParentSchemaAwareVisitor, Visitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
10
10
  export { default as JSONSchemaVisitor } from "./refractor/visitors/json-schema/index.mjs";
11
+ export { default as LinkDescriptionVisitor } from "./refractor/visitors/json-schema/link-description/index.mjs";
11
12
  export { keyMap, getNodeType } from "./traversal/visitor.mjs";
12
13
  /**
13
14
  * JSON Schema Draft 7 specification elements.
@@ -223,9 +223,10 @@ const plugin = () => () => {
223
223
 
224
224
  // no element factory found
225
225
  if (typeof elementFactory !== 'function') return undefined;
226
- return elementFactory.call({
226
+ const result = elementFactory.call({
227
227
  context
228
228
  }, undefined, (0, _apidomCore.cloneDeep)(element.meta), (0, _apidomCore.cloneDeep)(element.attributes));
229
+ return (0, _apidomCore.assignSourceMap)(result, element);
229
230
  }
230
231
  }
231
232
  };
@@ -1,4 +1,4 @@
1
- import { ArrayElement, ObjectElement, isStringElement, isArrayElement, isElement, isMemberElement, includesClasses, cloneDeep, toValue } from '@swagger-api/apidom-core';
1
+ import { ArrayElement, ObjectElement, isStringElement, isArrayElement, isElement, isMemberElement, includesClasses, cloneDeep, toValue, assignSourceMap } from '@swagger-api/apidom-core';
2
2
  /**
3
3
  * JSON Schema Draft 7 specification elements.
4
4
  */
@@ -216,9 +216,10 @@ const plugin = () => () => {
216
216
 
217
217
  // no element factory found
218
218
  if (typeof elementFactory !== 'function') return undefined;
219
- return elementFactory.call({
219
+ const result = elementFactory.call({
220
220
  context
221
221
  }, undefined, cloneDeep(element.meta), cloneDeep(element.attributes));
222
+ return assignSourceMap(result, element);
222
223
  }
223
224
  }
224
225
  };
@@ -3,46 +3,20 @@
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-6");
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.ParentSchemaAwareVisitor, _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']);
14
+ this.element = new _JSONSchema.default();
21
15
  }
22
16
 
23
17
  // eslint-disable-next-line class-methods-use-this
24
18
  get defaultDialectIdentifier() {
25
19
  return 'http://json-schema.org/draft-07/schema#';
26
20
  }
27
- ObjectElement(objectElement) {
28
- this.element = new _JSONSchema.default();
29
- this.handleDialectIdentifier(objectElement);
30
- this.handleSchemaIdentifier(objectElement);
31
-
32
- // for further processing consider this Schema Element as parent for all embedded Schema Elements
33
- this.parent = this.element;
34
- return _apidomNsJsonSchemaDraft.FixedFieldsVisitor.prototype.ObjectElement.call(this, objectElement);
35
- }
36
- BooleanElement(booleanElement) {
37
- const result = this.enter(booleanElement);
38
- this.element.classes.push('boolean-json-schema');
39
- return result;
40
- }
41
- handleDialectIdentifier(objectElement) {
42
- return _apidomNsJsonSchemaDraft.JSONSchemaVisitor.prototype.handleDialectIdentifier.call(this, objectElement);
43
- }
44
- handleSchemaIdentifier(objectElement, identifierKeyword = '$id') {
45
- return _apidomNsJsonSchemaDraft.JSONSchemaVisitor.prototype.handleSchemaIdentifier.call(this, objectElement, identifierKeyword);
46
- }
47
21
  }
48
22
  var _default = exports.default = JSONSchemaVisitor;
@@ -1,42 +1,17 @@
1
- import { Mixin } from 'ts-mixer';
2
- import { always } from 'ramda';
3
- import { FixedFieldsVisitor, ParentSchemaAwareVisitor, FallbackVisitor, JSONSchemaVisitor as JSONSchemaDraft6Visitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
1
+ import { JSONSchemaVisitor as JSONSchemaDraft6Visitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
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, ParentSchemaAwareVisitor, FallbackVisitor) {
6
+ class JSONSchemaVisitor extends JSONSchemaDraft6Visitor {
12
7
  constructor(options) {
13
8
  super(options);
14
- this.specPath = always(['document', 'objects', 'JSONSchema']);
9
+ this.element = new JSONSchemaElement();
15
10
  }
16
11
 
17
12
  // eslint-disable-next-line class-methods-use-this
18
13
  get defaultDialectIdentifier() {
19
14
  return 'http://json-schema.org/draft-07/schema#';
20
15
  }
21
- ObjectElement(objectElement) {
22
- this.element = new JSONSchemaElement();
23
- this.handleDialectIdentifier(objectElement);
24
- this.handleSchemaIdentifier(objectElement);
25
-
26
- // for further processing consider this Schema Element as parent for all embedded Schema Elements
27
- this.parent = this.element;
28
- return FixedFieldsVisitor.prototype.ObjectElement.call(this, objectElement);
29
- }
30
- BooleanElement(booleanElement) {
31
- const result = this.enter(booleanElement);
32
- this.element.classes.push('boolean-json-schema');
33
- return result;
34
- }
35
- handleDialectIdentifier(objectElement) {
36
- return JSONSchemaDraft6Visitor.prototype.handleDialectIdentifier.call(this, objectElement);
37
- }
38
- handleSchemaIdentifier(objectElement, identifierKeyword = '$id') {
39
- return JSONSchemaDraft6Visitor.prototype.handleSchemaIdentifier.call(this, objectElement, identifierKeyword);
40
- }
41
16
  }
42
17
  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-6");
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 { Mixin } from 'ts-mixer';
2
- import { always } from 'ramda';
3
- import { FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
1
+ import { LinkDescriptionVisitor as JSONSchemaDraft6LinkDescriptionVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
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 JSONSchemaDraft6LinkDescriptionVisitor {
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-6");
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
  JSONSchemaDraft7Element: ['content'],
22
13
  JSONReferenceElement: ['content'],
@@ -1,14 +1,5 @@
1
- import { keyMap as keyMapBase, isElement } from '@swagger-api/apidom-core';
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-6';
12
3
 
13
4
  /**
14
5
  * @public
@@ -9,7 +9,6 @@ import { AnyOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6'
9
9
  import { ArrayElement } from '@swagger-api/apidom-core';
10
10
  import { Attributes } from '@swagger-api/apidom-core';
11
11
  import { BooleanElement } from '@swagger-api/apidom-core';
12
- import { Class } from 'ts-mixer/dist/types/types.js';
13
12
  import { DefinitionsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
14
13
  import { DefinitionsVisitor as DefinitionsVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
15
14
  import { DefinitionsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
@@ -24,6 +23,7 @@ import { FallbackVisitor as FallbackVisitor_2 } from '@swagger-api/apidom-ns-jso
24
23
  import { FallbackVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
25
24
  import { FixedFieldsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
26
25
  import { FixedFieldsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
26
+ import { getNodeType } from '@swagger-api/apidom-ns-json-schema-draft-6';
27
27
  import { isArrayElement } from '@swagger-api/apidom-core';
28
28
  import { isBooleanElement } from '@swagger-api/apidom-core';
29
29
  import { isElement } from '@swagger-api/apidom-core';
@@ -44,8 +44,12 @@ import { JSONReferenceVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4
44
44
  import { JSONSchemaDraft4ItemsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
45
45
  import { JSONSchemaElement as JSONSchemaElement_2 } from '@swagger-api/apidom-ns-json-schema-draft-6';
46
46
  import { JSONSchemaVisitor as JSONSchemaVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
47
+ import { JSONSchemaVisitor as JSONSchemaVisitor_3 } from '@swagger-api/apidom-ns-json-schema-draft-6';
48
+ import { JSONSchemaVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
47
49
  import { LinkDescriptionElement as LinkDescriptionElement_2 } from '@swagger-api/apidom-ns-json-schema-draft-6';
48
50
  import { LinkDescriptionVisitor as LinkDescriptionVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
51
+ import { LinkDescriptionVisitor as LinkDescriptionVisitor_3 } from '@swagger-api/apidom-ns-json-schema-draft-6';
52
+ import { LinkDescriptionVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
49
53
  import { LinksVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
50
54
  import { MapVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
51
55
  import { MapVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
@@ -120,10 +124,7 @@ export { FixedFieldsVisitorOptions }
120
124
  */
121
125
  export declare type Format = 'generic' | 'json' | 'yaml';
122
126
 
123
- /**
124
- * @public
125
- */
126
- export declare const getNodeType: <T extends Element_2>(element: T) => string | undefined;
127
+ export { getNodeType }
127
128
 
128
129
  export { isArrayElement }
129
130
 
@@ -202,15 +203,8 @@ export declare class JSONSchemaElement extends JSONSchemaElement_2 {
202
203
  /**
203
204
  * Validation keywords for arrays
204
205
  */
205
- get containsProp(): this | BooleanElement | JSONReferenceElement | undefined;
206
- set containsProp(contains: this | BooleanElement | JSONReferenceElement | undefined);
207
206
  get items(): this | BooleanElement | JSONReferenceElement | ArrayElement | undefined;
208
207
  set items(items: this | BooleanElement | JSONReferenceElement | ArrayElement | undefined);
209
- /**
210
- * Validation keywords for objects
211
- */
212
- get propertyNames(): this | BooleanElement | JSONReferenceElement | undefined;
213
- set propertyNames(propertyNames: this | BooleanElement | JSONReferenceElement | undefined);
214
208
  /**
215
209
  * Keywords for Applying Subschemas Conditionally
216
210
  *
@@ -252,24 +246,13 @@ export declare class JSONSchemaElement extends JSONSchemaElement_2 {
252
246
  /**
253
247
  * @public
254
248
  */
255
- export declare class JSONSchemaVisitor extends JSONSchemaVisitor_base {
249
+ export declare class JSONSchemaVisitor extends JSONSchemaVisitor_3 {
256
250
  element: JSONSchemaElement;
257
- protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
258
251
  constructor(options: JSONSchemaVisitorOptions);
259
252
  get defaultDialectIdentifier(): string;
260
- ObjectElement(objectElement: ObjectElement): {};
261
- BooleanElement(booleanElement: BooleanElement): {};
262
- handleDialectIdentifier(objectElement: ObjectElement): void;
263
- handleSchemaIdentifier(objectElement: ObjectElement, identifierKeyword?: string): void;
264
253
  }
265
254
 
266
- declare const JSONSchemaVisitor_base: Class<any[], FixedFieldsVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
267
-
268
- /**
269
- * @public
270
- */
271
- export declare interface JSONSchemaVisitorOptions extends FixedFieldsVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
272
- }
255
+ export { JSONSchemaVisitorOptions }
273
256
 
274
257
  /**
275
258
  * @public
@@ -287,7 +270,6 @@ export declare const keyMap: {
287
270
  Annotation: never[];
288
271
  Comment: never[];
289
272
  ParseResultElement: string[];
290
- SourceMap: string[];
291
273
  JSONSchemaDraft7Element: string[];
292
274
  JSONReferenceElement: string[];
293
275
  LinkDescriptionElement: string[];
@@ -358,19 +340,12 @@ export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
358
340
  /**
359
341
  * @public
360
342
  */
361
- export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_base {
343
+ export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_3 {
362
344
  readonly element: LinkDescriptionElement;
363
- protected readonly specPath: SpecPath<['document', 'objects', 'LinkDescription']>;
364
345
  constructor(options: LinkDescriptionVisitorOptions);
365
346
  }
366
347
 
367
- declare const LinkDescriptionVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
368
-
369
- /**
370
- * @public
371
- */
372
- export declare interface LinkDescriptionVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
373
- }
348
+ export { LinkDescriptionVisitorOptions }
374
349
 
375
350
  export { MapVisitor }
376
351
 
@@ -552,7 +527,15 @@ export declare const refract: <T extends Element_2>(value: unknown, { specPath,
552
527
  */
553
528
  export declare const refractorPluginReplaceEmptyElement: () => () => {
554
529
  visitor: {
555
- StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
530
+ StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): {
531
+ [key: string]: any;
532
+ startPositionRow?: number;
533
+ startPositionColumn?: number;
534
+ startIndex?: number;
535
+ endPositionRow?: number;
536
+ endPositionColumn?: number;
537
+ endIndex?: number;
538
+ } | undefined;
556
539
  };
557
540
  };
558
541