소스 검색

Document JSON options change

ZadenRB 5 년 전
부모
커밋
bb288e16cc
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

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

@@ -73,6 +73,7 @@ namespace Jellyfin.Server.Extensions
                 .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();