@swagger-api/apidom-ns-json-schema-draft-7 1.0.0-beta.2 → 1.0.0-beta.4
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 +8 -0
- package/package.json +9 -9
- package/src/elements/JSONSchema.cjs +3 -1
- package/src/elements/JSONSchema.mjs +3 -1
- package/src/elements/LinkDescription.cjs +1 -0
- package/src/elements/LinkDescription.mjs +1 -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 +3 -0
- package/src/predicates.cjs +7 -0
- package/src/predicates.mjs +8 -0
- package/src/refractor/index.cjs +7 -0
- package/src/refractor/index.mjs +7 -0
- package/src/refractor/plugins/replace-empty-element.cjs +4 -0
- package/src/refractor/plugins/replace-empty-element.mjs +4 -0
- package/src/refractor/visitors/json-schema/index.cjs +7 -0
- package/src/refractor/visitors/json-schema/index.mjs +6 -0
- package/src/refractor/visitors/json-schema/link-description/index.cjs +7 -0
- package/src/refractor/visitors/json-schema/link-description/index.mjs +6 -0
- package/src/traversal/visitor.cjs +7 -1
- package/src/traversal/visitor.mjs +7 -1
- package/types/apidom-ns-json-schema-draft-7.d.ts +540 -0
- package/types/dist.d.ts +0 -310
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.4](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2024-12-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-json-schema-draft-7
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.3](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2024-11-25)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-json-schema-draft-7
|
|
13
|
+
|
|
6
14
|
# [1.0.0-beta.2](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-11-22)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @swagger-api/apidom-ns-json-schema-draft-7
|
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.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"description": "JSON Schema Draft 7 namespace for ApiDOM.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"unpkg": "./dist/apidom-ns-json-schema-draft-7.browser.min.js",
|
|
15
15
|
"main": "./src/index.cjs",
|
|
16
16
|
"exports": {
|
|
17
|
-
"types": "./types/
|
|
17
|
+
"types": "./types/apidom-ns-json-schema-draft-7.d.ts",
|
|
18
18
|
"import": "./src/index.mjs",
|
|
19
19
|
"require": "./src/index.cjs"
|
|
20
20
|
},
|
|
21
|
-
"types": "./types/
|
|
21
|
+
"types": "./types/apidom-ns-json-schema-draft-7.d.ts",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser",
|
|
24
24
|
"build:es": "cross-env BABEL_ENV=es babel src --out-dir src --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
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",
|
|
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
|
-
"typescript:declaration": "tsc -p tsconfig.declaration.json &&
|
|
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'",
|
|
34
34
|
"prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .",
|
|
35
35
|
"postpack": "rimraf NOTICE LICENSES"
|
|
36
36
|
},
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/runtime-corejs3": "^7.20.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-6": "^1.0.0-beta.
|
|
45
|
+
"@swagger-api/apidom-core": "^1.0.0-beta.4",
|
|
46
|
+
"@swagger-api/apidom-error": "^1.0.0-beta.4",
|
|
47
|
+
"@swagger-api/apidom-ns-json-schema-draft-6": "^1.0.0-beta.4",
|
|
48
48
|
"@types/ramda": "~0.30.0",
|
|
49
49
|
"ramda": "~0.30.0",
|
|
50
50
|
"ramda-adjunct": "^5.0.0",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"src/**/*.mjs",
|
|
55
55
|
"src/**/*.cjs",
|
|
56
56
|
"dist/",
|
|
57
|
-
"types/
|
|
57
|
+
"types/apidom-ns-json-schema-draft-7.d.ts",
|
|
58
58
|
"LICENSES",
|
|
59
59
|
"NOTICE",
|
|
60
60
|
"README.md",
|
|
61
61
|
"CHANGELOG.md"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "aca988b356e303bd9aaa900d8ba3de49b3bb80be"
|
|
64
64
|
}
|
|
@@ -5,7 +5,9 @@ exports.default = void 0;
|
|
|
5
5
|
var _apidomError = require("@swagger-api/apidom-error");
|
|
6
6
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-6");
|
|
7
7
|
/* eslint-disable class-methods-use-this */
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
9
11
|
class JSONSchema extends _apidomNsJsonSchemaDraft.JSONSchemaElement {
|
|
10
12
|
constructor(content, meta, attributes) {
|
|
11
13
|
super(content, meta, attributes);
|
|
@@ -2,7 +2,9 @@ import { UnsupportedOperationError } from '@swagger-api/apidom-error';
|
|
|
2
2
|
import { JSONSchemaElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
3
3
|
|
|
4
4
|
/* eslint-disable class-methods-use-this */
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
6
8
|
class JSONSchema extends JSONSchemaElement {
|
|
7
9
|
constructor(content, meta, attributes) {
|
|
8
10
|
super(content, meta, attributes);
|
|
@@ -8,6 +8,7 @@ var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-01#section-6
|
|
11
|
+
* @public
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
class LinkDescription extends _apidomNsJsonSchemaDraft.LinkDescriptionElement {
|
package/src/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { isRefElement, isLinkElement, isMemberElement, isObjectElement, isArrayElement, isBooleanElement, isNullElement, isElement, isNumberElement, isStringElement } from '@swagger-api/apidom-core';
|
|
2
|
-
export { default as mediaTypes, JSONSchemaDraft7MediaTypes } from "./media-types.mjs";
|
|
2
|
+
export { default as mediaTypes, JSONSchemaDraft7MediaTypes } from "./media-types.mjs";
|
|
3
|
+
// eslint-disable-next-line no-restricted-exports
|
|
3
4
|
export { default } from "./namespace.mjs";
|
|
4
5
|
export { default as refractorPluginReplaceEmptyElement } from "./refractor/plugins/replace-empty-element.mjs";
|
|
5
6
|
export { default as refract, createRefractor } from "./refractor/index.mjs";
|
package/src/media-types.cjs
CHANGED
|
@@ -4,6 +4,13 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.default = exports.JSONSchemaDraft7MediaTypes = void 0;
|
|
5
5
|
var _ramda = require("ramda");
|
|
6
6
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
7
14
|
class JSONSchemaDraft7MediaTypes extends _apidomCore.MediaTypes {
|
|
8
15
|
filterByFormat(format = 'generic') {
|
|
9
16
|
const effectiveFormat = format === 'generic' ? 'schema;version' : format;
|
|
@@ -18,6 +25,10 @@ class JSONSchemaDraft7MediaTypes extends _apidomCore.MediaTypes {
|
|
|
18
25
|
return (0, _ramda.last)(this.filterByFormat(format));
|
|
19
26
|
}
|
|
20
27
|
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
21
32
|
exports.JSONSchemaDraft7MediaTypes = JSONSchemaDraft7MediaTypes;
|
|
22
33
|
const mediaTypes = new JSONSchemaDraft7MediaTypes('application/schema;version=draft-07', 'application/schema+json;version=draft-07', 'application/schema+yaml;version=draft-07');
|
|
23
34
|
var _default = exports.default = mediaTypes;
|
package/src/media-types.mjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { last } from 'ramda';
|
|
2
2
|
import { MediaTypes } from '@swagger-api/apidom-core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
3
11
|
export class JSONSchemaDraft7MediaTypes extends MediaTypes {
|
|
4
12
|
filterByFormat(format = 'generic') {
|
|
5
13
|
const effectiveFormat = format === 'generic' ? 'schema;version' : format;
|
|
@@ -14,5 +22,9 @@ export class JSONSchemaDraft7MediaTypes extends MediaTypes {
|
|
|
14
22
|
return last(this.filterByFormat(format));
|
|
15
23
|
}
|
|
16
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
17
29
|
const mediaTypes = new JSONSchemaDraft7MediaTypes('application/schema;version=draft-07', 'application/schema+json;version=draft-07', 'application/schema+yaml;version=draft-07');
|
|
18
30
|
export default mediaTypes;
|
package/src/namespace.cjs
CHANGED
|
@@ -6,6 +6,9 @@ exports.default = void 0;
|
|
|
6
6
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-6");
|
|
7
7
|
var _JSONSchema = _interopRequireDefault(require("./elements/JSONSchema.cjs"));
|
|
8
8
|
var _LinkDescription = _interopRequireDefault(require("./elements/LinkDescription.cjs"));
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
9
12
|
const jsonSchemaDraft7 = {
|
|
10
13
|
namespace: options => {
|
|
11
14
|
const {
|
package/src/namespace.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { JSONReferenceElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
2
2
|
import JSONSchemaElement from "./elements/JSONSchema.mjs";
|
|
3
3
|
import LinkDescriptionElement from "./elements/LinkDescription.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
4
7
|
const jsonSchemaDraft7 = {
|
|
5
8
|
namespace: options => {
|
|
6
9
|
const {
|
package/src/predicates.cjs
CHANGED
|
@@ -8,6 +8,9 @@ var _JSONSchema = _interopRequireDefault(require("./elements/JSONSchema.cjs"));
|
|
|
8
8
|
var _LinkDescription = _interopRequireDefault(require("./elements/LinkDescription.cjs"));
|
|
9
9
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-6");
|
|
10
10
|
exports.isJSONReferenceElement = _apidomNsJsonSchemaDraft.isJSONReferenceElement;
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
11
14
|
const isJSONSchemaElement = exports.isJSONSchemaElement = (0, _apidomCore.createPredicate)(({
|
|
12
15
|
hasBasicElementProps,
|
|
13
16
|
isElementType,
|
|
@@ -15,6 +18,10 @@ const isJSONSchemaElement = exports.isJSONSchemaElement = (0, _apidomCore.create
|
|
|
15
18
|
}) => {
|
|
16
19
|
return element => element instanceof _JSONSchema.default || hasBasicElementProps(element) && isElementType('JSONSchemaDraft7', element) && primitiveEq('object', element);
|
|
17
20
|
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
18
25
|
const isLinkDescriptionElement = exports.isLinkDescriptionElement = (0, _apidomCore.createPredicate)(({
|
|
19
26
|
hasBasicElementProps,
|
|
20
27
|
isElementType,
|
package/src/predicates.mjs
CHANGED
|
@@ -2,6 +2,10 @@ import { createPredicate } from '@swagger-api/apidom-core';
|
|
|
2
2
|
import JSONSchemaElement from "./elements/JSONSchema.mjs";
|
|
3
3
|
import LinkDescriptionElement from "./elements/LinkDescription.mjs";
|
|
4
4
|
export { isJSONReferenceElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
5
9
|
export const isJSONSchemaElement = createPredicate(({
|
|
6
10
|
hasBasicElementProps,
|
|
7
11
|
isElementType,
|
|
@@ -9,6 +13,10 @@ export const isJSONSchemaElement = createPredicate(({
|
|
|
9
13
|
}) => {
|
|
10
14
|
return element => element instanceof JSONSchemaElement || hasBasicElementProps(element) && isElementType('JSONSchemaDraft7', element) && primitiveEq('object', element);
|
|
11
15
|
});
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
12
20
|
export const isLinkDescriptionElement = createPredicate(({
|
|
13
21
|
hasBasicElementProps,
|
|
14
22
|
isElementType,
|
package/src/refractor/index.cjs
CHANGED
|
@@ -8,6 +8,9 @@ var _apidomCore = require("@swagger-api/apidom-core");
|
|
|
8
8
|
var _specification = _interopRequireDefault(require("./specification.cjs"));
|
|
9
9
|
var _visitor = require("../traversal/visitor.cjs");
|
|
10
10
|
var _toolbox = _interopRequireDefault(require("./toolbox.cjs"));
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
11
14
|
const refract = (value, {
|
|
12
15
|
specPath = ['visitors', 'document', 'objects', 'JSONSchema', '$visitor'],
|
|
13
16
|
plugins = [],
|
|
@@ -39,6 +42,10 @@ const refract = (value, {
|
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
42
49
|
const createRefractor = specPath => (value, options = {}) => refract(value, {
|
|
43
50
|
specPath,
|
|
44
51
|
...options
|
package/src/refractor/index.mjs
CHANGED
|
@@ -3,6 +3,9 @@ import { visit, dereference, refract as baseRefract, dispatchRefractorPlugins }
|
|
|
3
3
|
import specification from "./specification.mjs";
|
|
4
4
|
import { keyMap, getNodeType } from "../traversal/visitor.mjs";
|
|
5
5
|
import createToolbox from "./toolbox.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
6
9
|
const refract = (value, {
|
|
7
10
|
specPath = ['visitors', 'document', 'objects', 'JSONSchema', '$visitor'],
|
|
8
11
|
plugins = [],
|
|
@@ -34,6 +37,10 @@ const refract = (value, {
|
|
|
34
37
|
}
|
|
35
38
|
});
|
|
36
39
|
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
37
44
|
export const createRefractor = specPath => (value, options = {}) => refract(value, {
|
|
38
45
|
specPath,
|
|
39
46
|
...options
|
|
@@ -197,6 +197,10 @@ const findElementFactory = (ancestor, keyName) => {
|
|
|
197
197
|
const keyMapping = schema[elementType] || schema[(0, _apidomCore.toValue)(ancestor.classes.first)];
|
|
198
198
|
return typeof keyMapping === 'undefined' ? undefined : Object.prototype.hasOwnProperty.call(keyMapping, '[key: *]') ? keyMapping['[key: *]'] : keyMapping[keyName];
|
|
199
199
|
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
200
204
|
const plugin = () => () => {
|
|
201
205
|
return {
|
|
202
206
|
visitor: {
|
|
@@ -190,6 +190,10 @@ const findElementFactory = (ancestor, keyName) => {
|
|
|
190
190
|
const keyMapping = schema[elementType] || schema[toValue(ancestor.classes.first)];
|
|
191
191
|
return typeof keyMapping === 'undefined' ? undefined : Object.prototype.hasOwnProperty.call(keyMapping, '[key: *]') ? keyMapping['[key: *]'] : keyMapping[keyName];
|
|
192
192
|
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
193
197
|
const plugin = () => () => {
|
|
194
198
|
return {
|
|
195
199
|
visitor: {
|
|
@@ -7,6 +7,13 @@ var _tsMixer = require("ts-mixer");
|
|
|
7
7
|
var _ramda = require("ramda");
|
|
8
8
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-6");
|
|
9
9
|
var _JSONSchema = _interopRequireDefault(require("../../../elements/JSONSchema.cjs"));
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
10
17
|
class JSONSchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.FixedFieldsVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
11
18
|
constructor(options) {
|
|
12
19
|
super(options);
|
|
@@ -2,6 +2,12 @@ import { Mixin } from 'ts-mixer';
|
|
|
2
2
|
import { always } from 'ramda';
|
|
3
3
|
import { FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
4
4
|
import JSONSchemaElement from "../../../elements/JSONSchema.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
5
11
|
class JSONSchemaVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) {
|
|
6
12
|
constructor(options) {
|
|
7
13
|
super(options);
|
|
@@ -7,6 +7,13 @@ var _tsMixer = require("ts-mixer");
|
|
|
7
7
|
var _ramda = require("ramda");
|
|
8
8
|
var _apidomNsJsonSchemaDraft = require("@swagger-api/apidom-ns-json-schema-draft-6");
|
|
9
9
|
var _LinkDescription = _interopRequireDefault(require("../../../../elements/LinkDescription.cjs"));
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
10
17
|
class LinkDescriptionVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.FixedFieldsVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
11
18
|
constructor(options) {
|
|
12
19
|
super(options);
|
|
@@ -2,6 +2,12 @@ import { Mixin } from 'ts-mixer';
|
|
|
2
2
|
import { always } from 'ramda';
|
|
3
3
|
import { FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
4
4
|
import LinkDescriptionElement from "../../../../elements/LinkDescription.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
5
11
|
class LinkDescriptionVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) {
|
|
6
12
|
constructor(options) {
|
|
7
13
|
super(options);
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.keyMap = exports.getNodeType = void 0;
|
|
5
5
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
7
9
|
const getNodeType = element => {
|
|
8
10
|
if (!(0, _apidomCore.isElement)(element)) {
|
|
9
11
|
return undefined;
|
|
10
12
|
}
|
|
11
13
|
return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
|
|
12
14
|
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
13
19
|
exports.getNodeType = getNodeType;
|
|
14
20
|
const keyMap = exports.keyMap = {
|
|
15
21
|
JSONSchemaDraft7Element: ['content'],
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { keyMap as keyMapBase, isElement } from '@swagger-api/apidom-core';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
4
6
|
export const getNodeType = element => {
|
|
5
7
|
if (!isElement(element)) {
|
|
6
8
|
return undefined;
|
|
7
9
|
}
|
|
8
10
|
return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
|
|
9
11
|
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
10
16
|
export const keyMap = {
|
|
11
17
|
JSONSchemaDraft7Element: ['content'],
|
|
12
18
|
JSONReferenceElement: ['content'],
|
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import { AllOfVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
2
|
+
import { AllOfVisitor as AllOfVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
3
|
+
import { AllOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
4
|
+
import { AlternatingVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
5
|
+
import { AlternatingVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
6
|
+
import { AnyOfVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
7
|
+
import { AnyOfVisitor as AnyOfVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
8
|
+
import { AnyOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
9
|
+
import { ArrayElement } from '@swagger-api/apidom-core';
|
|
10
|
+
import { Attributes } from '@swagger-api/apidom-core';
|
|
11
|
+
import { BooleanElement } from '@swagger-api/apidom-core';
|
|
12
|
+
import { Class } from 'ts-mixer/dist/types/types.js';
|
|
13
|
+
import { DefinitionsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
14
|
+
import { DefinitionsVisitor as DefinitionsVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
15
|
+
import { DefinitionsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
16
|
+
import { DependenciesVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
17
|
+
import { DependenciesVisitor as DependenciesVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
18
|
+
import { DependenciesVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
19
|
+
import { Element as Element_2 } from '@swagger-api/apidom-core';
|
|
20
|
+
import { ElementPredicate } from '@swagger-api/apidom-core';
|
|
21
|
+
import { EnumVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
22
|
+
import { FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
23
|
+
import { FallbackVisitor as FallbackVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
24
|
+
import { FallbackVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
25
|
+
import { FixedFieldsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
26
|
+
import { FixedFieldsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
27
|
+
import { isArrayElement } from '@swagger-api/apidom-core';
|
|
28
|
+
import { isBooleanElement } from '@swagger-api/apidom-core';
|
|
29
|
+
import { isElement } from '@swagger-api/apidom-core';
|
|
30
|
+
import { isJSONReferenceElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
31
|
+
import { isJSONReferenceLikeElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
32
|
+
import { isLinkElement } from '@swagger-api/apidom-core';
|
|
33
|
+
import { isMemberElement } from '@swagger-api/apidom-core';
|
|
34
|
+
import { isNullElement } from '@swagger-api/apidom-core';
|
|
35
|
+
import { isNumberElement } from '@swagger-api/apidom-core';
|
|
36
|
+
import { isObjectElement } from '@swagger-api/apidom-core';
|
|
37
|
+
import { isRefElement } from '@swagger-api/apidom-core';
|
|
38
|
+
import { isStringElement } from '@swagger-api/apidom-core';
|
|
39
|
+
import { ItemsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
40
|
+
import { ItemsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
41
|
+
import { JSONReference$RefVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
42
|
+
import { JSONReferenceElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
43
|
+
import { JSONReferenceVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
44
|
+
import { JSONSchemaDraft4ItemsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
45
|
+
import { JSONSchemaElement as JSONSchemaElement_2 } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
46
|
+
import { JSONSchemaVisitor as JSONSchemaVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
47
|
+
import { LinkDescriptionElement as LinkDescriptionElement_2 } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
48
|
+
import { LinkDescriptionVisitor as LinkDescriptionVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
49
|
+
import { LinksVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
50
|
+
import { MapVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
51
|
+
import { MapVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
52
|
+
import { MediaElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
53
|
+
import { MediaTypes } from '@swagger-api/apidom-core';
|
|
54
|
+
import { MediaVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
55
|
+
import { Meta } from '@swagger-api/apidom-core';
|
|
56
|
+
import { Namespace } from 'minim';
|
|
57
|
+
import { NamespacePluginOptions } from '@swagger-api/apidom-core';
|
|
58
|
+
import { ObjectElement } from '@swagger-api/apidom-core';
|
|
59
|
+
import { OneOfVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
60
|
+
import { OneOfVisitor as OneOfVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
61
|
+
import { OneOfVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
62
|
+
import { ParentSchemaAwareVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
63
|
+
import { ParentSchemaAwareVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
64
|
+
import { PatternedFieldsVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
65
|
+
import { PatternedFieldsVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
66
|
+
import { PatternPropertiesVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
67
|
+
import { PatternPropertiesVisitor as PatternPropertiesVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
68
|
+
import { PatternPropertiesVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
69
|
+
import { PropertiesVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
70
|
+
import { PropertiesVisitor as PropertiesVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
71
|
+
import { PropertiesVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
72
|
+
import { RequiredVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
73
|
+
import { SchemaOrReferenceVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
74
|
+
import { SchemaOrReferenceVisitor as SchemaOrReferenceVisitor_2 } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
75
|
+
import { SchemaOrReferenceVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
76
|
+
import { specificationObj as specificationObj_2 } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
77
|
+
import { SpecificationVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
78
|
+
import { SpecificationVisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
79
|
+
import { SpecPath } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
80
|
+
import { StringElement } from '@swagger-api/apidom-core';
|
|
81
|
+
import { TypeVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
82
|
+
import { Visitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
83
|
+
import { VisitorOptions } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
84
|
+
|
|
85
|
+
export { AllOfVisitor }
|
|
86
|
+
|
|
87
|
+
export { AllOfVisitorOptions }
|
|
88
|
+
|
|
89
|
+
export { AlternatingVisitor }
|
|
90
|
+
|
|
91
|
+
export { AlternatingVisitorOptions }
|
|
92
|
+
|
|
93
|
+
export { AnyOfVisitor }
|
|
94
|
+
|
|
95
|
+
export { AnyOfVisitorOptions }
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
export declare const createRefractor: (specPath: string[]) => (value: unknown, options?: {}) => Element_2;
|
|
101
|
+
|
|
102
|
+
export { DefinitionsVisitor }
|
|
103
|
+
|
|
104
|
+
export { DefinitionsVisitorOptions }
|
|
105
|
+
|
|
106
|
+
export { DependenciesVisitor }
|
|
107
|
+
|
|
108
|
+
export { DependenciesVisitorOptions }
|
|
109
|
+
|
|
110
|
+
export { FallbackVisitor }
|
|
111
|
+
|
|
112
|
+
export { FallbackVisitorOptions }
|
|
113
|
+
|
|
114
|
+
export { FixedFieldsVisitor }
|
|
115
|
+
|
|
116
|
+
export { FixedFieldsVisitorOptions }
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare type Format = 'generic' | 'json' | 'yaml';
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export declare const getNodeType: <T extends Element_2>(element: T) => string | undefined;
|
|
127
|
+
|
|
128
|
+
export { isArrayElement }
|
|
129
|
+
|
|
130
|
+
export { isBooleanElement }
|
|
131
|
+
|
|
132
|
+
export { isElement }
|
|
133
|
+
|
|
134
|
+
export { isJSONReferenceElement }
|
|
135
|
+
|
|
136
|
+
export { isJSONReferenceLikeElement }
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export declare const isJSONSchemaElement: ElementPredicate<JSONSchemaElement>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
export declare const isLinkDescriptionElement: ElementPredicate<LinkDescriptionElement>;
|
|
147
|
+
|
|
148
|
+
export { isLinkElement }
|
|
149
|
+
|
|
150
|
+
export { isMemberElement }
|
|
151
|
+
|
|
152
|
+
export { isNullElement }
|
|
153
|
+
|
|
154
|
+
export { isNumberElement }
|
|
155
|
+
|
|
156
|
+
export { isObjectElement }
|
|
157
|
+
|
|
158
|
+
export { isRefElement }
|
|
159
|
+
|
|
160
|
+
export { isStringElement }
|
|
161
|
+
|
|
162
|
+
export { ItemsVisitorOptions }
|
|
163
|
+
|
|
164
|
+
export { JSONReferenceElement }
|
|
165
|
+
|
|
166
|
+
export { JSONSchemaDraft4ItemsVisitor }
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
declare const jsonSchemaDraft7: {
|
|
172
|
+
namespace: (options: NamespacePluginOptions) => Namespace;
|
|
173
|
+
};
|
|
174
|
+
export default jsonSchemaDraft7;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export declare class JSONSchemaDraft7MediaTypes extends MediaTypes<string> {
|
|
180
|
+
filterByFormat(format?: Format): string[];
|
|
181
|
+
findBy(version?: string, format?: Format): string;
|
|
182
|
+
latest(format?: Format): string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export declare class JSONSchemaElement extends JSONSchemaElement_2 {
|
|
189
|
+
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
|
|
190
|
+
/**
|
|
191
|
+
* Core vocabulary
|
|
192
|
+
*
|
|
193
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-01
|
|
194
|
+
*/
|
|
195
|
+
get $comment(): StringElement | undefined;
|
|
196
|
+
set $comment($comment: StringElement | undefined);
|
|
197
|
+
/**
|
|
198
|
+
* Validation vocabulary
|
|
199
|
+
*
|
|
200
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* Keywords for Applying Subschemas Conditionally
|
|
204
|
+
*
|
|
205
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
206
|
+
*/
|
|
207
|
+
get if(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
208
|
+
set if(ifValue: this | BooleanElement | JSONReferenceElement | undefined);
|
|
209
|
+
get then(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
210
|
+
set then(then: this | BooleanElement | JSONReferenceElement | undefined);
|
|
211
|
+
get else(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
212
|
+
set else(elseValue: this | BooleanElement | JSONReferenceElement | undefined);
|
|
213
|
+
/**
|
|
214
|
+
* String-Encoding Non-JSON Data
|
|
215
|
+
*
|
|
216
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-00#section-8
|
|
217
|
+
*/
|
|
218
|
+
get contentEncoding(): StringElement | undefined;
|
|
219
|
+
set contentEncoding(contentEncoding: StringElement | undefined);
|
|
220
|
+
get contentMediaType(): StringElement | undefined;
|
|
221
|
+
set contentMediaType(contentMediaType: StringElement | undefined);
|
|
222
|
+
get media(): MediaElement | undefined;
|
|
223
|
+
set media(media: MediaElement | undefined);
|
|
224
|
+
/**
|
|
225
|
+
* Schema annotations
|
|
226
|
+
*
|
|
227
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-10
|
|
228
|
+
*/
|
|
229
|
+
get writeOnly(): BooleanElement | undefined;
|
|
230
|
+
set writeOnly(writeOnly: BooleanElement | undefined);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
export declare class JSONSchemaVisitor extends JSONSchemaVisitor_base {
|
|
237
|
+
element: JSONSchemaElement;
|
|
238
|
+
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
239
|
+
constructor(options: JSONSchemaVisitorOptions);
|
|
240
|
+
ObjectElement(objectElement: ObjectElement): {};
|
|
241
|
+
BooleanElement(booleanElement: BooleanElement): {};
|
|
242
|
+
}
|
|
243
|
+
|
|
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
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
export declare const keyMap: {
|
|
256
|
+
ObjectElement: string[];
|
|
257
|
+
ArrayElement: string[];
|
|
258
|
+
MemberElement: string[];
|
|
259
|
+
StringElement: never[];
|
|
260
|
+
BooleanElement: never[];
|
|
261
|
+
NumberElement: never[];
|
|
262
|
+
NullElement: never[];
|
|
263
|
+
RefElement: never[];
|
|
264
|
+
LinkElement: never[];
|
|
265
|
+
Annotation: never[];
|
|
266
|
+
Comment: never[];
|
|
267
|
+
ParseResultElement: string[];
|
|
268
|
+
SourceMap: string[];
|
|
269
|
+
JSONSchemaDraft7Element: string[];
|
|
270
|
+
JSONReferenceElement: string[];
|
|
271
|
+
LinkDescriptionElement: string[];
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-01#section-6
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
export declare class LinkDescriptionElement extends LinkDescriptionElement_2 {
|
|
279
|
+
/**
|
|
280
|
+
* Link context.
|
|
281
|
+
*
|
|
282
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.1
|
|
283
|
+
*/
|
|
284
|
+
get anchor(): StringElement | undefined;
|
|
285
|
+
set anchor(anchor: StringElement | undefined);
|
|
286
|
+
get anchorPointer(): StringElement | undefined;
|
|
287
|
+
set anchorPointer(anchorPointer: StringElement | undefined);
|
|
288
|
+
/**
|
|
289
|
+
* Adjusting URI Template Resolution.
|
|
290
|
+
*
|
|
291
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.4
|
|
292
|
+
*/
|
|
293
|
+
get templatePointers(): ObjectElement | undefined;
|
|
294
|
+
set templatePointers(templatePointers: ObjectElement | undefined);
|
|
295
|
+
get templateRequired(): ArrayElement | undefined;
|
|
296
|
+
set templateRequired(templateRequired: ArrayElement | undefined);
|
|
297
|
+
/**
|
|
298
|
+
* Link Target Attributes.
|
|
299
|
+
*
|
|
300
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.5
|
|
301
|
+
*/
|
|
302
|
+
get mediaType(): StringElement | undefined;
|
|
303
|
+
set mediaType(mediaType: StringElement | undefined);
|
|
304
|
+
get targetMediaType(): StringElement | undefined;
|
|
305
|
+
set targetMediaType(targetMediaType: StringElement | undefined);
|
|
306
|
+
get targetHints(): ObjectElement | undefined;
|
|
307
|
+
set targetHints(targetHints: ObjectElement | undefined);
|
|
308
|
+
get description(): StringElement | undefined;
|
|
309
|
+
set description(description: StringElement | undefined);
|
|
310
|
+
get $comment(): StringElement | undefined;
|
|
311
|
+
set $comment($comment: StringElement | undefined);
|
|
312
|
+
/**
|
|
313
|
+
* Submitting Data for Processing.
|
|
314
|
+
*
|
|
315
|
+
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6.4
|
|
316
|
+
*/
|
|
317
|
+
get submissionEncType(): StringElement | undefined;
|
|
318
|
+
set submissionEncType(submissionEncType: StringElement | undefined);
|
|
319
|
+
get submissionMediaType(): StringElement | undefined;
|
|
320
|
+
set submissionMediaType(submissionMediaType: StringElement | undefined);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @public
|
|
325
|
+
*/
|
|
326
|
+
export declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_base {
|
|
327
|
+
readonly element: LinkDescriptionElement;
|
|
328
|
+
protected readonly specPath: SpecPath<['document', 'objects', 'LinkDescription']>;
|
|
329
|
+
constructor(options: LinkDescriptionVisitorOptions);
|
|
330
|
+
}
|
|
331
|
+
|
|
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
|
+
}
|
|
339
|
+
|
|
340
|
+
export { MapVisitor }
|
|
341
|
+
|
|
342
|
+
export { MapVisitorOptions }
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
export declare const mediaTypes: JSONSchemaDraft7MediaTypes;
|
|
348
|
+
|
|
349
|
+
export { OneOfVisitor }
|
|
350
|
+
|
|
351
|
+
export { OneOfVisitorOptions }
|
|
352
|
+
|
|
353
|
+
export { ParentSchemaAwareVisitor }
|
|
354
|
+
|
|
355
|
+
export { ParentSchemaAwareVisitorOptions }
|
|
356
|
+
|
|
357
|
+
export { PatternedFieldsVisitor }
|
|
358
|
+
|
|
359
|
+
export { PatternedFieldsVisitorOptions }
|
|
360
|
+
|
|
361
|
+
export { PatternPropertiesVisitor }
|
|
362
|
+
|
|
363
|
+
export { PatternPropertiesVisitorOptions }
|
|
364
|
+
|
|
365
|
+
export { PropertiesVisitor }
|
|
366
|
+
|
|
367
|
+
export { PropertiesVisitorOptions }
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
export declare const refract: <T extends Element_2>(value: unknown, { specPath, plugins, specificationObj, }?: {
|
|
373
|
+
specPath?: string[] | undefined;
|
|
374
|
+
plugins?: never[] | undefined;
|
|
375
|
+
specificationObj?: {
|
|
376
|
+
visitors: {
|
|
377
|
+
value: FallbackVisitor_2;
|
|
378
|
+
JSONSchemaOrJSONReferenceVisitor: SchemaOrReferenceVisitor_2;
|
|
379
|
+
document: {
|
|
380
|
+
objects: {
|
|
381
|
+
JSONSchema: {
|
|
382
|
+
$visitor: JSONSchemaVisitor_2;
|
|
383
|
+
fixedFields: {
|
|
384
|
+
id: {
|
|
385
|
+
$ref: string;
|
|
386
|
+
};
|
|
387
|
+
$schema: {
|
|
388
|
+
$ref: string;
|
|
389
|
+
};
|
|
390
|
+
multipleOf: {
|
|
391
|
+
$ref: string;
|
|
392
|
+
};
|
|
393
|
+
maximum: {
|
|
394
|
+
$ref: string;
|
|
395
|
+
};
|
|
396
|
+
exclusiveMaximum: {
|
|
397
|
+
$ref: string;
|
|
398
|
+
};
|
|
399
|
+
minimum: {
|
|
400
|
+
$ref: string;
|
|
401
|
+
};
|
|
402
|
+
exclusiveMinimum: {
|
|
403
|
+
$ref: string;
|
|
404
|
+
};
|
|
405
|
+
maxLength: {
|
|
406
|
+
$ref: string;
|
|
407
|
+
};
|
|
408
|
+
minLength: {
|
|
409
|
+
$ref: string;
|
|
410
|
+
};
|
|
411
|
+
pattern: {
|
|
412
|
+
$ref: string;
|
|
413
|
+
};
|
|
414
|
+
additionalItems: SchemaOrReferenceVisitor_2;
|
|
415
|
+
items: ItemsVisitor;
|
|
416
|
+
maxItems: {
|
|
417
|
+
$ref: string;
|
|
418
|
+
};
|
|
419
|
+
minItems: {
|
|
420
|
+
$ref: string;
|
|
421
|
+
};
|
|
422
|
+
uniqueItems: {
|
|
423
|
+
$ref: string;
|
|
424
|
+
};
|
|
425
|
+
maxProperties: {
|
|
426
|
+
$ref: string;
|
|
427
|
+
};
|
|
428
|
+
minProperties: {
|
|
429
|
+
$ref: string;
|
|
430
|
+
};
|
|
431
|
+
required: RequiredVisitor;
|
|
432
|
+
properties: PropertiesVisitor_2;
|
|
433
|
+
additionalProperties: SchemaOrReferenceVisitor_2;
|
|
434
|
+
patternProperties: PatternPropertiesVisitor_2;
|
|
435
|
+
dependencies: DependenciesVisitor_2;
|
|
436
|
+
enum: EnumVisitor;
|
|
437
|
+
type: TypeVisitor;
|
|
438
|
+
allOf: AllOfVisitor_2;
|
|
439
|
+
anyOf: AnyOfVisitor_2;
|
|
440
|
+
oneOf: OneOfVisitor_2;
|
|
441
|
+
not: SchemaOrReferenceVisitor_2;
|
|
442
|
+
definitions: DefinitionsVisitor_2;
|
|
443
|
+
title: {
|
|
444
|
+
$ref: string;
|
|
445
|
+
};
|
|
446
|
+
description: {
|
|
447
|
+
$ref: string;
|
|
448
|
+
};
|
|
449
|
+
default: {
|
|
450
|
+
$ref: string;
|
|
451
|
+
};
|
|
452
|
+
format: {
|
|
453
|
+
$ref: string;
|
|
454
|
+
};
|
|
455
|
+
base: {
|
|
456
|
+
$ref: string;
|
|
457
|
+
};
|
|
458
|
+
links: LinksVisitor;
|
|
459
|
+
media: {
|
|
460
|
+
$ref: string;
|
|
461
|
+
};
|
|
462
|
+
readOnly: {
|
|
463
|
+
$ref: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
JSONReference: {
|
|
468
|
+
$visitor: JSONReferenceVisitor;
|
|
469
|
+
fixedFields: {
|
|
470
|
+
$ref: JSONReference$RefVisitor;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
Media: {
|
|
474
|
+
$visitor: MediaVisitor;
|
|
475
|
+
fixedFields: {
|
|
476
|
+
binaryEncoding: {
|
|
477
|
+
$ref: string;
|
|
478
|
+
};
|
|
479
|
+
type: {
|
|
480
|
+
$ref: string;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
LinkDescription: {
|
|
485
|
+
$visitor: LinkDescriptionVisitor_2;
|
|
486
|
+
fixedFields: {
|
|
487
|
+
href: {
|
|
488
|
+
$ref: string;
|
|
489
|
+
};
|
|
490
|
+
rel: {
|
|
491
|
+
$ref: string;
|
|
492
|
+
};
|
|
493
|
+
title: {
|
|
494
|
+
$ref: string;
|
|
495
|
+
};
|
|
496
|
+
targetSchema: SchemaOrReferenceVisitor_2;
|
|
497
|
+
mediaType: {
|
|
498
|
+
$ref: string;
|
|
499
|
+
};
|
|
500
|
+
method: {
|
|
501
|
+
$ref: string;
|
|
502
|
+
};
|
|
503
|
+
encType: {
|
|
504
|
+
$ref: string;
|
|
505
|
+
};
|
|
506
|
+
schema: SchemaOrReferenceVisitor_2;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
} | undefined;
|
|
513
|
+
}) => T;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @public
|
|
517
|
+
*/
|
|
518
|
+
export declare const refractorPluginReplaceEmptyElement: () => () => {
|
|
519
|
+
visitor: {
|
|
520
|
+
StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
export { SchemaOrReferenceVisitor }
|
|
525
|
+
|
|
526
|
+
export { SchemaOrReferenceVisitorOptions }
|
|
527
|
+
|
|
528
|
+
export declare const specificationObj: typeof specificationObj_2;
|
|
529
|
+
|
|
530
|
+
export { SpecificationVisitor }
|
|
531
|
+
|
|
532
|
+
export { SpecificationVisitorOptions }
|
|
533
|
+
|
|
534
|
+
export { SpecPath }
|
|
535
|
+
|
|
536
|
+
export { Visitor }
|
|
537
|
+
|
|
538
|
+
export { VisitorOptions }
|
|
539
|
+
|
|
540
|
+
export { }
|
package/types/dist.d.ts
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import * as _swagger_api_apidom_core from '@swagger-api/apidom-core';
|
|
2
|
-
import { MediaTypes, NamespacePluginOptions, StringElement, Element, Meta, Attributes, BooleanElement, ObjectElement, ArrayElement } from '@swagger-api/apidom-core';
|
|
3
|
-
export { isArrayElement, isBooleanElement, isElement, isLinkElement, isMemberElement, isNullElement, isNumberElement, isObjectElement, isRefElement, isStringElement } from '@swagger-api/apidom-core';
|
|
4
|
-
import * as minim from 'minim';
|
|
5
|
-
import * as _swagger_api_apidom_ns_json_schema_draft_4 from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
6
|
-
import { specificationObj, JSONSchemaElement, JSONReferenceElement, MediaElement, LinkDescriptionElement, FixedFieldsVisitorOptions, FallbackVisitorOptions, SpecPath, FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
7
|
-
export { AllOfVisitorOptions, AlternatingVisitor, AlternatingVisitorOptions, AnyOfVisitorOptions, DefinitionsVisitorOptions, DependenciesVisitorOptions, FallbackVisitor, FallbackVisitorOptions, FixedFieldsVisitor, FixedFieldsVisitorOptions, ItemsVisitorOptions, JSONReferenceElement, MapVisitor, MapVisitorOptions, OneOfVisitorOptions, ParentSchemaAwareVisitor, ParentSchemaAwareVisitorOptions, PatternPropertiesVisitorOptions, PatternedFieldsVisitor, PatternedFieldsVisitorOptions, PropertiesVisitorOptions, SchemaOrReferenceVisitorOptions, SpecPath, SpecificationVisitor, SpecificationVisitorOptions, Visitor, VisitorOptions, isJSONReferenceElement, isJSONReferenceLikeElement } from '@swagger-api/apidom-ns-json-schema-draft-6';
|
|
8
|
-
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
9
|
-
|
|
10
|
-
type Format = 'generic' | 'json' | 'yaml';
|
|
11
|
-
declare class JSONSchemaDraft7MediaTypes extends MediaTypes<string> {
|
|
12
|
-
filterByFormat(format?: Format): string[];
|
|
13
|
-
findBy(version?: string, format?: Format): string;
|
|
14
|
-
latest(format?: Format): string;
|
|
15
|
-
}
|
|
16
|
-
declare const mediaTypes: JSONSchemaDraft7MediaTypes;
|
|
17
|
-
|
|
18
|
-
declare const jsonSchemaDraft7: {
|
|
19
|
-
namespace: (options: NamespacePluginOptions) => minim.Namespace;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
declare const plugin: () => () => {
|
|
23
|
-
visitor: {
|
|
24
|
-
StringElement(element: StringElement, key: any, parent: any, path: any, ancestors: any[]): any;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
declare const refract: <T extends Element>(value: unknown, { specPath, plugins, specificationObj, }?: {
|
|
29
|
-
specPath?: string[] | undefined;
|
|
30
|
-
plugins?: never[] | undefined;
|
|
31
|
-
specificationObj?: {
|
|
32
|
-
visitors: {
|
|
33
|
-
value: typeof _swagger_api_apidom_ns_json_schema_draft_4.FallbackVisitor;
|
|
34
|
-
JSONSchemaOrJSONReferenceVisitor: typeof _swagger_api_apidom_ns_json_schema_draft_4.SchemaOrReferenceVisitor;
|
|
35
|
-
document: {
|
|
36
|
-
objects: {
|
|
37
|
-
JSONSchema: {
|
|
38
|
-
$visitor: typeof _swagger_api_apidom_ns_json_schema_draft_4.JSONSchemaVisitor;
|
|
39
|
-
fixedFields: {
|
|
40
|
-
id: {
|
|
41
|
-
$ref: string;
|
|
42
|
-
};
|
|
43
|
-
$schema: {
|
|
44
|
-
$ref: string;
|
|
45
|
-
};
|
|
46
|
-
multipleOf: {
|
|
47
|
-
$ref: string;
|
|
48
|
-
};
|
|
49
|
-
maximum: {
|
|
50
|
-
$ref: string;
|
|
51
|
-
};
|
|
52
|
-
exclusiveMaximum: {
|
|
53
|
-
$ref: string;
|
|
54
|
-
};
|
|
55
|
-
minimum: {
|
|
56
|
-
$ref: string;
|
|
57
|
-
};
|
|
58
|
-
exclusiveMinimum: {
|
|
59
|
-
$ref: string;
|
|
60
|
-
};
|
|
61
|
-
maxLength: {
|
|
62
|
-
$ref: string;
|
|
63
|
-
};
|
|
64
|
-
minLength: {
|
|
65
|
-
$ref: string;
|
|
66
|
-
};
|
|
67
|
-
pattern: {
|
|
68
|
-
$ref: string;
|
|
69
|
-
};
|
|
70
|
-
additionalItems: typeof _swagger_api_apidom_ns_json_schema_draft_4.SchemaOrReferenceVisitor;
|
|
71
|
-
items: typeof _swagger_api_apidom_ns_json_schema_draft_4.ItemsVisitor;
|
|
72
|
-
maxItems: {
|
|
73
|
-
$ref: string;
|
|
74
|
-
};
|
|
75
|
-
minItems: {
|
|
76
|
-
$ref: string;
|
|
77
|
-
};
|
|
78
|
-
uniqueItems: {
|
|
79
|
-
$ref: string;
|
|
80
|
-
};
|
|
81
|
-
maxProperties: {
|
|
82
|
-
$ref: string;
|
|
83
|
-
};
|
|
84
|
-
minProperties: {
|
|
85
|
-
$ref: string;
|
|
86
|
-
};
|
|
87
|
-
required: typeof _swagger_api_apidom_ns_json_schema_draft_4.RequiredVisitor;
|
|
88
|
-
properties: typeof _swagger_api_apidom_ns_json_schema_draft_4.PropertiesVisitor;
|
|
89
|
-
additionalProperties: typeof _swagger_api_apidom_ns_json_schema_draft_4.SchemaOrReferenceVisitor;
|
|
90
|
-
patternProperties: typeof _swagger_api_apidom_ns_json_schema_draft_4.PatternPropertiesVisitor;
|
|
91
|
-
dependencies: typeof _swagger_api_apidom_ns_json_schema_draft_4.DependenciesVisitor;
|
|
92
|
-
enum: typeof _swagger_api_apidom_ns_json_schema_draft_4.EnumVisitor;
|
|
93
|
-
type: typeof _swagger_api_apidom_ns_json_schema_draft_4.TypeVisitor;
|
|
94
|
-
allOf: typeof _swagger_api_apidom_ns_json_schema_draft_4.AllOfVisitor;
|
|
95
|
-
anyOf: typeof _swagger_api_apidom_ns_json_schema_draft_4.AnyOfVisitor;
|
|
96
|
-
oneOf: typeof _swagger_api_apidom_ns_json_schema_draft_4.OneOfVisitor;
|
|
97
|
-
not: typeof _swagger_api_apidom_ns_json_schema_draft_4.SchemaOrReferenceVisitor;
|
|
98
|
-
definitions: typeof _swagger_api_apidom_ns_json_schema_draft_4.DefinitionsVisitor;
|
|
99
|
-
title: {
|
|
100
|
-
$ref: string;
|
|
101
|
-
};
|
|
102
|
-
description: {
|
|
103
|
-
$ref: string;
|
|
104
|
-
};
|
|
105
|
-
default: {
|
|
106
|
-
$ref: string;
|
|
107
|
-
};
|
|
108
|
-
format: {
|
|
109
|
-
$ref: string;
|
|
110
|
-
};
|
|
111
|
-
base: {
|
|
112
|
-
$ref: string;
|
|
113
|
-
};
|
|
114
|
-
links: typeof _swagger_api_apidom_ns_json_schema_draft_4.LinksVisitor;
|
|
115
|
-
media: {
|
|
116
|
-
$ref: string;
|
|
117
|
-
};
|
|
118
|
-
readOnly: {
|
|
119
|
-
$ref: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
JSONReference: {
|
|
124
|
-
$visitor: typeof _swagger_api_apidom_ns_json_schema_draft_4.JSONReferenceVisitor;
|
|
125
|
-
fixedFields: {
|
|
126
|
-
$ref: typeof _swagger_api_apidom_ns_json_schema_draft_4.JSONReference$RefVisitor;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
Media: {
|
|
130
|
-
$visitor: typeof _swagger_api_apidom_ns_json_schema_draft_4.MediaVisitor;
|
|
131
|
-
fixedFields: {
|
|
132
|
-
binaryEncoding: {
|
|
133
|
-
$ref: string;
|
|
134
|
-
};
|
|
135
|
-
type: {
|
|
136
|
-
$ref: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
LinkDescription: {
|
|
141
|
-
$visitor: typeof _swagger_api_apidom_ns_json_schema_draft_4.LinkDescriptionVisitor;
|
|
142
|
-
fixedFields: {
|
|
143
|
-
href: {
|
|
144
|
-
$ref: string;
|
|
145
|
-
};
|
|
146
|
-
rel: {
|
|
147
|
-
$ref: string;
|
|
148
|
-
};
|
|
149
|
-
title: {
|
|
150
|
-
$ref: string;
|
|
151
|
-
};
|
|
152
|
-
targetSchema: typeof _swagger_api_apidom_ns_json_schema_draft_4.SchemaOrReferenceVisitor;
|
|
153
|
-
mediaType: {
|
|
154
|
-
$ref: string;
|
|
155
|
-
};
|
|
156
|
-
method: {
|
|
157
|
-
$ref: string;
|
|
158
|
-
};
|
|
159
|
-
encType: {
|
|
160
|
-
$ref: string;
|
|
161
|
-
};
|
|
162
|
-
schema: typeof _swagger_api_apidom_ns_json_schema_draft_4.SchemaOrReferenceVisitor;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
} | undefined;
|
|
169
|
-
}) => T;
|
|
170
|
-
declare const createRefractor: (specPath: string[]) => (value: unknown, options?: {}) => Element;
|
|
171
|
-
|
|
172
|
-
declare const _default: typeof specificationObj;
|
|
173
|
-
|
|
174
|
-
declare class JSONSchema extends JSONSchemaElement {
|
|
175
|
-
constructor(content?: Record<string, unknown>, meta?: Meta, attributes?: Attributes);
|
|
176
|
-
/**
|
|
177
|
-
* Core vocabulary
|
|
178
|
-
*
|
|
179
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-01
|
|
180
|
-
*/
|
|
181
|
-
get $comment(): StringElement | undefined;
|
|
182
|
-
set $comment($comment: StringElement | undefined);
|
|
183
|
-
/**
|
|
184
|
-
* Validation vocabulary
|
|
185
|
-
*
|
|
186
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01
|
|
187
|
-
*/
|
|
188
|
-
/**
|
|
189
|
-
* Keywords for Applying Subschemas Conditionally
|
|
190
|
-
*
|
|
191
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
192
|
-
*/
|
|
193
|
-
get if(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
194
|
-
set if(ifValue: this | BooleanElement | JSONReferenceElement | undefined);
|
|
195
|
-
get then(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
196
|
-
set then(then: this | BooleanElement | JSONReferenceElement | undefined);
|
|
197
|
-
get else(): this | BooleanElement | JSONReferenceElement | undefined;
|
|
198
|
-
set else(elseValue: this | BooleanElement | JSONReferenceElement | undefined);
|
|
199
|
-
/**
|
|
200
|
-
* String-Encoding Non-JSON Data
|
|
201
|
-
*
|
|
202
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-00#section-8
|
|
203
|
-
*/
|
|
204
|
-
get contentEncoding(): StringElement | undefined;
|
|
205
|
-
set contentEncoding(contentEncoding: StringElement | undefined);
|
|
206
|
-
get contentMediaType(): StringElement | undefined;
|
|
207
|
-
set contentMediaType(contentMediaType: StringElement | undefined);
|
|
208
|
-
get media(): MediaElement | undefined;
|
|
209
|
-
set media(media: MediaElement | undefined);
|
|
210
|
-
/**
|
|
211
|
-
* Schema annotations
|
|
212
|
-
*
|
|
213
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-10
|
|
214
|
-
*/
|
|
215
|
-
get writeOnly(): BooleanElement | undefined;
|
|
216
|
-
set writeOnly(writeOnly: BooleanElement | undefined);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-wright-json-schema-hyperschema-01#section-6
|
|
221
|
-
*/
|
|
222
|
-
declare class LinkDescription extends LinkDescriptionElement {
|
|
223
|
-
/**
|
|
224
|
-
* Link context.
|
|
225
|
-
*
|
|
226
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.1
|
|
227
|
-
*/
|
|
228
|
-
get anchor(): StringElement | undefined;
|
|
229
|
-
set anchor(anchor: StringElement | undefined);
|
|
230
|
-
get anchorPointer(): StringElement | undefined;
|
|
231
|
-
set anchorPointer(anchorPointer: StringElement | undefined);
|
|
232
|
-
/**
|
|
233
|
-
* Adjusting URI Template Resolution.
|
|
234
|
-
*
|
|
235
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.4
|
|
236
|
-
*/
|
|
237
|
-
get templatePointers(): ObjectElement | undefined;
|
|
238
|
-
set templatePointers(templatePointers: ObjectElement | undefined);
|
|
239
|
-
get templateRequired(): ArrayElement | undefined;
|
|
240
|
-
set templateRequired(templateRequired: ArrayElement | undefined);
|
|
241
|
-
/**
|
|
242
|
-
* Link Target Attributes.
|
|
243
|
-
*
|
|
244
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.5
|
|
245
|
-
*/
|
|
246
|
-
get mediaType(): StringElement | undefined;
|
|
247
|
-
set mediaType(mediaType: StringElement | undefined);
|
|
248
|
-
get targetMediaType(): StringElement | undefined;
|
|
249
|
-
set targetMediaType(targetMediaType: StringElement | undefined);
|
|
250
|
-
get targetHints(): ObjectElement | undefined;
|
|
251
|
-
set targetHints(targetHints: ObjectElement | undefined);
|
|
252
|
-
get description(): StringElement | undefined;
|
|
253
|
-
set description(description: StringElement | undefined);
|
|
254
|
-
get $comment(): StringElement | undefined;
|
|
255
|
-
set $comment($comment: StringElement | undefined);
|
|
256
|
-
/**
|
|
257
|
-
* Submitting Data for Processing.
|
|
258
|
-
*
|
|
259
|
-
* URI: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-hyperschema-01#section-6.6.4
|
|
260
|
-
*/
|
|
261
|
-
get submissionEncType(): StringElement | undefined;
|
|
262
|
-
set submissionEncType(submissionEncType: StringElement | undefined);
|
|
263
|
-
get submissionMediaType(): StringElement | undefined;
|
|
264
|
-
set submissionMediaType(submissionMediaType: StringElement | undefined);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
declare const isJSONSchemaElement: _swagger_api_apidom_core.ElementPredicate<JSONSchema>;
|
|
268
|
-
declare const isLinkDescriptionElement: _swagger_api_apidom_core.ElementPredicate<LinkDescription>;
|
|
269
|
-
|
|
270
|
-
interface JSONSchemaVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
|
|
271
|
-
}
|
|
272
|
-
declare const JSONSchemaVisitor_base: ts_mixer_dist_types_types_js.Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
|
|
273
|
-
declare class JSONSchemaVisitor extends JSONSchemaVisitor_base {
|
|
274
|
-
element: JSONSchema;
|
|
275
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
276
|
-
constructor(options: JSONSchemaVisitorOptions);
|
|
277
|
-
ObjectElement(objectElement: ObjectElement): {};
|
|
278
|
-
BooleanElement(booleanElement: BooleanElement): {};
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
interface LinkDescriptionVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
|
|
282
|
-
}
|
|
283
|
-
declare const LinkDescriptionVisitor_base: ts_mixer_dist_types_types_js.Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
|
|
284
|
-
declare class LinkDescriptionVisitor extends LinkDescriptionVisitor_base {
|
|
285
|
-
readonly element: LinkDescription;
|
|
286
|
-
protected readonly specPath: SpecPath<['document', 'objects', 'LinkDescription']>;
|
|
287
|
-
constructor(options: LinkDescriptionVisitorOptions);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
declare const getNodeType: <T extends Element>(element: T) => string | undefined;
|
|
291
|
-
declare const keyMap: {
|
|
292
|
-
ObjectElement: string[];
|
|
293
|
-
ArrayElement: string[];
|
|
294
|
-
MemberElement: string[];
|
|
295
|
-
StringElement: never[];
|
|
296
|
-
BooleanElement: never[];
|
|
297
|
-
NumberElement: never[];
|
|
298
|
-
NullElement: never[];
|
|
299
|
-
RefElement: never[];
|
|
300
|
-
LinkElement: never[];
|
|
301
|
-
Annotation: never[];
|
|
302
|
-
Comment: never[];
|
|
303
|
-
ParseResultElement: string[];
|
|
304
|
-
SourceMap: string[];
|
|
305
|
-
JSONSchemaDraft7Element: string[];
|
|
306
|
-
JSONReferenceElement: string[];
|
|
307
|
-
LinkDescriptionElement: string[];
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
export { JSONSchemaDraft7MediaTypes, JSONSchema as JSONSchemaElement, JSONSchemaVisitor, type JSONSchemaVisitorOptions, LinkDescription as LinkDescriptionElement, LinkDescriptionVisitor, type LinkDescriptionVisitorOptions, createRefractor, jsonSchemaDraft7 as default, getNodeType, isJSONSchemaElement, isLinkDescriptionElement, keyMap, mediaTypes, refract, plugin as refractorPluginReplaceEmptyElement, _default as specificationObj };
|