This commit is contained in:
team 1
2026-05-04 15:37:33 +02:00
parent c4bf41cd47
commit 16e3d0a0ae
8 changed files with 173 additions and 131 deletions

View File

@@ -1059,6 +1059,13 @@ final readonly class RetriexEffectiveConfigProvider
$errors[] = 'retrieval.hard_max_chunks must be greater than 0.';
}
$cleanupProfile = $retrieval['generic_exact_selection_cleanup_profile'] ?? null;
if (!is_string($cleanupProfile) || trim($cleanupProfile) === '') {
$errors[] = 'retrieval.generic_exact_selection_cleanup_profile must be a non-empty string.';
} elseif (!in_array(trim($cleanupProfile), $this->languageCleanupConfig->getCleanupProfileNames(), true)) {
$errors[] = 'retrieval.generic_exact_selection_cleanup_profile references unknown language cleanup profile: ' . trim($cleanupProfile) . '.';
}
$this->validateStringListMap($retrieval['vocabulary'] ?? [], 'retrieval.vocabulary', $errors, $warnings);
$inventory = $retrieval['inventory_parameter'] ?? [];