Fixed: (API) Allow new indexer request not to contain empty tags array

This commit is contained in:
Bogdan 2023-02-27 23:49:12 +02:00
parent 65a954b831
commit 5dfaa0db4b

View file

@ -61,7 +61,7 @@ public virtual TProviderDefinition ToModel(TProviderResource resource)
Implementation = resource.Implementation,
ConfigContract = resource.ConfigContract,
Message = resource.Message,
Tags = resource.Tags
Tags = resource.Tags ?? new HashSet<int>()
};
var configContract = ReflectionExtensions.CoreAssembly.FindTypeByName(definition.ConfigContract);