The Free Software Media System - Server Backend & API
Fix openapi nullable properties
crobiberoef97ead707a1
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.csindex 77fb64674d..da4cc267b3 100644--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs+++ b/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.Jsonc.AddSwaggerTypeMappings();