@forge/manifest
12.6.0-next.212.6.0-next.3
out/validators/connect-remote-validator.js~
out/validators/connect-remote-validator.jsModified+13−1
Index: package/out/validators/connect-remote-validator.js
===================================================================
--- package/out/validators/connect-remote-validator.js
+++ package/out/validators/connect-remote-validator.js
@@ -40,10 +40,22 @@
level: 'error',
...(0, utils_1.findPosition)('connect', manifest.yamlContentByLine)
});
}
+ if (app?.connect?.key &&
+ manifest.typedContent.remotes &&
+ manifest.typedContent.remotes.length > 0 &&
+ !app.connect.remote) {
+ validationErrors.push({
+ message: text_1.errors.app.missingConnectRemoteWithRemotesWarning(),
+ reference: text_1.References.App,
+ level: 'warning',
+ ...(0, utils_1.findPosition)('connect', manifest.yamlContentByLine)
+ });
+ }
+ const errorLevelEntries = validationErrors.filter((e) => e.level === 'error');
return {
- success: validationErrors.length === 0,
+ success: errorLevelEntries.length === 0,
manifestObject: manifest,
errors: validationErrors
};
}