aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-02-15 10:08:38 -0700
committercrobibero <cody@robibe.ro>2021-02-15 10:08:38 -0700
commit9da972682c2a767726bff830f5bdc4166a5768bf (patch)
tree0e6819f8318665d149df06210ada3663e090f718 /Jellyfin.Server/Extensions
parent6ad2544a30b749d1e4afa29eaf6d9cd180558590 (diff)
Enable non-nullable reference types in generated api spec
Diffstat (limited to 'Jellyfin.Server/Extensions')
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
index 545937207..77f6695bb 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.Json
c.AddSwaggerTypeMappings();