Move date converters onto the contracts
This commit is contained in:
1 parent
6d3260db49
commit
31b114982e
6 files changed
+29
-23
No files matched your search
@@ -1,4 +1,3 @@
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Elternbeirat.Contracts;
|
||||
@@ -27,6 +26,7 @@ public record Post
|
||||
/// time-of-day, no off-by-one at midnight. See <see cref="DateOnlyConverter"/>.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("date")]
|
||||
[JsonConverter(typeof(DateOnlyConverter))]
|
||||
public DateOnly Date { get; init; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user