28 lines
727 B
C#
28 lines
727 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.File;
|
|
|
|
public class CsvValidateResponseDto
|
|
{
|
|
[JsonPropertyName("total_rows")]
|
|
public int TotalRows { get; set; }
|
|
|
|
[JsonPropertyName("valid_rows")]
|
|
public int ValidRows { get; set; }
|
|
|
|
[JsonPropertyName("invalid_rows")]
|
|
public int InvalidRows { get; set; }
|
|
|
|
[JsonPropertyName("columns")]
|
|
public List<string> Columns { get; set; } = new();
|
|
|
|
[JsonPropertyName("required_variables")]
|
|
public List<string> RequiredVariables { get; set; } = new();
|
|
|
|
[JsonPropertyName("matched")]
|
|
public bool Matched { get; set; }
|
|
|
|
[JsonPropertyName("errors")]
|
|
public List<CsvValidateErrorDto> Errors { get; set; } = new();
|
|
}
|