Преглед на файлове

Fix openapi nullable properties

crobibero преди 4 години
родител
ревизия
ef97ead707
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

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

@@ -308,6 +308,9 @@ namespace Jellyfin.Server.Extensions
                                ?? null;
                     });
 
+                // Allow parameters to properly be nullable.
+                c.UseAllOfToExtendReferenceSchemas();
+
                 // TODO - remove when all types are supported in System.Text.Json
                 c.AddSwaggerTypeMappings();