From bc79e84173714d363a1aab70cb51aa3296efd441 Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 23 Jan 2025 18:43:00 +0000 Subject: [PATCH] make some props not be ignored if null --- Libraries/Core/Models/Eft/Common/Tables/LocationServices.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Core/Models/Eft/Common/Tables/LocationServices.cs b/Libraries/Core/Models/Eft/Common/Tables/LocationServices.cs index 6d4e3a5b..105d7ab7 100644 --- a/Libraries/Core/Models/Eft/Common/Tables/LocationServices.cs +++ b/Libraries/Core/Models/Eft/Common/Tables/LocationServices.cs @@ -55,6 +55,7 @@ public record TraderService [JsonPropertyName("ServiceItemCost")] [JsonConverter(typeof(ArrayToObjectFactoryConverter))] + [JsonIgnore(Condition = JsonIgnoreCondition.Never)] public Dictionary? ServiceItemCost { get; set; } [JsonPropertyName("UniqueItems")] @@ -64,10 +65,12 @@ public record TraderService public record ServiceRequirements { [JsonPropertyName("CompletedQuests")] + [JsonIgnore(Condition = JsonIgnoreCondition.Never)] public List? CompletedQuests { get; set; } [JsonPropertyName("Standings")] [JsonConverter(typeof(ArrayToObjectFactoryConverter))] + [JsonIgnore(Condition = JsonIgnoreCondition.Never)] public Dictionary? Standings { get; set; } }