save progress
This commit is contained in:
@@ -9,13 +9,13 @@ public static class AocForbiddenKeys
|
||||
"severity",
|
||||
"cvss",
|
||||
"cvss_vector",
|
||||
"effective_status",
|
||||
"effective_range",
|
||||
"merged_from",
|
||||
"consensus_provider",
|
||||
"reachability",
|
||||
"asset_criticality",
|
||||
"risk_score",
|
||||
// Note: effective_* fields are NOT forbidden - they are "derived" fields
|
||||
// handled separately by IsDerivedField() and produce ERR_AOC_006
|
||||
}.ToImmutableHashSet(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public static bool IsForbiddenTopLevel(string propertyName) => ForbiddenTopLevel.Contains(propertyName);
|
||||
|
||||
@@ -26,7 +26,8 @@ public sealed record AocGuardOptions
|
||||
"ingestedAt",
|
||||
"ingested_at",
|
||||
"links",
|
||||
"advisory_key"
|
||||
"advisory_key",
|
||||
"statements" // VEX documents include statements array
|
||||
}, StringComparer.OrdinalIgnoreCase)
|
||||
.ToImmutableHashSet(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user