@takeshape/schema 8.68.7 → 8.68.8
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/es/validate.js +0 -16
- package/lib/validate.d.ts.map +1 -1
- package/lib/validate.js +0 -16
- package/package.json +4 -4
package/es/validate.js
CHANGED
|
@@ -290,22 +290,6 @@ function validateIndexedShapeConfig(projectSchema, shapeName, config) {
|
|
|
290
290
|
message: `Invalid query "${list.name}"`
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
|
|
294
|
-
const shape = projectSchema.shapes[shapeName]; // Resolved shapes are not checked
|
|
295
|
-
|
|
296
|
-
if (shape && list.ignoreFields) {
|
|
297
|
-
for (const fieldName of list.ignoreFields) {
|
|
298
|
-
var _properties;
|
|
299
|
-
|
|
300
|
-
if (((_properties = shape.schema.properties) === null || _properties === void 0 ? void 0 : _properties[fieldName]) === undefined) {
|
|
301
|
-
errors.push({
|
|
302
|
-
path: ['indexedShapes', shapeName, 'queries', 'list', 'ignoreFields'],
|
|
303
|
-
type: 'notFound',
|
|
304
|
-
message: `Invalid property "${fieldName}" on shape "${shapeName}"`
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
293
|
}
|
|
310
294
|
|
|
311
295
|
return errors;
|
package/lib/validate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,WAAW,EAAC,MAAM,KAAK,CAAC;AACvD,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAE1D,OAAO,KAAK,EAEV,gBAAgB,EAChB,aAAa,EASb,iBAAiB,
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,WAAW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AE,OAAO,GAAG,SAAS,CAQpE;AAgBD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,CAQlE;AAqBD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,OAAO,GAAG,gBAAgB,CASlF"}
|
package/lib/validate.js
CHANGED
|
@@ -325,22 +325,6 @@ function validateIndexedShapeConfig(projectSchema, shapeName, config) {
|
|
|
325
325
|
message: `Invalid query "${list.name}"`
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
|
|
329
|
-
const shape = projectSchema.shapes[shapeName]; // Resolved shapes are not checked
|
|
330
|
-
|
|
331
|
-
if (shape && list.ignoreFields) {
|
|
332
|
-
for (const fieldName of list.ignoreFields) {
|
|
333
|
-
var _properties;
|
|
334
|
-
|
|
335
|
-
if (((_properties = shape.schema.properties) === null || _properties === void 0 ? void 0 : _properties[fieldName]) === undefined) {
|
|
336
|
-
errors.push({
|
|
337
|
-
path: ['indexedShapes', shapeName, 'queries', 'list', 'ignoreFields'],
|
|
338
|
-
type: 'notFound',
|
|
339
|
-
message: `Invalid property "${fieldName}" on shape "${shapeName}"`
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
328
|
}
|
|
345
329
|
|
|
346
330
|
return errors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "8.68.
|
|
3
|
+
"version": "8.68.8",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"examples"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@takeshape/errors": "8.68.
|
|
25
|
-
"@takeshape/json-schema": "8.68.
|
|
26
|
-
"@takeshape/util": "8.68.
|
|
24
|
+
"@takeshape/errors": "8.68.8",
|
|
25
|
+
"@takeshape/json-schema": "8.68.8",
|
|
26
|
+
"@takeshape/util": "8.68.8",
|
|
27
27
|
"ajv": "^7.0.4",
|
|
28
28
|
"ajv-formats": "^1.5.1",
|
|
29
29
|
"blueimp-md5": "^2.10.0",
|