Parcourir la source

Enable non-nullable reference types in generated api spec

crobibero il y a 4 ans
Parent
commit
9da972682c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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();