@swagger-api/apidom-ns-json-schema-draft-7 1.0.0-beta.5 → 1.0.0-beta.51

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.5",
3
+ "version": "1.0.0-beta.51",
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.5",
46
- "@swagger-api/apidom-error": "^1.0.0-beta.5",
47
- "@swagger-api/apidom-ns-json-schema-draft-6": "^1.0.0-beta.5",
44
+ "@babel/runtime-corejs3": "^7.26.10",
45
+ "@swagger-api/apidom-core": "^1.0.0-beta.51",
46
+ "@swagger-api/apidom-error": "^1.0.0-beta.51",
47
+ "@swagger-api/apidom-ns-json-schema-draft-6": "^1.0.0-beta.51",
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": "b12b1b4429c3b781b1dfb8382ffdf5d79c7adee1"
63
+ "gitHead": "b728c58aa38d60d6d4fa190ca446672d7df88e16"
64
64
  }
@@ -33,6 +33,16 @@ class JSONSchema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
33
33
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01
34
34
  */
35
35
 
36
+ /**
37
+ * Validation keywords for arrays
38
+ */
39
+ get items() {
40
+ return this.get('items');
41
+ }
42
+ set items(items) {
43
+ this.set('items', items);
44
+ }
45
+
36
46
  /**
37
47
  * Keywords for Applying Subschemas Conditionally
38
48
  *
@@ -58,6 +68,19 @@ class JSONSchema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
58
68
  this.set('else', elseValue);
59
69
  }
60
70
 
71
+ /**
72
+ * Keywords for Applying Subschemas With Boolean Logic
73
+ *
74
+ * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.7
75
+ */
76
+
77
+ get not() {
78
+ return this.get('not');
79
+ }
80
+ set not(not) {
81
+ this.set('not', not);
82
+ }
83
+
61
84
  /**
62
85
  * String-Encoding Non-JSON Data
63
86
  *
@@ -30,6 +30,16 @@ class JSONSchema extends JSONSchemaElement {
30
30
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01
31
31
  */
32
32
 
33
+ /**
34
+ * Validation keywords for arrays
35
+ */
36
+ get items() {
37
+ return this.get('items');
38
+ }
39
+ set items(items) {
40
+ this.set('items', items);
41
+ }
42
+
33
43
  /**
34
44
  * Keywords for Applying Subschemas Conditionally
35
45
  *
@@ -55,6 +65,19 @@ class JSONSchema extends JSONSchemaElement {
55
65
  this.set('else', elseValue);
56
66
  }
57
67
 
68
+ /**
69
+ * Keywords for Applying Subschemas With Boolean Logic
70
+ *
71
+ * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.7
72
+ */
73
+
74
+ get not() {
75
+ return this.get('not');
76
+ }
77
+ set not(not) {
78
+ this.set('not', not);
79
+ }
80
+
58
81
  /**
59
82
  * String-Encoding Non-JSON Data
60
83
  *
@@ -56,6 +56,12 @@ class LinkDescription extends _apidomNsJsonSchemaDraft.LinkDescriptionElement {
56
56
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.5
57
57
  */
58
58
 
59
+ get targetSchema() {
60
+ return this.get('targetSchema');
61
+ }
62
+ set targetSchema(targetSchema) {
63
+ this.set('targetSchema', targetSchema);
64
+ }
59
65
  get mediaType() {
60
66
  throw new _apidomError.UnsupportedOperationError('mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.');
61
67
  }
@@ -87,11 +93,37 @@ class LinkDescription extends _apidomNsJsonSchemaDraft.LinkDescriptionElement {
87
93
  this.set('$comment', $comment);
88
94
  }
89
95
 
96
+ /**
97
+ * Link Input.
98
+ *
99
+ * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6
100
+ */
101
+
102
+ get hrefSchema() {
103
+ return this.get('hrefSchema');
104
+ }
105
+ set hrefSchema(hrefSchema) {
106
+ this.set('hrefSchema', hrefSchema);
107
+ }
108
+ get headerSchema() {
109
+ return this.get('headerSchema');
110
+ }
111
+ set headerSchema(headerSchema) {
112
+ this.set('headerSchema', headerSchema);
113
+ }
114
+
90
115
  /**
91
116
  * Submitting Data for Processing.
92
117
  *
93
118
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6.4
94
119
  */
120
+
121
+ get submissionSchema() {
122
+ return this.get('submissionSchema');
123
+ }
124
+ set submissionSchema(submissionSchema) {
125
+ this.set('submissionSchema', submissionSchema);
126
+ }
95
127
  get submissionEncType() {
96
128
  throw new _apidomError.UnsupportedOperationError('submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.');
97
129
  }
@@ -1,6 +1,5 @@
1
1
  import { UnsupportedOperationError } from '@swagger-api/apidom-error';
2
2
  import { LinkDescriptionElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
3
-
4
3
  /* eslint-disable class-methods-use-this */
5
4
 
6
5
  /**
@@ -53,6 +52,12 @@ class LinkDescription extends LinkDescriptionElement {
53
52
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.5
54
53
  */
55
54
 
55
+ get targetSchema() {
56
+ return this.get('targetSchema');
57
+ }
58
+ set targetSchema(targetSchema) {
59
+ this.set('targetSchema', targetSchema);
60
+ }
56
61
  get mediaType() {
57
62
  throw new UnsupportedOperationError('mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.');
58
63
  }
@@ -84,11 +89,37 @@ class LinkDescription extends LinkDescriptionElement {
84
89
  this.set('$comment', $comment);
85
90
  }
86
91
 
92
+ /**
93
+ * Link Input.
94
+ *
95
+ * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6
96
+ */
97
+
98
+ get hrefSchema() {
99
+ return this.get('hrefSchema');
100
+ }
101
+ set hrefSchema(hrefSchema) {
102
+ this.set('hrefSchema', hrefSchema);
103
+ }
104
+ get headerSchema() {
105
+ return this.get('headerSchema');
106
+ }
107
+ set headerSchema(headerSchema) {
108
+ this.set('headerSchema', headerSchema);
109
+ }
110
+
87
111
  /**
88
112
  * Submitting Data for Processing.
89
113
  *
90
114
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6.4
91
115
  */
116
+
117
+ get submissionSchema() {
118
+ return this.get('submissionSchema');
119
+ }
120
+ set submissionSchema(submissionSchema) {
121
+ this.set('submissionSchema', submissionSchema);
122
+ }
92
123
  get submissionEncType() {
93
124
  throw new UnsupportedOperationError('submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.');
94
125
  }
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.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;
@@ -42,6 +42,10 @@ exports.AlternatingVisitor = _apidomNsJsonSchemaDraft.AlternatingVisitor;
42
42
  exports.ParentSchemaAwareVisitor = _apidomNsJsonSchemaDraft.ParentSchemaAwareVisitor;
43
43
  exports.Visitor = _apidomNsJsonSchemaDraft.Visitor;
44
44
  exports.JSONReferenceElement = _apidomNsJsonSchemaDraft.JSONReferenceElement;
45
+ var _index2 = _interopRequireDefault(require("./refractor/visitors/json-schema/index.cjs"));
46
+ exports.JSONSchemaVisitor = _index2.default;
47
+ var _index3 = _interopRequireDefault(require("./refractor/visitors/json-schema/link-description/index.cjs"));
48
+ exports.LinkDescriptionVisitor = _index3.default;
45
49
  var _visitor = require("./traversal/visitor.cjs");
46
50
  exports.keyMap = _visitor.keyMap;
47
51
  exports.getNodeType = _visitor.getNodeType;
package/src/index.mjs CHANGED
@@ -7,6 +7,8 @@ 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 } 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
+ 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";
10
12
  export { keyMap, getNodeType } from "./traversal/visitor.mjs";
11
13
  /**
12
14
  * JSON Schema Draft 7 specification elements.
@@ -149,6 +149,9 @@ const schema = {
149
149
  },
150
150
  targetHints(...args) {
151
151
  return new _apidomCore.ObjectElement(...args);
152
+ },
153
+ headerSchema(...args) {
154
+ return new _JSONSchema.default(...args);
152
155
  }
153
156
  },
154
157
  'json-schema-properties': {
@@ -142,6 +142,9 @@ const schema = {
142
142
  },
143
143
  targetHints(...args) {
144
144
  return new ObjectElement(...args);
145
+ },
146
+ headerSchema(...args) {
147
+ return new JSONSchemaElement(...args);
145
148
  }
146
149
  },
147
150
  'json-schema-properties': {
@@ -11,5 +11,5 @@ const specification = (0, _ramda.pipe)(
11
11
  // JSON Schema object modifications
12
12
  (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', '$visitor'], _index.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', '$comment'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'if'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'then'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'else'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'media']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contentEncoding'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contentMediaType'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'writeOnly'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value),
13
13
  // Link Description object modifications
14
- (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', '$visitor'], _index2.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchor'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchorPointer'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'mediaType']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetMediaType'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetHints'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'description'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', '$comment'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionEncType']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionMediaType'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value))(_apidomNsJsonSchemaDraft.specificationObj);
14
+ (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', '$visitor'], _index2.default), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchor'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchorPointer'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'mediaType']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetMediaType'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetHints'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'description'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', '$comment'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'headerSchema'], _apidomNsJsonSchemaDraft.specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), (0, _ramda.dissocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionEncType']), (0, _ramda.assocPath)(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionMediaType'], _apidomNsJsonSchemaDraft.specificationObj.visitors.value))(_apidomNsJsonSchemaDraft.specificationObj);
15
15
  var _default = exports.default = specification;
@@ -6,5 +6,5 @@ const specification = pipe(
6
6
  // JSON Schema object modifications
7
7
  assocPath(['visitors', 'document', 'objects', 'JSONSchema', '$visitor'], JSONSchemaVisitor), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', '$comment'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'if'], specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'then'], specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'else'], specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), dissocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'media']), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contentEncoding'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'contentMediaType'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'JSONSchema', 'fixedFields', 'writeOnly'], specificationObj.visitors.value),
8
8
  // Link Description object modifications
9
- assocPath(['visitors', 'document', 'objects', 'LinkDescription', '$visitor'], LinkDescriptionVisitor), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchor'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchorPointer'], specificationObj.visitors.value), dissocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'mediaType']), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetMediaType'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetHints'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'description'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', '$comment'], specificationObj.visitors.value), dissocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionEncType']), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionMediaType'], specificationObj.visitors.value))(specificationObj);
9
+ assocPath(['visitors', 'document', 'objects', 'LinkDescription', '$visitor'], LinkDescriptionVisitor), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchor'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'anchorPointer'], specificationObj.visitors.value), dissocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'mediaType']), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetMediaType'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'targetHints'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'description'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', '$comment'], specificationObj.visitors.value), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'headerSchema'], specificationObj.visitors.JSONSchemaOrJSONReferenceVisitor), dissocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionEncType']), assocPath(['visitors', 'document', 'objects', 'LinkDescription', 'fixedFields', 'submissionMediaType'], specificationObj.visitors.value))(specificationObj);
10
10
  export default specification;
@@ -3,30 +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.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
- return _apidomNsJsonSchemaDraft.FixedFieldsVisitor.prototype.ObjectElement.call(this, objectElement);
25
15
  }
26
- BooleanElement(booleanElement) {
27
- const result = this.enter(booleanElement);
28
- this.element.classes.push('boolean-json-schema');
29
- return result;
16
+
17
+ // eslint-disable-next-line class-methods-use-this
18
+ get defaultDialectIdentifier() {
19
+ return 'http://json-schema.org/draft-07/schema#';
30
20
  }
31
21
  }
32
22
  var _default = exports.default = JSONSchemaVisitor;
@@ -1,26 +1,17 @@
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 { 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, FallbackVisitor) {
6
+ class JSONSchemaVisitor extends JSONSchemaDraft6Visitor {
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
- return FixedFieldsVisitor.prototype.ObjectElement.call(this, objectElement);
19
10
  }
20
- BooleanElement(booleanElement) {
21
- const result = this.enter(booleanElement);
22
- this.element.classes.push('boolean-json-schema');
23
- return result;
11
+
12
+ // eslint-disable-next-line class-methods-use-this
13
+ get defaultDialectIdentifier() {
14
+ return 'http://json-schema.org/draft-07/schema#';
24
15
  }
25
16
  }
26
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
 
@@ -199,6 +200,11 @@ export declare class JSONSchemaElement extends JSONSchemaElement_2 {
199
200
  *
200
201
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01
201
202
  */
203
+ /**
204
+ * Validation keywords for arrays
205
+ */
206
+ get items(): this | BooleanElement | JSONReferenceElement | ArrayElement | undefined;
207
+ set items(items: this | BooleanElement | JSONReferenceElement | ArrayElement | undefined);
202
208
  /**
203
209
  * Keywords for Applying Subschemas Conditionally
204
210
  *
@@ -210,6 +216,13 @@ export declare class JSONSchemaElement extends JSONSchemaElement_2 {
210
216
  set then(then: this | BooleanElement | JSONReferenceElement | undefined);
211
217
  get else(): this | BooleanElement | JSONReferenceElement | undefined;
212
218
  set else(elseValue: this | BooleanElement | JSONReferenceElement | undefined);
219
+ /**
220
+ * Keywords for Applying Subschemas With Boolean Logic
221
+ *
222
+ * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.7
223
+ */
224
+ get not(): this | BooleanElement | JSONReferenceElement | undefined;
225
+ set not(not: this | BooleanElement | JSONReferenceElement | undefined);
213
226
  /**
214
227
  * String-Encoding Non-JSON Data
215
228
  *
@@ -233,21 +246,13 @@ export declare class JSONSchemaElement extends JSONSchemaElement_2 {
233
246
  /**
234
247
  * @public
235
248
  */
236
- export declare class JSONSchemaVisitor extends JSONSchemaVisitor_base {
249
+ export declare class JSONSchemaVisitor extends JSONSchemaVisitor_3 {
237
250
  element: JSONSchemaElement;
238
- protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
239
251
  constructor(options: JSONSchemaVisitorOptions);
240
- ObjectElement(objectElement: ObjectElement): {};
241
- BooleanElement(booleanElement: BooleanElement): {};
252
+ get defaultDialectIdentifier(): string;
242
253
  }
243
254
 
244
- declare const JSONSchemaVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
245
-
246
- /**
247
- * @public
248
- */
249
- export declare interface JSONSchemaVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
250
- }
255
+ export { JSONSchemaVisitorOptions }
251
256
 
252
257
  /**
253
258
  * @public
@@ -299,6 +304,8 @@ export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
299
304
  *
300
305
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.5
301
306
  */
307
+ get targetSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
308
+ set targetSchema(targetSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
302
309
  get mediaType(): StringElement | undefined;
303
310
  set mediaType(mediaType: StringElement | undefined);
304
311
  get targetMediaType(): StringElement | undefined;
@@ -309,11 +316,22 @@ export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
309
316
  set description(description: StringElement | undefined);
310
317
  get $comment(): StringElement | undefined;
311
318
  set $comment($comment: StringElement | undefined);
319
+ /**
320
+ * Link Input.
321
+ *
322
+ * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6
323
+ */
324
+ get hrefSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
325
+ set hrefSchema(hrefSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
326
+ get headerSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
327
+ set headerSchema(headerSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
312
328
  /**
313
329
  * Submitting Data for Processing.
314
330
  *
315
331
  * URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6.4
316
332
  */
333
+ get submissionSchema(): JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined;
334
+ set submissionSchema(submissionSchema: JSONSchemaElement | BooleanElement | JSONReferenceElement | undefined);
317
335
  get submissionEncType(): StringElement | undefined;
318
336
  set submissionEncType(submissionEncType: StringElement | undefined);
319
337
  get submissionMediaType(): StringElement | undefined;
@@ -323,19 +341,12 @@ export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
323
341
  /**
324
342
  * @public
325
343
  */
326
- export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_base {
344
+ export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_3 {
327
345
  readonly element: LinkDescriptionElement;
328
- protected readonly specPath: SpecPath<['document', 'objects', 'LinkDescription']>;
329
346
  constructor(options: LinkDescriptionVisitorOptions);
330
347
  }
331
348
 
332
- declare const LinkDescriptionVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
333
-
334
- /**
335
- * @public
336
- */
337
- export declare interface LinkDescriptionVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
338
- }
349
+ export { LinkDescriptionVisitorOptions }
339
350
 
340
351
  export { MapVisitor }
341
352