@squiz/dx-json-schema-lib 1.79.0 → 1.80.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/jest.config.ts +13 -2
- package/lib/JsonSchemaService.d.ts +34 -0
- package/lib/JsonSchemaService.js +140 -0
- package/lib/JsonSchemaService.js.map +1 -0
- package/lib/JsonSchemaService.spec.d.ts +1 -0
- package/lib/JsonSchemaService.spec.js +1807 -0
- package/lib/JsonSchemaService.spec.js.map +1 -0
- package/lib/JsonValidationService.d.ts +11 -33
- package/lib/JsonValidationService.js +43 -194
- package/lib/JsonValidationService.js.map +1 -1
- package/lib/JsonValidationService.spec.js +19 -1800
- package/lib/JsonValidationService.spec.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/jsonTypeResolution/TypeResolver.d.ts +0 -1
- package/lib/jsonTypeResolution/TypeResolver.js +0 -3
- package/lib/jsonTypeResolution/TypeResolver.js.map +1 -1
- package/lib/jsonTypeResolution/TypeResolver.spec.js +10 -0
- package/lib/jsonTypeResolution/TypeResolver.spec.js.map +1 -1
- package/lib/manifest/v1/DxComponentInputSchema.spec.js +18 -0
- package/lib/manifest/v1/DxComponentInputSchema.spec.js.map +1 -1
- package/lib/manifest/v1/DxContentMetaSchema.json +24 -32
- package/lib/manifest/v1/JobV1.d.ts +23 -18
- package/lib/manifest/v1/__test__/schemas/invalidUiMetadata.json +31 -0
- package/lib/manifest/v1/v1.d.ts +23 -18
- package/lib/manifest/v1/v1.spec.js +3 -66
- package/lib/manifest/v1/v1.spec.js.map +1 -1
- package/lib/processValidationResult.d.ts +2 -0
- package/lib/processValidationResult.js +24 -0
- package/lib/processValidationResult.js.map +1 -0
- package/lib/validators/customKeywordValidators.d.ts +2 -0
- package/lib/validators/customKeywordValidators.js +47 -0
- package/lib/validators/customKeywordValidators.js.map +1 -0
- package/lib/validators/customKeywordValidators.spec.d.ts +1 -0
- package/lib/validators/customKeywordValidators.spec.js +100 -0
- package/lib/validators/customKeywordValidators.spec.js.map +1 -0
- package/package.json +1 -1
- package/src/JsonSchemaService.spec.ts +2198 -0
- package/src/JsonSchemaService.ts +159 -0
- package/src/JsonValidationService.spec.ts +26 -2195
- package/src/JsonValidationService.ts +64 -226
- package/src/index.ts +1 -0
- package/src/jsonTypeResolution/TypeResolver.spec.ts +12 -0
- package/src/jsonTypeResolution/TypeResolver.ts +0 -4
- package/src/manifest/v1/DxComponentInputSchema.spec.ts +21 -0
- package/src/manifest/v1/DxContentMetaSchema.json +24 -32
- package/src/manifest/v1/JobV1.ts +23 -23
- package/src/manifest/v1/__test__/schemas/invalidUiMetadata.json +31 -0
- package/src/manifest/v1/v1.spec.ts +3 -73
- package/src/manifest/v1/v1.ts +23 -23
- package/src/processValidationResult.ts +20 -0
- package/src/validators/customKeywordValidators.spec.ts +171 -0
- package/src/validators/customKeywordValidators.ts +53 -0
- package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"JsonSchemaService.spec.js","sourceRoot":"","sources":["../src/JsonSchemaService.spec.ts"],"names":[],"mappings":";;AAAA,2DAAkF;AAClF,0EAAuE;AAIvE,oEAM2C;AAC3C,qDAAoF;AACpF,kFAA+E;AAE/E,uDAAyE;AAEzE,SAAS,wCAAwC;AAC/C,wDAAwD;AACxD,QAAkB;AAClB,wDAAwD;AACxD,SAAmB,EACnB,OAAe,EACf,kBAAwB;IAExB,IAAI,KAAK,GAAiC,IAAI,CAAC;IAE/C,IAAI;QACF,QAAQ,EAAE,CAAC;KACZ;IAAC,OAAO,CAAM,EAAE;QACf,KAAK,GAAG,CAAC,CAAC;KACX;IAED,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,SA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qBAAqB,CAAC,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,sBAAsB,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1,42 +1,20 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import { JSONSchema, Draft, DraftConfig } from '@squiz/json-schema-library';
|
2
|
+
export declare const defaultConfig: DraftConfig;
|
3
|
+
/**
|
4
|
+
* @deprecated Only used for FormattedText resolution
|
5
|
+
*/
|
4
6
|
export declare const ComponentInputSchema: Draft;
|
5
|
-
export declare const RenderInputSchema: Draft;
|
6
|
-
export declare const ComponentInputMetaSchema: MetaSchemaInput;
|
7
|
-
export declare const RenderInputMetaSchema: MetaSchemaInput;
|
8
|
-
export declare const ManifestV1MetaSchema: MetaSchemaInput;
|
9
|
-
interface MetaSchemaInput {
|
10
|
-
root: JSONSchema;
|
11
|
-
remotes?: Record<string, JSONSchema>;
|
12
|
-
}
|
13
7
|
/**
|
14
|
-
*
|
8
|
+
* Deprecated JSON Validation Service that wraps the JSONSchemaService
|
9
|
+
* @deprecated Use JSONSchemaService instead
|
15
10
|
*/
|
16
|
-
export declare class JSONSchemaService<P extends AnyPrimitiveType, R extends AnyResolvableType> {
|
17
|
-
private typeResolver;
|
18
|
-
schema: Draft;
|
19
|
-
constructor(typeResolver: TypeResolver<P, R>, metaSchema: MetaSchemaInput);
|
20
|
-
private doResolveRef;
|
21
|
-
/**
|
22
|
-
* Validate an input value against a specified schema
|
23
|
-
* @throws {SchemaValidationError} if the input is invalid
|
24
|
-
* @returns true if the input is valid
|
25
|
-
*/
|
26
|
-
validateInput(input: unknown, inputSchema?: JSONSchema): true | never;
|
27
|
-
/**
|
28
|
-
* Resolve an input object by replacing all resolvable shapes with their resolved values
|
29
|
-
* @param input any input object which matches the input schema
|
30
|
-
* @param inputSchema a JSONSchema which provides type information about the input object
|
31
|
-
* @returns the input object with all resolvable shapes resolved
|
32
|
-
*/
|
33
|
-
resolveInput(input: Input, inputSchema: JSONSchema): Promise<Input>;
|
34
|
-
private assignResolvedData;
|
35
|
-
}
|
36
11
|
export declare class JsonValidationService {
|
12
|
+
private jobSchemaService;
|
13
|
+
private componentInputSchemaService;
|
14
|
+
private renderInputSchemaService;
|
15
|
+
private componentManifestSchemaService;
|
37
16
|
validateManifest(manifest: unknown, version: 'v1' | 'JobV1'): true;
|
38
17
|
validateContentSchema(contentSchema: JSONSchema): true;
|
39
18
|
validateComponentInput(functionInputSchema: JSONSchema, inputValue: unknown): true;
|
40
19
|
validateRenderInput(functionInputSchema: JSONSchema, inputValue: unknown): true;
|
41
20
|
}
|
42
|
-
export {};
|
@@ -3,27 +3,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.JsonValidationService = exports.
|
7
|
-
const json_query_1 = __importDefault(require("@sagold/json-query"));
|
6
|
+
exports.JsonValidationService = exports.ComponentInputSchema = exports.defaultConfig = void 0;
|
8
7
|
const DxComponentInputSchema_json_1 = __importDefault(require("./manifest/v1/DxComponentInputSchema.json"));
|
9
|
-
const DxComponentIcons_json_1 = __importDefault(require("./manifest/v1/DxComponentIcons.json"));
|
10
8
|
const DxContentMetaSchema_json_1 = __importDefault(require("./manifest/v1/DxContentMetaSchema.json"));
|
11
|
-
const MatrixAssetSchema_json_1 = __importDefault(require("./manifest/v1/MatrixAssetSchema.json"));
|
12
|
-
const Draft_07_json_1 = __importDefault(require("./manifest/v1/Draft-07.json"));
|
13
9
|
const formattedText_json_1 = __importDefault(require("./formatted-text/v1/formattedText.json"));
|
14
|
-
const v1_json_1 = __importDefault(require("./manifest/v1/v1.json"));
|
15
|
-
const JobV1_json_1 = __importDefault(require("./manifest/v1/JobV1.json"));
|
16
10
|
const SchemaValidationError_1 = require("./errors/SchemaValidationError");
|
17
11
|
const json_schema_library_1 = require("@squiz/json-schema-library");
|
18
12
|
const json_schema_library_2 = require("@squiz/json-schema-library");
|
13
|
+
const _1 = require(".");
|
19
14
|
const customFormatValidators_1 = require("./validators/customFormatValidators");
|
20
|
-
const
|
21
|
-
const
|
15
|
+
const customKeywordValidators_1 = require("./validators/customKeywordValidators");
|
16
|
+
const JsonSchemaService_1 = require("./JsonSchemaService");
|
17
|
+
exports.defaultConfig = {
|
22
18
|
...json_schema_library_2.draft07Config,
|
23
19
|
validateFormat: {
|
24
20
|
...json_schema_library_2.draft07Config.validateFormat,
|
25
21
|
...customFormatValidators_1.customFormatValidators,
|
26
22
|
},
|
23
|
+
typeKeywords: {
|
24
|
+
...json_schema_library_2.draft07Config.typeKeywords,
|
25
|
+
array: json_schema_library_2.draft07Config.typeKeywords.array.concat('ui:metadata'),
|
26
|
+
object: json_schema_library_2.draft07Config.typeKeywords.object.concat('ui:metadata'),
|
27
|
+
boolean: json_schema_library_2.draft07Config.typeKeywords.boolean.concat('ui:metadata'),
|
28
|
+
string: json_schema_library_2.draft07Config.typeKeywords.string.concat('ui:metadata'),
|
29
|
+
number: json_schema_library_2.draft07Config.typeKeywords.number.concat('ui:metadata'),
|
30
|
+
},
|
31
|
+
validateKeyword: {
|
32
|
+
...json_schema_library_2.draft07Config.validateKeyword,
|
33
|
+
...customKeywordValidators_1.customKeywordValidators,
|
34
|
+
},
|
27
35
|
errors: {
|
28
36
|
...json_schema_library_2.draft07Config.errors,
|
29
37
|
enumError(data) {
|
@@ -80,9 +88,12 @@ const defaultConfig = {
|
|
80
88
|
},
|
81
89
|
},
|
82
90
|
};
|
83
|
-
const FTSchema = new json_schema_library_1.Draft07(formattedText_json_1.default, defaultConfig);
|
91
|
+
const FTSchema = new json_schema_library_1.Draft07(formattedText_json_1.default, exports.defaultConfig);
|
92
|
+
/**
|
93
|
+
* @deprecated Only used for FormattedText resolution
|
94
|
+
*/
|
84
95
|
exports.ComponentInputSchema = new json_schema_library_1.Draft({
|
85
|
-
...defaultConfig,
|
96
|
+
...exports.defaultConfig,
|
86
97
|
resolveRef(schema, rootSchema) {
|
87
98
|
const resolvedSchema = json_schema_library_2.draft07Config.resolveRef(schema, rootSchema);
|
88
99
|
if (!resolvedSchema) {
|
@@ -104,208 +115,46 @@ exports.ComponentInputSchema = new json_schema_library_1.Draft({
|
|
104
115
|
},
|
105
116
|
}, DxComponentInputSchema_json_1.default);
|
106
117
|
exports.ComponentInputSchema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
|
107
|
-
exports.RenderInputSchema = new json_schema_library_1.Draft({
|
108
|
-
...defaultConfig,
|
109
|
-
resolveRef(schema, rootSchema) {
|
110
|
-
const resolvedSchema = json_schema_library_2.draft07Config.resolveRef(schema, rootSchema);
|
111
|
-
if (!resolvedSchema) {
|
112
|
-
return resolvedSchema;
|
113
|
-
}
|
114
|
-
if (resolvedSchema.type === 'FormattedText') {
|
115
|
-
return { type: 'string' };
|
116
|
-
}
|
117
|
-
else if (Array.isArray(resolvedSchema.type) && resolvedSchema.type.includes('FormattedText')) {
|
118
|
-
return {
|
119
|
-
...schema,
|
120
|
-
type: resolvedSchema.type.filter((t) => t !== 'FormattedText').concat('string'),
|
121
|
-
};
|
122
|
-
}
|
123
|
-
else {
|
124
|
-
return resolvedSchema;
|
125
|
-
}
|
126
|
-
},
|
127
|
-
});
|
128
|
-
const v1Schema = new json_schema_library_1.Draft07(v1_json_1.default, defaultConfig);
|
129
|
-
v1Schema.addRemoteSchema('DxComponentInputSchema.json/DxContentMetaSchema.json', DxContentMetaSchema_json_1.default);
|
130
|
-
v1Schema.addRemoteSchema('/DxComponentInputSchema.json', exports.ComponentInputSchema.getSchema());
|
131
|
-
v1Schema.addRemoteSchema('/DxComponentIcons.json', DxComponentIcons_json_1.default);
|
132
|
-
v1Schema.addRemoteSchema('/MatrixAssetSchema.json', MatrixAssetSchema_json_1.default);
|
133
|
-
v1Schema.addRemoteSchema('http://json-schema.org/draft-07/schema', Draft_07_json_1.default);
|
134
|
-
v1Schema.addRemoteSchema('http://json-schema.org/draft-07/schema#', Draft_07_json_1.default);
|
135
|
-
const jobV1Schema = new json_schema_library_1.Draft07(JobV1_json_1.default, defaultConfig);
|
136
|
-
jobV1Schema.addRemoteSchema('/DxComponentInputSchema.json', exports.ComponentInputSchema.getSchema());
|
137
|
-
exports.ComponentInputMetaSchema = {
|
138
|
-
root: DxComponentInputSchema_json_1.default,
|
139
|
-
remotes: {
|
140
|
-
'DxComponentInputSchema.json/DxContentMetaSchema.json': DxContentMetaSchema_json_1.default,
|
141
|
-
},
|
142
|
-
};
|
143
|
-
exports.RenderInputMetaSchema = {
|
144
|
-
root: Draft_07_json_1.default,
|
145
|
-
};
|
146
|
-
exports.ManifestV1MetaSchema = {
|
147
|
-
root: v1_json_1.default,
|
148
|
-
remotes: {
|
149
|
-
'DxComponentInputSchema.json/DxContentMetaSchema.json': DxContentMetaSchema_json_1.default,
|
150
|
-
'/DxComponentInputSchema.json': DxComponentInputSchema_json_1.default,
|
151
|
-
'/DxComponentIcons.json': DxComponentIcons_json_1.default,
|
152
|
-
'/MatrixAssetSchema.json': MatrixAssetSchema_json_1.default,
|
153
|
-
'http://json-schema.org/draft-07/schema': Draft_07_json_1.default,
|
154
|
-
'http://json-schema.org/draft-07/schema#': Draft_07_json_1.default,
|
155
|
-
},
|
156
|
-
};
|
157
118
|
/**
|
158
|
-
*
|
119
|
+
* Deprecated JSON Validation Service that wraps the JSONSchemaService
|
120
|
+
* @deprecated Use JSONSchemaService instead
|
159
121
|
*/
|
160
|
-
class JSONSchemaService {
|
161
|
-
constructor(typeResolver, metaSchema) {
|
162
|
-
this.typeResolver = typeResolver;
|
163
|
-
this.schema = new json_schema_library_1.Draft({
|
164
|
-
...defaultConfig,
|
165
|
-
resolveRef: (schema, rootSchema) => this.doResolveRef(schema, rootSchema),
|
166
|
-
validate: (core, data, schema, pointer) => defaultConfig.validate(core, data, schema, pointer),
|
167
|
-
resolveOneOf: (core, data, schema, pointer) => defaultConfig.resolveOneOf(core, data, schema, pointer),
|
168
|
-
}, metaSchema.root);
|
169
|
-
for (const [key, value] of Object.entries(metaSchema.remotes || {})) {
|
170
|
-
this.schema.addRemoteSchema(key, value);
|
171
|
-
}
|
172
|
-
for (const schema of this.typeResolver.validationSchemaDefinitions) {
|
173
|
-
// Please find a better way of doing this.
|
174
|
-
this.schema.addRemoteSchema(`/${schema.title}.json`, schema);
|
175
|
-
this.schema.addRemoteSchema(`#/${schema.title}.json`, schema);
|
176
|
-
}
|
177
|
-
}
|
178
|
-
doResolveRef(schema, rootSchema) {
|
179
|
-
const initialRef = json_schema_library_2.draft07Config.resolveRef(schema, rootSchema);
|
180
|
-
if (!initialRef)
|
181
|
-
return initialRef;
|
182
|
-
if (!this.typeResolver.isPrimitiveType(initialRef.type))
|
183
|
-
return initialRef;
|
184
|
-
const validationSchemas = this.typeResolver.getValidationSchemaForPrimitive(initialRef.type);
|
185
|
-
// All validation schemas are pre-compiled as remote schemas and are referenced below
|
186
|
-
const fullValidationSchema = {
|
187
|
-
oneOf: validationSchemas.map((schema) => ({ $ref: `${schema.title}.json` })),
|
188
|
-
};
|
189
|
-
return this.schema.compileSchema(fullValidationSchema);
|
190
|
-
}
|
191
|
-
/**
|
192
|
-
* Validate an input value against a specified schema
|
193
|
-
* @throws {SchemaValidationError} if the input is invalid
|
194
|
-
* @returns true if the input is valid
|
195
|
-
*/
|
196
|
-
validateInput(input, inputSchema = this.schema.rootSchema) {
|
197
|
-
inputSchema = this.schema.compileSchema(inputSchema);
|
198
|
-
const errors = this.schema.validate(input, inputSchema);
|
199
|
-
return processValidationResult(errors);
|
200
|
-
}
|
201
|
-
/**
|
202
|
-
* Resolve an input object by replacing all resolvable shapes with their resolved values
|
203
|
-
* @param input any input object which matches the input schema
|
204
|
-
* @param inputSchema a JSONSchema which provides type information about the input object
|
205
|
-
* @returns the input object with all resolvable shapes resolved
|
206
|
-
*/
|
207
|
-
async resolveInput(input, inputSchema) {
|
208
|
-
const setters = [];
|
209
|
-
this.schema.each(input, async (schema, value, pointer) => {
|
210
|
-
// Bug in library for Array item schemas which won't resolve the oneOf schema
|
211
|
-
if (Array.isArray(schema === null || schema === void 0 ? void 0 : schema.oneOf)) {
|
212
|
-
const oldSchema = schema;
|
213
|
-
schema = this.schema.resolveOneOf(value, schema);
|
214
|
-
schema.oneOfSchema = oldSchema;
|
215
|
-
}
|
216
|
-
if (!this.typeResolver.isResolvableSchema(schema))
|
217
|
-
return;
|
218
|
-
// If its a resolvable schema, it should exist in a oneOf array with other schemas
|
219
|
-
// Including a primitive schema
|
220
|
-
const allPossibleSchemaTitles = schema.oneOfSchema.oneOf.map((o) => o.$ref.replace('.json', ''));
|
221
|
-
const primitiveSchema = allPossibleSchemaTitles.find((title) => this.typeResolver.isPrimitiveType(title));
|
222
|
-
if (!primitiveSchema)
|
223
|
-
return;
|
224
|
-
const resolver = this.typeResolver.tryGetResolver(primitiveSchema, schema);
|
225
|
-
if (!resolver)
|
226
|
-
return;
|
227
|
-
const setResolvedData = Promise.resolve()
|
228
|
-
.then(() => resolver(value))
|
229
|
-
.then((resolvedData) => (item) => json_query_1.default.set(item, pointer, resolvedData, 'replace'))
|
230
|
-
.catch((e) => Promise.reject(new JsonResolutionError_1.JsonResolutionError(e, pointer, value)));
|
231
|
-
setters.push(setResolvedData);
|
232
|
-
}, inputSchema);
|
233
|
-
const potentialResolutionErrors = [];
|
234
|
-
for (const resolveResult of await Promise.allSettled(setters)) {
|
235
|
-
if (resolveResult.status === 'rejected') {
|
236
|
-
potentialResolutionErrors.push(resolveResult.reason);
|
237
|
-
continue;
|
238
|
-
}
|
239
|
-
input = resolveResult.value(input);
|
240
|
-
}
|
241
|
-
if (potentialResolutionErrors.length) {
|
242
|
-
throw new Error(`Error(s) occurred when resolving JSON:\n${potentialResolutionErrors.join('\n')}`);
|
243
|
-
}
|
244
|
-
return input;
|
245
|
-
}
|
246
|
-
assignResolvedData(input, pointer, resolvedData) {
|
247
|
-
// TODO: Revert to using JSONQuery.set once https://github.com/sagold/json-query/pull/27 is resolved.
|
248
|
-
// Test "should resolve multiple primitive type array items in multi-level nested array structures" confirms
|
249
|
-
// desired behaviour.
|
250
|
-
json_query_1.default.get(input, pointer, (unresolvedData) => {
|
251
|
-
if (resolvedData === unresolvedData) {
|
252
|
-
return;
|
253
|
-
}
|
254
|
-
for (const prop of Object.getOwnPropertyNames(unresolvedData)) {
|
255
|
-
delete unresolvedData[prop];
|
256
|
-
}
|
257
|
-
Object.assign(unresolvedData, resolvedData);
|
258
|
-
});
|
259
|
-
return input;
|
260
|
-
}
|
261
|
-
}
|
262
|
-
exports.JSONSchemaService = JSONSchemaService;
|
263
122
|
class JsonValidationService {
|
123
|
+
constructor() {
|
124
|
+
this.jobSchemaService = new JsonSchemaService_1.JSONSchemaService(_1.TypeResolverBuilder.new().build(), JsonSchemaService_1.JobV1MetaSchema);
|
125
|
+
this.componentInputSchemaService = new JsonSchemaService_1.JSONSchemaService(_1.TypeResolverBuilder.new()
|
126
|
+
.addPrimitive(_1.BaseFormattedTextType)
|
127
|
+
.addPrimitive(_1.SquizImageType)
|
128
|
+
.addPrimitive(_1.SquizLinkType)
|
129
|
+
.build(), JsonSchemaService_1.ComponentInputMetaSchema);
|
130
|
+
this.renderInputSchemaService = new JsonSchemaService_1.JSONSchemaService(_1.TypeResolverBuilder.new()
|
131
|
+
.addPrimitive(_1.ComponentInputFormattedTextType)
|
132
|
+
.addPrimitive(_1.SquizImageType)
|
133
|
+
.addPrimitive(_1.SquizLinkType)
|
134
|
+
.build(), JsonSchemaService_1.ComponentInputMetaSchema);
|
135
|
+
this.componentManifestSchemaService = new JsonSchemaService_1.JSONSchemaService(_1.TypeResolverBuilder.new().build(), JsonSchemaService_1.ManifestV1MetaSchema);
|
136
|
+
}
|
264
137
|
validateManifest(manifest, version) {
|
265
138
|
switch (version) {
|
266
139
|
case 'v1': {
|
267
|
-
|
268
|
-
return processValidationResult(validationResult);
|
140
|
+
return this.componentManifestSchemaService.validateInput(manifest);
|
269
141
|
}
|
270
142
|
case 'JobV1': {
|
271
|
-
|
272
|
-
return processValidationResult(validationResult);
|
143
|
+
return this.jobSchemaService.validateInput(manifest);
|
273
144
|
}
|
274
145
|
default:
|
275
146
|
throw new SchemaValidationError_1.SchemaValidationError('Invalid manifest version');
|
276
147
|
}
|
277
148
|
}
|
278
149
|
validateContentSchema(contentSchema) {
|
279
|
-
return
|
150
|
+
return this.componentInputSchemaService.validateInput(contentSchema);
|
280
151
|
}
|
281
152
|
validateComponentInput(functionInputSchema, inputValue) {
|
282
|
-
|
283
|
-
const errors = exports.ComponentInputSchema.validate(inputValue, inputSchema);
|
284
|
-
return processValidationResult(errors);
|
153
|
+
return this.componentInputSchemaService.validateInput(inputValue, functionInputSchema);
|
285
154
|
}
|
286
155
|
validateRenderInput(functionInputSchema, inputValue) {
|
287
|
-
|
288
|
-
const errors = exports.RenderInputSchema.validate(inputValue, inputSchema);
|
289
|
-
return processValidationResult(errors);
|
156
|
+
return this.renderInputSchemaService.validateInput(inputValue, functionInputSchema);
|
290
157
|
}
|
291
158
|
}
|
292
159
|
exports.JsonValidationService = JsonValidationService;
|
293
|
-
function processValidationResult(errors) {
|
294
|
-
if (errors.length > 0) {
|
295
|
-
const ValidationDataMap = errors.reduce((acc, error) => {
|
296
|
-
var _a;
|
297
|
-
const pointer = (_a = error === null || error === void 0 ? void 0 : error.data) === null || _a === void 0 ? void 0 : _a.pointer;
|
298
|
-
const validationData = {
|
299
|
-
message: error.message,
|
300
|
-
data: error.data,
|
301
|
-
};
|
302
|
-
Object.keys(acc).includes(pointer) && Array.isArray(acc[pointer])
|
303
|
-
? acc[pointer].push(validationData)
|
304
|
-
: (acc[pointer] = [validationData]);
|
305
|
-
return acc;
|
306
|
-
}, {});
|
307
|
-
throw new SchemaValidationError_1.SchemaValidationError(errors.map((a) => a.message).join(',\n'), undefined, ValidationDataMap);
|
308
|
-
}
|
309
|
-
return true;
|
310
|
-
}
|
311
160
|
//# sourceMappingURL=JsonValidationService.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"JsonValidationService.js","sourceRoot":"","sources":["../src/JsonValidationService.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAsD;AAEtD,4GAA+E;AAC/E,gGAAmE;AACnE,sGAAyE;AACzE,kGAAqE;AAErE,gFAAwD;AAExD,gGAAmE;AAEnE,oEAAuC;AACvC,0EAA6C;AAC7C,0EAA0G;AAC1G,oEAAgG;AAEhG,oEAA2D;AAE3D,gFAA6E;AAE7E,sEAAmE;AAEnE,MAAM,aAAa,GAAgB;IACjC,GAAG,mCAAa;IAChB,cAAc,EAAE;QACd,GAAG,mCAAa,CAAC,cAAc;QAC/B,GAAG,+CAAsB;KAC1B;IACD,MAAM,EAAE;QACN,GAAG,mCAAa,CAAC,MAAM;QACvB,SAAS,CAAC,IAAI;YACZ,IAAI,MAAM,GAAG,IAAI,CAAC;YAElB,IAAI,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;gBAC7C,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC1B,MAAM,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;iBACxC;qBAAM;oBACL,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBAChD,MAAM,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,QAAQ,CAAC;iBAChF;aACF;YAED,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,0BAA0B,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,OAAO,qBAAq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