@squiz/dx-json-schema-lib 1.2.13-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/jest.config.ts +20 -0
  3. package/jsonCompiler.ts +22 -0
  4. package/lib/JsonValidationService.d.ts +9 -0
  5. package/lib/JsonValidationService.js +54 -0
  6. package/lib/JsonValidationService.js.map +1 -0
  7. package/lib/JsonValidationService.spec.d.ts +1 -0
  8. package/lib/JsonValidationService.spec.js +143 -0
  9. package/lib/JsonValidationService.spec.js.map +1 -0
  10. package/lib/errors/SchemaValidationError.d.ts +4 -0
  11. package/lib/errors/SchemaValidationError.js +12 -0
  12. package/lib/errors/SchemaValidationError.js.map +1 -0
  13. package/lib/formatted-text/v1/formattedText.d.ts +51 -0
  14. package/lib/formatted-text/v1/formattedText.js +9 -0
  15. package/lib/formatted-text/v1/formattedText.js.map +1 -0
  16. package/lib/formatted-text/v1/formattedText.json +134 -0
  17. package/lib/formatted-text/v1/formattedTextModels.d.ts +1 -0
  18. package/lib/formatted-text/v1/formattedTextModels.js +28 -0
  19. package/lib/formatted-text/v1/formattedTextModels.js.map +1 -0
  20. package/lib/formatted-text/v1/formattedTextSchemas.d.ts +2 -0
  21. package/lib/formatted-text/v1/formattedTextSchemas.js +9 -0
  22. package/lib/formatted-text/v1/formattedTextSchemas.js.map +1 -0
  23. package/lib/index.d.ts +7 -0
  24. package/lib/index.js +37 -0
  25. package/lib/index.js.map +1 -0
  26. package/lib/manifest/v1/DxComponentIcons.json +2279 -0
  27. package/lib/manifest/v1/DxComponentInputSchema.json +20 -0
  28. package/lib/manifest/v1/DxComponentInputSchema.spec.d.ts +1 -0
  29. package/lib/manifest/v1/DxComponentInputSchema.spec.js +113 -0
  30. package/lib/manifest/v1/DxComponentInputSchema.spec.js.map +1 -0
  31. package/lib/manifest/v1/DxContentMetaSchema.json +165 -0
  32. package/lib/manifest/v1/__test__/schemas/badFunctionInputComponent.json +39 -0
  33. package/lib/manifest/v1/__test__/schemas/badNestedFunctionInput.json +39 -0
  34. package/lib/manifest/v1/__test__/schemas/nonObjectFunctionInputComponent.json +39 -0
  35. package/lib/manifest/v1/__test__/schemas/validComponent.json +40 -0
  36. package/lib/manifest/v1/manifestModels.d.ts +1 -0
  37. package/lib/manifest/v1/manifestModels.js +28 -0
  38. package/lib/manifest/v1/manifestModels.js.map +1 -0
  39. package/lib/manifest/v1/manifestSchemas.d.ts +2 -0
  40. package/lib/manifest/v1/manifestSchemas.js +9 -0
  41. package/lib/manifest/v1/manifestSchemas.js.map +1 -0
  42. package/lib/manifest/v1/subSchemas.d.ts +4 -0
  43. package/lib/manifest/v1/subSchemas.js +13 -0
  44. package/lib/manifest/v1/subSchemas.js.map +1 -0
  45. package/lib/manifest/v1/v1.d.ts +460 -0
  46. package/lib/manifest/v1/v1.js +9 -0
  47. package/lib/manifest/v1/v1.js.map +1 -0
  48. package/lib/manifest/v1/v1.json +362 -0
  49. package/lib/manifest/v1/v1.spec.d.ts +1 -0
  50. package/lib/manifest/v1/v1.spec.js +35 -0
  51. package/lib/manifest/v1/v1.spec.js.map +1 -0
  52. package/package.json +36 -0
  53. package/src/JsonValidationService.spec.ts +162 -0
  54. package/src/JsonValidationService.ts +54 -0
  55. package/src/errors/SchemaValidationError.ts +9 -0
  56. package/src/formatted-text/v1/formattedText.json +145 -0
  57. package/src/formatted-text/v1/formattedText.ts +54 -0
  58. package/src/formatted-text/v1/formattedTextModels.ts +1 -0
  59. package/src/formatted-text/v1/formattedTextSchemas.ts +3 -0
  60. package/src/index.ts +10 -0
  61. package/src/manifest/v1/DxComponentIcons.json +2279 -0
  62. package/src/manifest/v1/DxComponentInputSchema.json +20 -0
  63. package/src/manifest/v1/DxComponentInputSchema.spec.ts +136 -0
  64. package/src/manifest/v1/DxContentMetaSchema.json +165 -0
  65. package/src/manifest/v1/__test__/schemas/badFunctionInputComponent.json +39 -0
  66. package/src/manifest/v1/__test__/schemas/badNestedFunctionInput.json +39 -0
  67. package/src/manifest/v1/__test__/schemas/nonObjectFunctionInputComponent.json +39 -0
  68. package/src/manifest/v1/__test__/schemas/validComponent.json +40 -0
  69. package/src/manifest/v1/manifestModels.ts +1 -0
  70. package/src/manifest/v1/manifestSchemas.ts +3 -0
  71. package/src/manifest/v1/subSchemas.ts +5 -0
  72. package/src/manifest/v1/v1.json +369 -0
  73. package/src/manifest/v1/v1.spec.ts +39 -0
  74. package/src/manifest/v1/v1.ts +2731 -0
  75. package/tsconfig.json +16 -0
  76. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "DxComponentInputSchema.json",
4
+ "title": "DxComponentInputSchema",
5
+ "description": "Input schema for a DxComponent",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "const": "object"
10
+ },
11
+ "additionalProperties": {
12
+ "default": false
13
+ }
14
+ },
15
+ "allOf": [
16
+ {
17
+ "$ref": "DxContentMetaSchema.json"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const JsonValidationService_1 = require("../../JsonValidationService");
4
+ describe('DxComponentInputSchema', () => {
5
+ let jsonValidationService;
6
+ beforeAll(() => {
7
+ jsonValidationService = new JsonValidationService_1.JsonValidationService();
8
+ });
9
+ it('should allow empty object', () => {
10
+ expect(() => jsonValidationService.validateContentSchema({})).not.toThrowError();
11
+ });
12
+ it('should require required if properties is specified', () => {
13
+ expect(() => jsonValidationService.validateContentSchema({
14
+ properties: {
15
+ foo: {
16
+ type: 'string',
17
+ },
18
+ },
19
+ })).toThrowError();
20
+ });
21
+ it('should pass if required and properties are specified', () => {
22
+ expect(() => jsonValidationService.validateContentSchema({
23
+ required: ['foo'],
24
+ properties: {
25
+ foo: {
26
+ type: 'string',
27
+ },
28
+ },
29
+ })).not.toThrowError();
30
+ });
31
+ it('should error if type is not "object"', () => {
32
+ expect(() => jsonValidationService.validateContentSchema({
33
+ type: 'string',
34
+ })).toThrowError();
35
+ });
36
+ it('should allow a nested type to be "FormattedText"', () => {
37
+ expect(() => jsonValidationService.validateContentSchema({
38
+ type: 'object',
39
+ properties: {
40
+ foo: {
41
+ type: 'FormattedText',
42
+ },
43
+ },
44
+ required: ['foo'],
45
+ })).not.toThrowError();
46
+ });
47
+ it('should error on unknown keywords', () => {
48
+ expect(() => jsonValidationService.validateContentSchema({
49
+ type: 'object',
50
+ foo: 'bar',
51
+ })).toThrowError();
52
+ });
53
+ it('should allow a nested property to be an array of of objects which have a property of type to be "FormattedText" that is required', () => {
54
+ expect(() => jsonValidationService.validateContentSchema({
55
+ type: 'object',
56
+ properties: {
57
+ foo: {
58
+ type: 'array',
59
+ items: {
60
+ type: 'object',
61
+ properties: {
62
+ bar: {
63
+ type: 'FormattedText',
64
+ },
65
+ },
66
+ required: ['bar'],
67
+ },
68
+ },
69
+ },
70
+ required: ['foo'],
71
+ })).not.toThrowError();
72
+ });
73
+ it('should error if any nested object does not have a required property', () => {
74
+ expect(() => jsonValidationService.validateContentSchema({
75
+ type: 'object',
76
+ properties: {
77
+ foo: {
78
+ type: 'array',
79
+ items: {
80
+ type: 'object',
81
+ properties: {
82
+ bar: {
83
+ type: 'FormattedText',
84
+ },
85
+ },
86
+ },
87
+ },
88
+ },
89
+ required: ['foo'],
90
+ })).toThrowError();
91
+ });
92
+ it('should succeed if required is on every nested object', () => {
93
+ expect(() => jsonValidationService.validateContentSchema({
94
+ type: 'object',
95
+ properties: {
96
+ foo: {
97
+ type: 'array',
98
+ items: {
99
+ type: 'object',
100
+ properties: {
101
+ bar: {
102
+ type: 'FormattedText',
103
+ },
104
+ },
105
+ required: ['bar'],
106
+ },
107
+ },
108
+ },
109
+ required: ['foo'],
110
+ })).not.toThrowError();
111
+ });
112
+ });
113
+ //# sourceMappingURL=DxComponentInputSchema.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DxComponentInput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AU,EAAE;4BACV,GAAG,EAAE;gCACH,IAAI,EAAE,eAAe;6BACtB;yBACF;qBACF;iBACF;aACF;YACD,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB,CAAC,CACH,CAAC,YAAY,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,MAAM,CAAC,GAAG,EAAE,CACV,qBAAqB,CAAC,qBAAqB,CAAC;YAC1C,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE;oBACH,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,GAAG,EAAE;gCACH,IAAI,EAAE,eAAe;6BACtB;yBACF;wBACD,QAAQ,EAAE,CAAC,KAAK,CAAC;qBAClB;iBACF;aACF;YACD,QAAQ,EAAE,CAAC,KAAK,CAAC;SAClB,CAAC,CACH,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,165 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "DxContentMetaSchema.json",
4
+ "title": "Core schema meta-schema",
5
+ "definitions": {
6
+ "schemaArray": {
7
+ "type": "array",
8
+ "minItems": 1,
9
+ "items": { "$ref": "#" }
10
+ },
11
+ "nonNegativeInteger": {
12
+ "type": "integer",
13
+ "minimum": 0
14
+ },
15
+ "nonNegativeIntegerDefault0": {
16
+ "allOf": [{ "$ref": "#/definitions/nonNegativeInteger" }, { "default": 0 }]
17
+ },
18
+ "simpleTypes": {
19
+ "enum": ["array", "boolean", "integer", "null", "number", "object", "string", "FormattedText"]
20
+ },
21
+ "stringArray": {
22
+ "type": "array",
23
+ "items": { "type": "string" },
24
+ "uniqueItems": true,
25
+ "default": []
26
+ }
27
+ },
28
+ "type": ["object", "boolean"],
29
+ "properties": {
30
+ "$id": {
31
+ "type": "string",
32
+ "format": "uri-reference"
33
+ },
34
+ "$schema": {
35
+ "type": "string",
36
+ "format": "uri"
37
+ },
38
+ "$ref": {
39
+ "type": "string",
40
+ "format": "uri-reference"
41
+ },
42
+ "$comment": {
43
+ "type": "string"
44
+ },
45
+ "title": {
46
+ "type": "string"
47
+ },
48
+ "description": {
49
+ "type": "string"
50
+ },
51
+ "default": true,
52
+ "readOnly": {
53
+ "type": "boolean",
54
+ "default": false
55
+ },
56
+ "writeOnly": {
57
+ "type": "boolean",
58
+ "default": false
59
+ },
60
+ "examples": {
61
+ "type": "array",
62
+ "items": true
63
+ },
64
+ "multipleOf": {
65
+ "type": "number",
66
+ "exclusiveMinimum": 0
67
+ },
68
+ "maximum": {
69
+ "type": "number"
70
+ },
71
+ "exclusiveMaximum": {
72
+ "type": "number"
73
+ },
74
+ "minimum": {
75
+ "type": "number"
76
+ },
77
+ "exclusiveMinimum": {
78
+ "type": "number"
79
+ },
80
+ "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
81
+ "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
82
+ "pattern": {
83
+ "type": "string",
84
+ "format": "regex"
85
+ },
86
+ "additionalItems": { "$ref": "#" },
87
+ "items": {
88
+ "anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/schemaArray" }],
89
+ "default": true
90
+ },
91
+ "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
92
+ "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
93
+ "uniqueItems": {
94
+ "type": "boolean",
95
+ "default": false
96
+ },
97
+ "contains": { "$ref": "#" },
98
+ "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
99
+ "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
100
+ "required": { "$ref": "#/definitions/stringArray" },
101
+ "additionalProperties": { "$ref": "#" },
102
+ "definitions": {
103
+ "type": "object",
104
+ "additionalProperties": { "$ref": "#" },
105
+ "default": {}
106
+ },
107
+ "properties": {
108
+ "type": "object",
109
+ "additionalProperties": { "$ref": "#" },
110
+ "default": {}
111
+ },
112
+ "patternProperties": {
113
+ "type": "object",
114
+ "additionalProperties": { "$ref": "#" },
115
+ "propertyNames": { "format": "regex" },
116
+ "default": {}
117
+ },
118
+ "dependencies": {
119
+ "type": "object",
120
+ "additionalProperties": {
121
+ "anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/stringArray" }]
122
+ }
123
+ },
124
+ "propertyNames": { "$ref": "#" },
125
+ "const": true,
126
+ "enum": {
127
+ "type": "array",
128
+ "items": true,
129
+ "minItems": 1,
130
+ "uniqueItems": true
131
+ },
132
+ "type": {
133
+ "anyOf": [
134
+ { "$ref": "#/definitions/simpleTypes" },
135
+ {
136
+ "type": "array",
137
+ "items": { "$ref": "#/definitions/simpleTypes" },
138
+ "minItems": 1,
139
+ "uniqueItems": true
140
+ }
141
+ ]
142
+ },
143
+ "format": { "type": "string" },
144
+ "contentMediaType": { "type": "string" },
145
+ "contentEncoding": { "type": "string" },
146
+ "if": { "$ref": "#" },
147
+ "then": { "$ref": "#" },
148
+ "else": { "$ref": "#" },
149
+ "allOf": { "$ref": "#/definitions/schemaArray" },
150
+ "anyOf": { "$ref": "#/definitions/schemaArray" },
151
+ "oneOf": { "$ref": "#/definitions/schemaArray" },
152
+ "not": { "$ref": "#" }
153
+ },
154
+ "additionalProperties": false,
155
+ "dependencies": {
156
+ "properties": {
157
+ "properties": {
158
+ "required": {
159
+ "$ref": "#/definitions/stringArray"
160
+ }
161
+ },
162
+ "required": ["required"]
163
+ }
164
+ }
165
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "../../v1.json",
3
+ "description": "t",
4
+ "displayName": "t",
5
+ "name": "test",
6
+ "namespace": "other",
7
+ "mainFunction": "main",
8
+ "version": "1.0.4",
9
+ "environment": [],
10
+ "functions": [
11
+ {
12
+ "entry": "main.js",
13
+ "name": "main",
14
+ "output": {
15
+ "responseType": "html"
16
+ },
17
+ "input": {
18
+ "type": "object",
19
+ "properties": {
20
+ "textValue": {
21
+ "type": "badInputType"
22
+ },
23
+ "anotherValue": {
24
+ "type": "object",
25
+ "properties": {
26
+ "xt": {
27
+ "type": "FormattedText"
28
+ }
29
+ },
30
+ "additionalProperties": {
31
+ "type": "FormattedText"
32
+ }
33
+ }
34
+ },
35
+ "required": []
36
+ }
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "../../v1.json",
3
+ "description": "t",
4
+ "displayName": "t",
5
+ "name": "test",
6
+ "namespace": "other",
7
+ "mainFunction": "main",
8
+ "version": "1.0.4",
9
+ "environment": [],
10
+ "functions": [
11
+ {
12
+ "entry": "main.js",
13
+ "name": "main",
14
+ "output": {
15
+ "responseType": "html"
16
+ },
17
+ "input": {
18
+ "type": "object",
19
+ "properties": {
20
+ "textValue": {
21
+ "type": "string"
22
+ },
23
+ "anotherValue": {
24
+ "type": "object",
25
+ "properties": {
26
+ "xt": {
27
+ "type": "astd"
28
+ }
29
+ },
30
+ "additionalProperties": {
31
+ "type": "FormattedText"
32
+ }
33
+ }
34
+ },
35
+ "required": []
36
+ }
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "../../v1.json",
3
+ "description": "t",
4
+ "displayName": "t",
5
+ "name": "test",
6
+ "namespace": "other",
7
+ "mainFunction": "main",
8
+ "version": "1.0.4",
9
+ "environment": [],
10
+ "functions": [
11
+ {
12
+ "entry": "main.js",
13
+ "name": "main",
14
+ "output": {
15
+ "responseType": "html"
16
+ },
17
+ "input": {
18
+ "type": "string",
19
+ "properties": {
20
+ "textValue": {
21
+ "type": "FormattedText"
22
+ },
23
+ "anotherValue": {
24
+ "type": "object",
25
+ "properties": {
26
+ "xt": {
27
+ "type": "FormattedText"
28
+ }
29
+ },
30
+ "additionalProperties": {
31
+ "type": "FormattedText"
32
+ }
33
+ }
34
+ },
35
+ "required": []
36
+ }
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "../../v1.json",
3
+ "description": "t",
4
+ "displayName": "t",
5
+ "name": "test",
6
+ "namespace": "other",
7
+ "mainFunction": "main",
8
+ "version": "1.0.4",
9
+ "environment": [],
10
+ "functions": [
11
+ {
12
+ "entry": "main.js",
13
+ "name": "main",
14
+ "output": {
15
+ "responseType": "html"
16
+ },
17
+ "input": {
18
+ "type": "object",
19
+ "properties": {
20
+ "textValue": {
21
+ "type": "FormattedText"
22
+ },
23
+ "anotherValue": {
24
+ "type": "object",
25
+ "properties": {
26
+ "xt": {
27
+ "type": "FormattedText"
28
+ }
29
+ },
30
+ "required": [],
31
+ "additionalProperties": {
32
+ "type": "FormattedText"
33
+ }
34
+ }
35
+ },
36
+ "required": []
37
+ }
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1 @@
1
+ export * as v1 from './v1';
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
28
+ //# sourceMappingURL=manifestModels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifestModels.js","sourceRoot":"","sources":["../../../src/manifest/v1/manifestModels.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2B"}
@@ -0,0 +1,2 @@
1
+ import v1 from './v1.json';
2
+ export { v1 };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.v1 = void 0;
7
+ const v1_json_1 = __importDefault(require("./v1.json"));
8
+ exports.v1 = v1_json_1.default;
9
+ //# sourceMappingURL=manifestSchemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifestSchemas.js","sourceRoot":"","sources":["../../../src/manifest/v1/manifestSchemas.ts"],"names":[],"mappings":";;;;;;AAAA,wDAA2B;AAElB,aAFF,iBAAE,CAEE"}
@@ -0,0 +1,4 @@
1
+ import DxComponentIcons from './DxComponentIcons.json';
2
+ import DxComponentInputSchema from './DxComponentInputSchema.json';
3
+ import DxContentMetaSchema from './DxContentMetaSchema.json';
4
+ export { DxComponentIcons, DxComponentInputSchema, DxContentMetaSchema };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DxContentMetaSchema = exports.DxComponentInputSchema = exports.DxComponentIcons = void 0;
7
+ const DxComponentIcons_json_1 = __importDefault(require("./DxComponentIcons.json"));
8
+ exports.DxComponentIcons = DxComponentIcons_json_1.default;
9
+ const DxComponentInputSchema_json_1 = __importDefault(require("./DxComponentInputSchema.json"));
10
+ exports.DxComponentInputSchema = DxComponentInputSchema_json_1.default;
11
+ const DxContentMetaSchema_json_1 = __importDefault(require("./DxContentMetaSchema.json"));
12
+ exports.DxContentMetaSchema = DxContentMetaSchema_json_1.default;
13
+ //# sourceMappingURL=subSchemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subSchemas.js","sourceRoot":"","sources":["../../../src/manifest/v1/subSchemas.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAuD;AAI9C,2BAJF,+BAAgB,CAIE;AAHzB,gGAAmE;AAGxC,iCAHpB,qCAAsB,CAGoB;AAFjD,0FAA6D;AAEV,8BAF5C,kCAAmB,CAE4C"}