Two separate duplicate checks have been introduced: 1. Within the same YAML file, YamlDotNet has been instructed to error on duplicate keys. 2. Between different YAML files, custom logic enforces that there should be no duplicate instance names.json-serializing-nullable-fields-issue
parent
6706a87972
commit
3a50b9fa61
@ -0,0 +1,11 @@
|
||||
namespace Recyclarr.TrashLib.ExceptionTypes;
|
||||
|
||||
public class DuplicateInstancesException : Exception
|
||||
{
|
||||
public IReadOnlyCollection<string> InstanceNames { get; }
|
||||
|
||||
public DuplicateInstancesException(IReadOnlyCollection<string> instanceNames)
|
||||
{
|
||||
InstanceNames = instanceNames;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue