mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #2848 from ZadenRB/startup-endpoint-parameters
Fix casing of JSON in Jellyfin API (cherry picked from commit 167e96d212f01cdf56a97e494f89e9321293d766) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
cc35876f6b
commit
6a9a677111
@ -71,6 +71,11 @@ namespace Jellyfin.Server.Extensions
|
||||
// Clear app parts to avoid other assemblies being picked up
|
||||
.ConfigureApplicationPartManager(a => a.ApplicationParts.Clear())
|
||||
.AddApplicationPart(typeof(StartupController).Assembly)
|
||||
.AddJsonOptions(options =>
|
||||
{
|
||||
// Setting the naming policy to null leaves the property names as-is when serializing objects to JSON.
|
||||
options.JsonSerializerOptions.PropertyNamingPolicy = null;
|
||||
})
|
||||
.AddControllersAsServices();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user