浏览代码

Remove StringEnumConverter

crobibero 5 年之前
父节点
当前提交
fff2a40ffc
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

+ 0 - 3
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

@@ -80,9 +80,6 @@ namespace Jellyfin.Server.Extensions
                 {
                 {
                     // Setting the naming policy to null leaves the property names as-is when serializing objects to JSON.
                     // Setting the naming policy to null leaves the property names as-is when serializing objects to JSON.
                     options.JsonSerializerOptions.PropertyNamingPolicy = null;
                     options.JsonSerializerOptions.PropertyNamingPolicy = null;
-
-                    // Accept string enums
-                    options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
                 })
                 })
                 .AddControllersAsServices();
                 .AddControllersAsServices();
         }
         }