diff options
| author | crobibero <cody@robibe.ro> | 2020-05-21 08:44:15 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-02 08:23:12 -0600 |
| commit | 4fe0beec162d4554f1d6cc3c658b672eafbfa307 (patch) | |
| tree | 25ea221e7927895489d7d8381e45fb29eadcd6db /Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs | |
| parent | 297ab2e423235fd53f8e9e06dc4c15ee789278d3 (diff) | |
Fix Json Enum conversion, map all JsonDefaults properties to API
Diffstat (limited to 'Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs')
| -rw-r--r-- | Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs b/Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs index e6ad6dfb13..989c8ecea2 100644 --- a/Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs +++ b/Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs @@ -1,4 +1,4 @@ -using Jellyfin.Server.Models; +using MediaBrowser.Common.Json; using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.Net.Http.Headers; @@ -12,7 +12,7 @@ namespace Jellyfin.Server.Formatters /// <summary> /// Initializes a new instance of the <see cref="CamelCaseJsonProfileFormatter"/> class. /// </summary> - public CamelCaseJsonProfileFormatter() : base(JsonOptions.CamelCase) + public CamelCaseJsonProfileFormatter() : base(JsonDefaults.CamelCase) { SupportedMediaTypes.Clear(); SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("application/json;profile=\"CamelCase\"")); |
