@speclynx/apidom-ns-json-schema-draft-7 4.0.2 → 4.0.3

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +8 -9
  3. package/src/elements/JSONSchema.cjs +122 -0
  4. package/src/elements/JSONSchema.mjs +119 -0
  5. package/src/elements/JSONSchema.ts +166 -0
  6. package/src/elements/LinkDescription.cjs +138 -0
  7. package/src/elements/LinkDescription.mjs +134 -0
  8. package/src/elements/LinkDescription.ts +194 -0
  9. package/src/index.cjs +42 -0
  10. package/src/index.mjs +13 -0
  11. package/src/index.ts +79 -0
  12. package/src/media-types.cjs +34 -0
  13. package/src/media-types.mjs +30 -0
  14. package/src/media-types.ts +40 -0
  15. package/src/namespace.cjs +23 -0
  16. package/src/namespace.mjs +18 -0
  17. package/src/namespace.ts +22 -0
  18. package/src/predicates.cjs +22 -0
  19. package/src/predicates.mjs +13 -0
  20. package/src/predicates.ts +20 -0
  21. package/src/refractor/index.cjs +76 -0
  22. package/src/refractor/index.mjs +67 -0
  23. package/src/refractor/index.ts +90 -0
  24. package/src/refractor/inspect.cjs +46 -0
  25. package/src/refractor/inspect.mjs +39 -0
  26. package/src/refractor/inspect.ts +51 -0
  27. package/src/refractor/plugins/replace-empty-element.cjs +235 -0
  28. package/src/refractor/plugins/replace-empty-element.mjs +229 -0
  29. package/src/refractor/plugins/replace-empty-element.ts +260 -0
  30. package/src/refractor/specification.cjs +15 -0
  31. package/src/refractor/specification.mjs +10 -0
  32. package/src/refractor/specification.ts +88 -0
  33. package/src/refractor/toolbox.cjs +26 -0
  34. package/src/refractor/toolbox.mjs +19 -0
  35. package/src/refractor/toolbox.ts +23 -0
  36. package/src/refractor/visitors/json-schema/index.cjs +20 -0
  37. package/src/refractor/visitors/json-schema/index.mjs +15 -0
  38. package/src/refractor/visitors/json-schema/index.ts +27 -0
  39. package/src/refractor/visitors/json-schema/link-description/index.cjs +17 -0
  40. package/src/refractor/visitors/json-schema/link-description/index.mjs +12 -0
  41. package/src/refractor/visitors/json-schema/link-description/index.ts +22 -0
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-6");
7
+ var _JSONSchema = _interopRequireDefault(require("../../../elements/JSONSchema.cjs"));
8
+ /**
9
+ * @public
10
+ */
11
+ class JSONSchemaVisitor extends _apidomNsJsonSchemaDraft.JSONSchemaVisitor {
12
+ constructor(options) {
13
+ super(options);
14
+ this.element = new _JSONSchema.default();
15
+ }
16
+ get defaultDialectIdentifier() {
17
+ return 'http://json-schema.org/draft-07/schema#';
18
+ }
19
+ }
20
+ var _default = exports.default = JSONSchemaVisitor;
@@ -0,0 +1,15 @@
1
+ import { JSONSchemaVisitor as JSONSchemaDraft6Visitor } from '@speclynx/apidom-ns-json-schema-draft-6';
2
+ import JSONSchemaElement from "../../../elements/JSONSchema.mjs";
3
+ /**
4
+ * @public
5
+ */
6
+ class JSONSchemaVisitor extends JSONSchemaDraft6Visitor {
7
+ constructor(options) {
8
+ super(options);
9
+ this.element = new JSONSchemaElement();
10
+ }
11
+ get defaultDialectIdentifier() {
12
+ return 'http://json-schema.org/draft-07/schema#';
13
+ }
14
+ }
15
+ export default JSONSchemaVisitor;
@@ -0,0 +1,27 @@
1
+ import { BooleanElement } from '@speclynx/apidom-datamodel';
2
+ import {
3
+ JSONSchemaVisitor as JSONSchemaDraft6Visitor,
4
+ JSONSchemaVisitorOptions,
5
+ } from '@speclynx/apidom-ns-json-schema-draft-6';
6
+
7
+ import JSONSchemaElement from '../../../elements/JSONSchema.ts';
8
+
9
+ export type { JSONSchemaVisitorOptions };
10
+
11
+ /**
12
+ * @public
13
+ */
14
+ class JSONSchemaVisitor extends JSONSchemaDraft6Visitor {
15
+ declare public element: JSONSchemaElement | BooleanElement;
16
+
17
+ constructor(options: JSONSchemaVisitorOptions) {
18
+ super(options);
19
+ this.element = new JSONSchemaElement();
20
+ }
21
+
22
+ get defaultDialectIdentifier(): string {
23
+ return 'http://json-schema.org/draft-07/schema#';
24
+ }
25
+ }
26
+
27
+ export default JSONSchemaVisitor;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ exports.__esModule = true;
5
+ exports.default = void 0;
6
+ var _apidomNsJsonSchemaDraft = require("@speclynx/apidom-ns-json-schema-draft-6");
7
+ var _LinkDescription = _interopRequireDefault(require("../../../../elements/LinkDescription.cjs"));
8
+ /**
9
+ * @public
10
+ */
11
+ class LinkDescriptionVisitor extends _apidomNsJsonSchemaDraft.LinkDescriptionVisitor {
12
+ constructor(options) {
13
+ super(options);
14
+ this.element = new _LinkDescription.default();
15
+ }
16
+ }
17
+ var _default = exports.default = LinkDescriptionVisitor;
@@ -0,0 +1,12 @@
1
+ import { LinkDescriptionVisitor as JSONSchemaDraft6LinkDescriptionVisitor } from '@speclynx/apidom-ns-json-schema-draft-6';
2
+ import LinkDescriptionElement from "../../../../elements/LinkDescription.mjs";
3
+ /**
4
+ * @public
5
+ */
6
+ class LinkDescriptionVisitor extends JSONSchemaDraft6LinkDescriptionVisitor {
7
+ constructor(options) {
8
+ super(options);
9
+ this.element = new LinkDescriptionElement();
10
+ }
11
+ }
12
+ export default LinkDescriptionVisitor;
@@ -0,0 +1,22 @@
1
+ import {
2
+ LinkDescriptionVisitor as JSONSchemaDraft6LinkDescriptionVisitor,
3
+ LinkDescriptionVisitorOptions,
4
+ } from '@speclynx/apidom-ns-json-schema-draft-6';
5
+
6
+ import LinkDescriptionElement from '../../../../elements/LinkDescription.ts';
7
+
8
+ export type { LinkDescriptionVisitorOptions };
9
+
10
+ /**
11
+ * @public
12
+ */
13
+ class LinkDescriptionVisitor extends JSONSchemaDraft6LinkDescriptionVisitor {
14
+ declare public readonly element: LinkDescriptionElement;
15
+
16
+ constructor(options: LinkDescriptionVisitorOptions) {
17
+ super(options);
18
+ this.element = new LinkDescriptionElement();
19
+ }
20
+ }
21
+
22
+ export default LinkDescriptionVisitor;