@stoker-platform/cli 0.5.133 → 0.5.134
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/src/lint/lintSchema.js +15 -0
- package/package.json +1 -1
|
@@ -584,6 +584,21 @@ export const lintSchema = async (noLog = false) => {
|
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
+
if (calendar.additionalCollections) {
|
|
588
|
+
for (const additionalCollection of calendar.additionalCollections) {
|
|
589
|
+
if (!collectionNames.includes(additionalCollection)) {
|
|
590
|
+
errors.push(`Collection ${collectionName} has a calendar additional collection ${additionalCollection} that does not exist`);
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
594
|
+
const additionalCustomization = customizationModules[additionalCollection];
|
|
595
|
+
const additionalCalendar = (await tryPromise(additionalCustomization?.admin?.calendar));
|
|
596
|
+
if (!additionalCalendar) {
|
|
597
|
+
errors.push(`Collection ${collectionName} has a calendar additional collection ${additionalCollection} that does not have a calendar configuration`);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
587
602
|
}
|
|
588
603
|
const restrictExport = (await tryPromise(customization?.admin?.restrictExport));
|
|
589
604
|
if (restrictExport) {
|