mirror of https://github.com/jellyfin/jellyfin.git
Remove StringEnumConverter
This commit is contained in:
parent
72745f4722
commit
fff2a40ffc
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue