diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-01-25 12:55:06 +0100 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2021-02-21 13:29:02 -0500 |
| commit | a7f65bd2056253f87f2f99f0cd82d12499202dd7 (patch) | |
| tree | 4084b5bef8c0bd387d2e83deaecef1b2a892e40d /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | 8138fc30030bba1624581bf128fac2328eed13d3 (diff) | |
Merge pull request #5099 from crobibero/non-required-query-param
(cherry picked from commit e5828cdbf179181f7f891f79637da8819db6de12)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |
