The Free Software Media System - Server Backend & API
Enable non-nullable reference types in generated api spec
crobibero9da972682c2a
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.csindex 545937207c..77f6695bb7 100644--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs+++ b/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.Jsonc.AddSwaggerTypeMappings();