aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-01 23:22:47 +0800
committercrupest <crupest@outlook.com>2021-06-01 23:22:47 +0800
commit7e709bf5bc514eda87f9ea87b703d1f6cbb3662a (patch)
tree718ad2cc37a66a65c564dbfcc71b218e93ad33d2 /BackEnd/Timeline/Models/Http
parent5ead84a292481b43f44ae3d044193901045ce092 (diff)
downloadtimeline-7e709bf5bc514eda87f9ea87b703d1f6cbb3662a.tar.gz
timeline-7e709bf5bc514eda87f9ea87b703d1f6cbb3662a.tar.bz2
timeline-7e709bf5bc514eda87f9ea87b703d1f6cbb3662a.zip
feat: Add ways to reset timeline or post color.
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePatchRequest.cs2
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePatchRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePatchRequest.cs
index 9accb6fc..35667af2 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimelinePatchRequest.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimelinePatchRequest.cs
@@ -31,7 +31,7 @@ namespace Timeline.Models.Http
/// <summary>
/// New color. Null for not change.
/// </summary>
- [Color]
+ [Color(PermitDefault = true, PermitEmpty = true)]
public string? Color { get; set; }
}
}
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs
index 2c6edf66..cb576a74 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs
@@ -13,7 +13,7 @@ namespace Timeline.Models.Http
/// <summary>
/// Change the color. Null for not change.
/// </summary>
- [Color]
+ [Color(PermitEmpty = true, PermitDefault = true)]
public string? Color { get; set; }
}
}