Move date converters onto the contracts

This commit is contained in:
tleininger committed 2026-09-24 09:20:14 +02:00
1 parent 6d3260db49
commit 31b114982e
6 files changed
+29 -23

No files matched your search

+1 -1
View File
@@ -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>