aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-01-24 14:36:36 -0700
committercrobibero <cody@robibe.ro>2021-01-24 14:36:36 -0700
commitef97ead707a100f1599d22a7b37095ed6f3fd041 (patch)
tree5d0afe82e04fa9ec2ffb1f0483154fc6cf130c82
parent98a4e1b8402c37703344113e302167b5e2721d5f (diff)
Fix openapi nullable properties
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs3
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();