namespace Core.Validation; /// /// Represents a validation warning or error for a student, team, or assignment /// public class ValidationWarning { /// /// Human-readable warning message /// public required string Message { get; init; } /// /// Unique code identifying the validation rule (e.g., "NO_REGIONAL_EVENT") /// public required string Code { get; init; } /// /// Severity level of the warning /// public required ValidationSeverity Severity { get; init; } /// /// Context in which this warning applies /// public required ValidationContext Context { get; init; } /// /// Icon identifier for UI display (maps to AppIcons constants in WebApp) /// public string? IconIdentifier { get; init; } /// /// Additional contextual information about the warning /// public Dictionary Metadata { get; init; } = new(); }