diff options
| author | crobibero <cody@robibe.ro> | 2021-01-24 14:36:36 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2021-01-24 14:36:36 -0700 |
| commit | ef97ead707a100f1599d22a7b37095ed6f3fd041 (patch) | |
| tree | 5d0afe82e04fa9ec2ffb1f0483154fc6cf130c82 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | 98a4e1b8402c37703344113e302167b5e2721d5f (diff) | |
Fix openapi nullable properties
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(); |
