Преглед изворни кода

Enable non-nullable reference types in generated api spec

crobibero пре 4 година
родитељ
комит
9da972682c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs

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

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