namespace RobotNet10.FleetManager.Shared.DTOs.RobotModel;
///
/// Map validation result for robot model
///
public class MapValidationResultDto
{
///
/// Whether the map data is valid after filtering and validation
///
public bool IsValid { get; set; }
///
/// List of validation errors
///
public List Errors { get; set; } = [];
///
/// List of validation warnings
///
public List Warnings { get; set; } = [];
///
/// Number of nodes removed during validation
///
public int NodesRemoved { get; set; }
///
/// Number of edges removed during validation
///
public int EdgesRemoved { get; set; }
}
///
/// Validation error information
///
public class ValidationError
{
///
/// Error code (e.g., "NODE_NO_EDGES", "EDGE_MISSING_START_NODE")
///
public string Code { get; set; } = string.Empty;
///
/// Human-readable error message
///
public string Message { get; set; } = string.Empty;
///
/// Entity ID that caused the error (NodeId or EdgeId)
///
public string? EntityId { get; set; }
///
/// Entity type ("Node" or "Edge")
///
public string? EntityType { get; set; }
}
///
/// Validation warning information
///
public class ValidationWarning
{
///
/// Warning code
///
public string Code { get; set; } = string.Empty;
///
/// Human-readable warning message
///
public string Message { get; set; } = string.Empty;
///
/// Entity ID related to the warning
///
public string? EntityId { get; set; }
}