up
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled

This commit is contained in:
StellaOps Bot
2025-11-27 23:44:42 +02:00
parent ef6e4b2067
commit 3b96b2e3ea
298 changed files with 47516 additions and 1168 deletions

View File

@@ -326,15 +326,15 @@ public static class RiskProfileDiagnostics
return recommendations.ToImmutable();
}
private static IEnumerable<RiskProfileIssue> ExtractSchemaErrors(ValidationResults results)
private static IEnumerable<RiskProfileIssue> ExtractSchemaErrors(EvaluationResults results)
{
if (results.Details != null)
{
foreach (var detail in results.Details)
{
if (detail.HasErrors)
if (!detail.IsValid && detail.Errors != null)
{
foreach (var error in detail.Errors ?? [])
foreach (var error in detail.Errors)
{
yield return RiskProfileIssue.Error(
"RISK003",
@@ -344,9 +344,10 @@ public static class RiskProfileDiagnostics
}
}
}
else if (!string.IsNullOrEmpty(results.Message))
else if (!results.IsValid)
{
yield return RiskProfileIssue.Error("RISK003", results.Message, "/");
var errorMessage = results.Errors?.FirstOrDefault().Value ?? "Schema validation failed";
yield return RiskProfileIssue.Error("RISK003", errorMessage, "/");
}
}