- MessageValidateRequestDto에 JsonPropertyName 추가 (snake_case 통일) - MessageValidateRequestDto.Data 타입 string? → object? 변경 - MessageValidationService.ValidateData 파라미터 타입 변경 - Swagger Description 업데이트 (save/validate 엔드포인트) Closes #222
28 lines
675 B
C#
28 lines
675 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Message;
|
|
|
|
public class MessageValidateRequestDto
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[JsonPropertyName("body")]
|
|
public string Body { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("image_url")]
|
|
public string? ImageUrl { get; set; }
|
|
|
|
[JsonPropertyName("link_url")]
|
|
public string? LinkUrl { get; set; }
|
|
|
|
[JsonPropertyName("link_type")]
|
|
public string? LinkType { get; set; }
|
|
|
|
[JsonPropertyName("data")]
|
|
public object? Data { get; set; }
|
|
}
|