The Free Software Media System - Server Backend & API
Add nullable dictionary openapi mapping
Cody Robiberobb377b146677
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.csindex e853609d69..fa98fda69e 100644--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs@@ -416,6 +416,18 @@ namespace Jellyfin.Server.Extensions}})});++ // Support dictionary with nullable string value.+ options.MapType<Dictionary<string, string?>>(() =>+ new OpenApiSchema+ {+ Type = "object",+ AdditionalProperties = new OpenApiSchema+ {+ Type = "string",+ Nullable = true+ }+ });}}}