From a7f65bd2056253f87f2f99f0cd82d12499202dd7 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Mon, 25 Jan 2021 12:55:06 +0100 Subject: Merge pull request #5099 from crobibero/non-required-query-param (cherry picked from commit e5828cdbf179181f7f891f79637da8819db6de12) Signed-off-by: Joshua M. Boniface --- Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs') diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index 77fb64674..da4cc267b 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.Json c.AddSwaggerTypeMappings(); -- cgit v1.2.3