Made architecture attribute mandatory in TDFs

This commit is contained in:
Nav
2024-11-29 01:07:09 +00:00
parent 49cf2e5e9a
commit a70b3e5878

View File

@@ -34,7 +34,7 @@ class ValidationService
$failures = []; $failures = [];
if (empty($tdf->getName())) { if (empty($tdf->getName())) {
$failures[] = 'Target name not found'; $failures[] = 'Missing/empty name attribute';
} }
if (str_contains($tdf->getName(), ' ')) { if (str_contains($tdf->getName(), ' ')) {
@@ -42,11 +42,15 @@ class ValidationService
} }
if (empty($tdf->getFamily())) { if (empty($tdf->getFamily())) {
$failures[] = 'Missing/invalid target family'; $failures[] = 'Missing/invalid target family attribute';
} }
if (empty($tdf->getConfigurationValue())) { if (empty($tdf->getConfigurationValue())) {
$failures[] = 'Missing configuration value'; $failures[] = 'Missing/empty configuration value attribute';
}
if (empty($tdf->getArchitecture())) {
$failures[] = 'Missing/empty architecture attribute';
} }
if (empty($tdf->variants)) { if (empty($tdf->variants)) {