@stoker-platform/cli 0.5.168 → 0.5.169
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/lib/package.json +1 -1
- package/lib/src/lint/lintSchema.js +3 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
|
@@ -415,7 +415,9 @@ export const lintSchema = async (noLog = false) => {
|
|
|
415
415
|
errors.push(`Collection ${collectionName} has a preload cache with a range field ${field} that does not exist`);
|
|
416
416
|
}
|
|
417
417
|
else {
|
|
418
|
-
if (index > 0 &&
|
|
418
|
+
if (index > 0 &&
|
|
419
|
+
!rangeField.nullable &&
|
|
420
|
+
!systemFieldSchema.some((systemField) => systemField.name === field)) {
|
|
419
421
|
errors.push(`Collection ${collectionName} has a preload cache range field ${field} that must be nullable`);
|
|
420
422
|
}
|
|
421
423
|
if (isFieldAccessGroupReference(rangeField.access)) {
|