fix: Fixes JSON TypeConverter so that it can deserialize full name types (#1466)

This commit is contained in:
mdodkins 2023-08-22 05:25:09 +01:00 committed by GitHub
parent 52ca1fe686
commit 976680699c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 24 deletions

View file

@ -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);