This commit is contained in:
mkchiliveri 2023-05-18 10:25:24 +05:30
Родитель 5bd73ff99d
Коммит d1b5a35891
2 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -54,13 +54,6 @@ export function IsValidSupportObject(filePath: string): ExitCode {
throw new MainTemplateSupportObjectValidationError(`Invalid url format for support link: ${support.link}`);
}
}
// check if either the email or the link field is present and not empty
if ((support.hasOwnProperty("email") && support.email.trim() !== "") || (support.hasOwnProperty("link") && support.link.trim() !== "")) {
// do nothing
} else {
throw new MainTemplateSupportObjectValidationError(`Either the "email" or "link" field is required.`);
}
}
} else {
throw new MainTemplateSupportObjectValidationError(`The "properties" field must have "support" field.`);

Просмотреть файл

@ -2111,7 +2111,7 @@
],
"categories": {
"domains": [
"Security - Threat Protection"
"Security - Threat Protectiondfd"
]
}
},