diff options
author | crupest <crupest@outlook.com> | 2021-06-02 22:02:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 22:02:32 +0800 |
commit | c7dd16740d7a8953533c895d1bebec0d84f7ec65 (patch) | |
tree | 82e3918b2a681c18eaccb11df0349b1dd3f9f198 /BackEnd/Timeline/Models/Http | |
parent | aac9480e22060ddb62ccbdc3a5b851a54d2fe3af (diff) | |
parent | 634fc0454b81dc63e6dd31e69930d5eb5d744b47 (diff) | |
download | timeline-c7dd16740d7a8953533c895d1bebec0d84f7ec65.tar.gz timeline-c7dd16740d7a8953533c895d1bebec0d84f7ec65.tar.bz2 timeline-c7dd16740d7a8953533c895d1bebec0d84f7ec65.zip |
Merge pull request #587 from crupest/default-color
Add patch default color api.
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r-- | BackEnd/Timeline/Models/Http/HttpTimelinePatchRequest.cs | 2 | ||||
-rw-r--r-- | BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs | 2 |
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; }
}
}
|