Files
shihao 6487becf60 Initial commit: add all skills files
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 16:52:49 +08:00

24 lines
651 B
C#

namespace MiniMaxAIDocx.Core.Validation;
public class ValidationResult
{
public bool IsValid => Errors.Count == 0;
public List<ValidationError> Errors { get; set; } = new();
public List<ValidationError> Warnings { get; set; } = new();
public void Merge(ValidationResult other)
{
Errors.AddRange(other.Errors);
Warnings.AddRange(other.Warnings);
}
}
public class ValidationError
{
public int LineNumber { get; set; }
public int LinePosition { get; set; }
public string Element { get; set; } = "";
public string Message { get; set; } = "";
public string Severity { get; set; } = "Error";
}