From d42d826ae863b20913321d229a168b05d723db73 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 6 Feb 2021 16:41:19 +0800 Subject: ... --- BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs') diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs index f4b300a9..12ab407f 100644 --- a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs +++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequestContent.cs @@ -1,4 +1,5 @@ using System.ComponentModel.DataAnnotations; +using Timeline.Models.Validation; namespace Timeline.Models.Http { @@ -11,6 +12,7 @@ namespace Timeline.Models.Http /// Type of post content. /// [Required] + [TimelinePostContentType] public string Type { get; set; } = default!; /// /// If post is of text type, this is the text. -- cgit v1.2.3