diff options
| author | Patrick Barron <18354464+barronpm@users.noreply.github.com> | 2020-06-20 16:52:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 16:52:58 +0000 |
| commit | 804764e1fbf71e083479fc4069f90bab96faa84f (patch) | |
| tree | 957a44eed3678ad72e9272b3bc4aa20c939f7d36 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | e26f487fc8c7f0c5e2926c87845d030ff64ab60d (diff) | |
| parent | 68ea589f1af5bc5fdc656013d6e5d1deec99341f (diff) | |
Merge pull request #3363 from Ullmie02/api-user
Move UserService to Jellyfin.Api
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index dbd5ba416..aad61d042 100644 --- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs +++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs @@ -215,6 +215,31 @@ namespace Jellyfin.Server.Extensions Format = "string" }) }); + + /* + * Support BlurHash dictionary + */ + options.MapType<Dictionary<ImageType, Dictionary<string, string>>>(() => + new OpenApiSchema + { + Type = "object", + Properties = typeof(ImageType).GetEnumNames().ToDictionary( + name => name, + name => new OpenApiSchema + { + Type = "object", Properties = new Dictionary<string, OpenApiSchema> + { + { + "string", + new OpenApiSchema + { + Type = "string", + Format = "string" + } + } + } + }) + }); } } } |
