@squiz/dx-json-schema-lib 1.82.3 → 1.82.5
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 +14 -0
- package/README.md +132 -0
- package/lib/JsonSchemaService.allOf.spec.d.ts +1 -0
- package/lib/JsonSchemaService.allOf.spec.js +528 -0
- package/lib/JsonSchemaService.allOf.spec.js.map +1 -0
- package/lib/JsonSchemaService.d.ts +20 -0
- package/lib/JsonSchemaService.js +165 -1
- package/lib/JsonSchemaService.js.map +1 -1
- package/lib/resolvableTypes/MatrixAsset.d.ts +1 -0
- package/lib/resolvableTypes/MatrixAsset.js +3 -0
- package/lib/resolvableTypes/MatrixAsset.js.map +1 -1
- package/package.json +2 -2
- package/src/JsonSchemaService.allOf.spec.ts +573 -0
- package/src/JsonSchemaService.ts +187 -1
- package/src/resolvableTypes/MatrixAsset.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
package/lib/JsonSchemaService.js
CHANGED
|
@@ -65,7 +65,31 @@ class JSONSchemaService {
|
|
|
65
65
|
callback(schema, data, pointer);
|
|
66
66
|
}
|
|
67
67
|
else {
|
|
68
|
-
|
|
68
|
+
// CRITICAL FIX: Preserve data integrity during allOf schema traversal
|
|
69
|
+
// Only apply protection for allOf schemas that contain arrays with primitive types
|
|
70
|
+
if ((schema === null || schema === void 0 ? void 0 : schema.allOf) && Array.isArray(schema.allOf) && this.hasArraysWithPrimitiveTypes(schema)) {
|
|
71
|
+
// Get the original input data stored at the beginning of resolveInput
|
|
72
|
+
const originalInputData = this.__originalInputData;
|
|
73
|
+
// Create a deep clone to prevent Draft library from corrupting original data
|
|
74
|
+
const safeDataForTraversal = JSON.parse(JSON.stringify(data));
|
|
75
|
+
// Use the safe clone for traversal, but preserve callbacks with original data
|
|
76
|
+
_1.defaultConfig.each(core, safeDataForTraversal, (resolvedSchema, corruptedValue, resolvedPointer) => {
|
|
77
|
+
// Only preserve data for paths that contain arrays of SquizLink/SquizImage
|
|
78
|
+
if (this.isProtectedPrimitivePath(resolvedSchema, resolvedPointer)) {
|
|
79
|
+
const originalValueAtPointer = originalInputData
|
|
80
|
+
? this.getValueAtPointer(originalInputData, resolvedPointer)
|
|
81
|
+
: corruptedValue;
|
|
82
|
+
callback(resolvedSchema, originalValueAtPointer, resolvedPointer);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
// Use normal resolution for non-primitive arrays
|
|
86
|
+
callback(resolvedSchema, corruptedValue, resolvedPointer);
|
|
87
|
+
}
|
|
88
|
+
}, schema, pointer);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
_1.defaultConfig.each(core, data, callback, schema, pointer);
|
|
92
|
+
}
|
|
69
93
|
}
|
|
70
94
|
},
|
|
71
95
|
}, metaSchema.root);
|
|
@@ -152,14 +176,41 @@ class JSONSchemaService {
|
|
|
152
176
|
* @returns the input object with all resolvable shapes resolved
|
|
153
177
|
*/
|
|
154
178
|
async resolveInput(input, inputSchema, ctx = {}) {
|
|
179
|
+
// Store the original input data to prevent corruption during nested allOf processing
|
|
180
|
+
this.__originalInputData = JSON.parse(JSON.stringify(input));
|
|
155
181
|
const setters = [];
|
|
156
182
|
this.schema.each(input, async (schema, value, pointer) => {
|
|
183
|
+
// Debug logging for investigation of resolution path
|
|
184
|
+
// console.debug('JSONSchemaService.each', {
|
|
185
|
+
// pointer,
|
|
186
|
+
// title: (schema as any)?.title,
|
|
187
|
+
// type: (schema as any)?.type,
|
|
188
|
+
// value,
|
|
189
|
+
// });
|
|
190
|
+
// Guard: if value is an array of already-resolved primitives (e.g., SquizLink/SquizImage), skip
|
|
191
|
+
if (Array.isArray(value)) {
|
|
192
|
+
const isLinkLike = (v) => v && typeof v === 'object' && typeof v.text === 'string' && typeof v.url === 'string';
|
|
193
|
+
const isImageLike = (v) => v &&
|
|
194
|
+
typeof v === 'object' &&
|
|
195
|
+
typeof v.name === 'string' &&
|
|
196
|
+
v.imageVariations &&
|
|
197
|
+
typeof v.imageVariations === 'object';
|
|
198
|
+
const allResolvedPrimitives = value.every((v) => isLinkLike(v) || isImageLike(v));
|
|
199
|
+
if (allResolvedPrimitives) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
157
203
|
// Bug in library for Array item schemas which won't resolve the oneOf schema
|
|
158
204
|
if (Array.isArray(schema === null || schema === void 0 ? void 0 : schema.oneOf)) {
|
|
159
205
|
const oldSchema = schema;
|
|
160
206
|
schema = this.schema.resolveOneOf(value, schema);
|
|
161
207
|
schema.oneOfSchema = oldSchema;
|
|
162
208
|
}
|
|
209
|
+
// Skip resolution if this is already a complete SquizLink or SquizImage
|
|
210
|
+
// This prevents primitive types from being incorrectly processed when they're already in final form
|
|
211
|
+
if (this.isAlreadyResolvedPrimitive(schema, value)) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
163
214
|
if (!this.typeResolver.isResolvableSchema(schema))
|
|
164
215
|
return;
|
|
165
216
|
// If its a resolvable schema, it should exist in a oneOf array with other schemas
|
|
@@ -188,8 +239,121 @@ class JSONSchemaService {
|
|
|
188
239
|
if (potentialResolutionErrors.length) {
|
|
189
240
|
throw new Error(`Error(s) occurred when resolving JSON:\n${potentialResolutionErrors.join('\n')}`);
|
|
190
241
|
}
|
|
242
|
+
// Clean up stored original data to prevent memory leaks
|
|
243
|
+
delete this.__originalInputData;
|
|
191
244
|
return input;
|
|
192
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Check if the allOf schema contains arrays with primitive types (SquizLink/SquizImage)
|
|
248
|
+
* Used to determine if we need to apply data preservation
|
|
249
|
+
*/
|
|
250
|
+
hasArraysWithPrimitiveTypes(schema) {
|
|
251
|
+
if (!(schema === null || schema === void 0 ? void 0 : schema.allOf) || !Array.isArray(schema.allOf))
|
|
252
|
+
return false;
|
|
253
|
+
const checkForPrimitiveArrays = (obj) => {
|
|
254
|
+
var _a;
|
|
255
|
+
if (!obj || typeof obj !== 'object')
|
|
256
|
+
return false;
|
|
257
|
+
// Check if this is an array with SquizLink/SquizImage items
|
|
258
|
+
if (obj.type === 'array' && ((_a = obj.items) === null || _a === void 0 ? void 0 : _a.type)) {
|
|
259
|
+
return obj.items.type === 'SquizLink' || obj.items.type === 'SquizImage';
|
|
260
|
+
}
|
|
261
|
+
// Recursively check properties
|
|
262
|
+
if (obj.properties) {
|
|
263
|
+
return Object.values(obj.properties).some((prop) => checkForPrimitiveArrays(prop));
|
|
264
|
+
}
|
|
265
|
+
// Check in then/else branches and nested allOf
|
|
266
|
+
if (obj.then && checkForPrimitiveArrays(obj.then))
|
|
267
|
+
return true;
|
|
268
|
+
if (obj.else && checkForPrimitiveArrays(obj.else))
|
|
269
|
+
return true;
|
|
270
|
+
if (obj.allOf && Array.isArray(obj.allOf)) {
|
|
271
|
+
return obj.allOf.some((item) => checkForPrimitiveArrays(item));
|
|
272
|
+
}
|
|
273
|
+
return false;
|
|
274
|
+
};
|
|
275
|
+
// Check both inside allOf conditions AND in the main schema properties
|
|
276
|
+
// because primitive arrays in main properties can be affected by allOf processing
|
|
277
|
+
const hasInAllOf = schema.allOf.some((condition) => checkForPrimitiveArrays(condition));
|
|
278
|
+
const hasInMainSchema = checkForPrimitiveArrays(schema);
|
|
279
|
+
return hasInAllOf || hasInMainSchema;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Check if a specific schema path should be protected from data corruption
|
|
283
|
+
* Only protects arrays of SquizLink/SquizImage types
|
|
284
|
+
*/
|
|
285
|
+
isProtectedPrimitivePath(resolvedSchema, _resolvedPointer) {
|
|
286
|
+
var _a;
|
|
287
|
+
if (!resolvedSchema)
|
|
288
|
+
return false;
|
|
289
|
+
// Check if this is an array of SquizLink/SquizImage
|
|
290
|
+
if (resolvedSchema.type === 'array' && ((_a = resolvedSchema.items) === null || _a === void 0 ? void 0 : _a.type)) {
|
|
291
|
+
return resolvedSchema.items.type === 'SquizLink' || resolvedSchema.items.type === 'SquizImage';
|
|
292
|
+
}
|
|
293
|
+
// Check if this is a direct SquizLink/SquizImage type
|
|
294
|
+
if (resolvedSchema.type === 'SquizLink' || resolvedSchema.type === 'SquizImage') {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Get value at a specific JSON pointer path from the data structure
|
|
301
|
+
* Used to preserve original data during schema traversal
|
|
302
|
+
*/
|
|
303
|
+
getValueAtPointer(data, pointer) {
|
|
304
|
+
if (pointer === '#')
|
|
305
|
+
return data;
|
|
306
|
+
// Remove the '#/' prefix and split by '/'
|
|
307
|
+
const path = pointer.replace(/^#\//, '').split('/');
|
|
308
|
+
let current = data;
|
|
309
|
+
for (const segment of path) {
|
|
310
|
+
if (current === null || current === undefined)
|
|
311
|
+
return undefined;
|
|
312
|
+
// Handle array indices
|
|
313
|
+
if (Array.isArray(current)) {
|
|
314
|
+
const index = parseInt(segment, 10);
|
|
315
|
+
if (isNaN(index) || index < 0 || index >= current.length)
|
|
316
|
+
return undefined;
|
|
317
|
+
current = current[index];
|
|
318
|
+
}
|
|
319
|
+
else if (typeof current === 'object') {
|
|
320
|
+
// Handle object properties
|
|
321
|
+
current = current[segment];
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
return undefined;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return current;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Check if the value is already a resolved primitive type (SquizLink, SquizImage)
|
|
331
|
+
* and doesn't need further resolution
|
|
332
|
+
*/
|
|
333
|
+
isAlreadyResolvedPrimitive(schema, value) {
|
|
334
|
+
var _a;
|
|
335
|
+
if (!value || typeof value !== 'object')
|
|
336
|
+
return false;
|
|
337
|
+
// Schema hints: check either title or type when present
|
|
338
|
+
const schemaType = (_a = schema === null || schema === void 0 ? void 0 : schema.type) !== null && _a !== void 0 ? _a : schema === null || schema === void 0 ? void 0 : schema.title;
|
|
339
|
+
// Shape-based detection for SquizLink
|
|
340
|
+
const v = value;
|
|
341
|
+
const looksLikeSquizLink = typeof v.text === 'string' && typeof v.url === 'string';
|
|
342
|
+
if (looksLikeSquizLink) {
|
|
343
|
+
if (schemaType === 'SquizLink' || schemaType === undefined)
|
|
344
|
+
return true;
|
|
345
|
+
// Even if schema hint differs (e.g., through allOf), preserve already-formed link objects
|
|
346
|
+
return true;
|
|
347
|
+
}
|
|
348
|
+
// Shape-based detection for SquizImage
|
|
349
|
+
const looksLikeSquizImage = typeof v.name === 'string' && v.imageVariations && typeof v.imageVariations === 'object';
|
|
350
|
+
if (looksLikeSquizImage) {
|
|
351
|
+
if (schemaType === 'SquizImage' || schemaType === undefined)
|
|
352
|
+
return true;
|
|
353
|
+
return true;
|
|
354
|
+
}
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
193
357
|
}
|
|
194
358
|
exports.JSONSchemaService = JSONSchemaService;
|
|
195
359
|
//# sourceMappingURL=JsonSchemaService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchemaService.js","sourceRoot":"","sources":["../src/JsonSchemaService.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAsD;AACtD,wEAAyC;AAEzC,4GAA+E;AAC/E,gGAAmE;AACnE,sGAAyE;AACzE,kGAAqE;AAErE,gFAAwD;AAExD,0EAA6C;AAC7C,oEAAuC;AACvC,oEAA+D;AAE/D,oEAA2D;AAE3D,sEAAmE;AACnE,uEAAoE;AACpE,wBAA4D;AAE/C,QAAA,wBAAwB,GAAoB;IACvD,IAAI,EAAE,qCAAsB;IAC5B,OAAO,EAAE;QACP,sDAAsD,EAAE,kCAAmB;KAC5E;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAoB;IACpD,IAAI,EAAE,uBAAa;CACpB,CAAC;AAEW,QAAA,oBAAoB,GAAoB;IACnD,IAAI,EAAE,iBAAE;IACR,OAAO,EAAE;QACP,sDAAsD,EAAE,kCAAmB;QAC3E,8BAA8B,EAAE,qCAAsB;QACtD,wBAAwB,EAAE,+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,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;OAGG;IACK,0BAA0B,CAAC,MAAkB,EAAE,KAAc;;QACnE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QAEtD,wDAAwD;QACxD,MAAM,UAAU,GAAG,MAAC,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,IAAI,mCAAK,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,KAAK,CAAC;QAEnE,sCAAsC;QACtC,MAAM,CAAC,GAAQ,KAAK,CAAC;QACrB,MAAM,kBAAkB,GAAG,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC;QACnF,IAAI,kBAAkB,EAAE,CAAC;YACvB,IAAI,UAAU,KAAK,WAAW,IAAI,UAAU,KAAK,SAAS;gBAAE,OAAO,IAAI,CAAC;YACxE,0FAA0F;YAC1F,OAAO,IAAI,CAAC;QACd,CAAC;QAED,uCAAuC;QACvC,MAAM,mBAAmB,GACvB,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,CAAC,eAAe,IAAI,OAAO,CAAC,CAAC,eAAe,KAAK,QAAQ,CAAC;QAC3F,IAAI,mBAAmB,EAAE,CAAC;YACxB,IAAI,UAAU,KAAK,YAAY,IAAI,UAAU,KAAK,SAAS;gBAAE,OAAO,IAAI,CAAC;YACzE,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAhVD,8CAgVC"}
|
|
@@ -7,6 +7,7 @@ interface MatrixAssetShape {
|
|
|
7
7
|
export declare const MatrixAssetType: ResolvableType<"MatrixAsset", MatrixAssetShape>;
|
|
8
8
|
export type MatrixAssetType = typeof MatrixAssetType;
|
|
9
9
|
interface MatrixAssetLinkShape extends MatrixAssetShape {
|
|
10
|
+
text?: string;
|
|
10
11
|
target: '_blank' | '_parent' | '_self' | '_top';
|
|
11
12
|
}
|
|
12
13
|
export declare const MatrixAssetLinkType: ResolvableType<"MatrixAssetLink", MatrixAssetLinkShape>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatrixAsset.js","sourceRoot":"","sources":["../../src/resolvableTypes/MatrixAsset.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AAQvD,QAAA,eAAe,GAAG,IAAA,6BAAc,EAAkC;IAC7E,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;SACf;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,QAAQ,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;CAChD,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"MatrixAsset.js","sourceRoot":"","sources":["../../src/resolvableTypes/MatrixAsset.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AAQvD,QAAA,eAAe,GAAG,IAAA,6BAAc,EAAkC;IAC7E,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;SACf;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,QAAQ,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;CAChD,CAAC,CAAC;AAQU,QAAA,mBAAmB,GAAG,IAAA,6BAAc,EAA0C;IACzF,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;SACf;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;SAC7C;KACF;IACD,QAAQ,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;CAChD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/dx-json-schema-lib",
|
|
3
|
-
"version": "1.82.
|
|
3
|
+
"version": "1.82.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@types/jest": "28.1.8",
|
|
21
21
|
"@types/lodash.clonedeep": "4.5.9",
|
|
22
22
|
"@types/node": "20.12.12",
|
|
23
|
-
"dotenv": "16.
|
|
23
|
+
"dotenv": "16.6.1",
|
|
24
24
|
"jest": "29.4.1",
|
|
25
25
|
"json-schema-to-typescript": "14.1.0",
|
|
26
26
|
"ts-jest": "29.0.5",
|