aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http
diff options
context:
space:
mode:
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; }
}
}