The Free Software Media System - Server Backend & API
Change swagger dictionary type mapping
David08401f923dbe
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.csindex 821a52e476..aad61d0429 100644--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs@@ -216,6 +216,9 @@ namespace Jellyfin.Server.Extensions})});+ /*+ * Support BlurHash dictionary+ */options.MapType<Dictionary<ImageType, Dictionary<string, string>>>(() =>new OpenApiSchema{@@ -224,8 +227,17 @@ namespace Jellyfin.Server.Extensionsname => name,name => new OpenApiSchema{- Type = "string",- Format = "string"+ Type = "object", Properties = new Dictionary<string, OpenApiSchema>+ {+ {+ "string",+ new OpenApiSchema+ {+ Type = "string",+ Format = "string"+ }+ }+ }})});}