fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
@@ -138,7 +138,11 @@ final class SimulationTaxParameterResolver
return $this->resolveWithStatus($versions, $component, $periodStart, $periodEnd, $context, 'published');
}
/** Explicit draft preview. Never used by the published-parameter API. */
/** Explicit draft preview. Never used by the published-parameter API.
* @param array<array-key, mixed> $context
* @param array<array-key, mixed> $versions
* @return list<array<string, mixed>>
*/
public function resolveDraftForQa(array $versions, string $component, string $periodStart, string $periodEnd, array $context): array
{
abort_unless(IsolatedQaDatabase::allowsSchemaChanges(), 404);
@@ -146,6 +150,11 @@ final class SimulationTaxParameterResolver
return $this->resolveWithStatus($versions, $component, $periodStart, $periodEnd, $context, 'draft');
}
/**
* @param array<array-key, mixed> $context
* @param array<array-key, mixed> $versions
* @return list<array<string, mixed>>
*/
private function resolveWithStatus(array $versions, string $component, string $periodStart, string $periodEnd, array $context, string $requiredStatus): array
{
$start = $this->date($periodStart);