@forge/manifest

12.5.012.6.0-next.0
out/validators/modules-validators/global/validate-global-ui.js
~out/validators/modules-validators/global/validate-global-ui.jsModified
+12−9
Index: package/out/validators/modules-validators/global/validate-global-ui.js
===================================================================
--- package/out/validators/modules-validators/global/validate-global-ui.js
+++ package/out/validators/modules-validators/global/validate-global-ui.js
@@ -19,21 +19,24 @@
         });
         return validationErrors;
     }
     globalUiModules.forEach((module, index) => {
-        validationErrors.push(...(0, validateGlobalModules_1.validateRoute)(module.key, module.routePrefix, index, errorMessages).map((error) => ({
-            message: error.message,
-            reference: text_1.References.Modules,
-            level: 'error',
-            ...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
-        })), ...(module.icon
-            ? (0, validateGlobalModules_1.validateIcon)(module.key, module.icon, index, errorMessages).map((error) => ({
+        if (module.render !== 'native') {
+            validationErrors.push({
+                message: errorMessages.renderMustBeNative(module.key, index),
+                reference: text_1.References.Modules,
+                level: 'error',
+                ...(0, utils_1.findPosition)(module.key, yamlContentByLine)
+            });
+        }
+        if (module.icon) {
+            validationErrors.push(...(0, validateGlobalModules_1.validateIcon)(module.key, module.icon, index, errorMessages).map((error) => ({
                 message: error.message,
                 reference: text_1.References.Modules,
                 level: 'error',
                 ...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
-            }))
-            : []));
+            })));
+        }
     });
     return validationErrors;
 };
 exports.validateGlobalUi = validateGlobalUi;