Use converter on risk flags
MODIFY
WalletWasabi/WabiSabi/Backend/WabiSabiConfig.cs
WalletWasabi/WabiSabi/Backend/WabiSabiConfig.cs
@@ -3,6 +3,7 @@ using Newtonsoft.Json;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
+using System.Linq;
using WalletWasabi.Bases;
using WalletWasabi.Helpers;
using WalletWasabi.JsonConverters;
@@ -114,8 +115,10 @@ public class WabiSabiConfig : ConfigBase
[JsonProperty(PropertyName = "IsCoinVerifierEnabled", DefaultValueHandling = DefaultValueHandling.Populate)]
public bool IsCoinVerifierEnabled { get; set; } = false;
+ [DefaultValueIntegerArray("")]
[JsonProperty(PropertyName = "RiskFlags", DefaultValueHandling = DefaultValueHandling.Populate)]
- public List<int>? RiskFlags { get; set; } = new();
+ [JsonConverter(typeof(IntegerArrayJsonConverter))]
+ public IEnumerable<int> RiskFlags { get; set; } = Enumerable.Empty<int>();
[DefaultValue("")]
[JsonProperty(PropertyName = "CoinVerifierApiUrl", DefaultValueHandling = DefaultValueHandling.Populate)]

Use converter on risk flags