mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-03-16 03:21:41 -04:00
Fix parsing of boolean (false) excerpts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using JetBrains.Annotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ChrisKaczor.HomeMonitor.Calendar.Service.Models.NationalDays;
|
||||
|
||||
@@ -6,7 +7,11 @@ namespace ChrisKaczor.HomeMonitor.Calendar.Service.Models.NationalDays;
|
||||
public class Entry
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Url { get; set; } = string.Empty;
|
||||
|
||||
[JsonConverter(typeof(StringOrBooleanConverter))]
|
||||
public string Excerpt { get; set; } = string.Empty;
|
||||
|
||||
public string Type { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user