aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2020-06-02 11:15:08 -0600
committerGitHub <noreply@github.com>2020-06-02 11:15:08 -0600
commit93bca7ab50e47302fa2a214817088cf2841be3ed (patch)
tree276416e33654aed4e3d5ca1d2688f96c20d916f7 /Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs
parent297ab2e423235fd53f8e9e06dc4c15ee789278d3 (diff)
parent0e41c4727d84edbf4d7b96c59e0a3d3bec87b633 (diff)
Merge pull request #3153 from crobibero/api-json-enum
Fix Json Enum conversion, map all JsonDefaults properties to API
Diffstat (limited to 'Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs')
-rw-r--r--Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs b/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs
index 675f4c79e..69963b3fb 100644
--- a/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs
+++ b/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.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="PascalCaseJsonProfileFormatter"/> class.
/// </summary>
- public PascalCaseJsonProfileFormatter() : base(JsonOptions.PascalCase)
+ public PascalCaseJsonProfileFormatter() : base(JsonDefaults.PascalCase)
{
SupportedMediaTypes.Clear();
// Add application/json for default formatter