fix: Fixes JSON TypeConverter so that it can deserialize full name types (#1466)
This commit is contained in:
parent
52ca1fe686
commit
976680699c
4 changed files with 65 additions and 24 deletions
|
|
@ -32,7 +32,7 @@ public class TypeConverter : JsonConverter<Type>
|
|||
}
|
||||
|
||||
var typeName = reader.GetString();
|
||||
var type = AssemblyHandler.FindTypeByName(typeName);
|
||||
var type = AssemblyHandler.FindTypeByName(typeName) ?? AssemblyHandler.FindTypeByName(typeName, true);
|
||||
if (type == null)
|
||||
{
|
||||
logger.Warning("Attempted to deserialize type {Type} which does not exist.", typeName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue