diff options
| author | Cody Robibero <cody@robibe.ro> | 2020-06-02 11:15:08 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-02 11:15:08 -0600 |
| commit | 93bca7ab50e47302fa2a214817088cf2841be3ed (patch) | |
| tree | 276416e33654aed4e3d5ca1d2688f96c20d916f7 /Jellyfin.Server/Models/JsonOptions.cs | |
| parent | 297ab2e423235fd53f8e9e06dc4c15ee789278d3 (diff) | |
| parent | 0e41c4727d84edbf4d7b96c59e0a3d3bec87b633 (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/Models/JsonOptions.cs')
| -rw-r--r-- | Jellyfin.Server/Models/JsonOptions.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Jellyfin.Server/Models/JsonOptions.cs b/Jellyfin.Server/Models/JsonOptions.cs deleted file mode 100644 index 2f0df3d2c..000000000 --- a/Jellyfin.Server/Models/JsonOptions.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Text.Json; - -namespace Jellyfin.Server.Models -{ - /// <summary> - /// Json Options. - /// </summary> - public static class JsonOptions - { - /// <summary> - /// Gets CamelCase json options. - /// </summary> - public static JsonSerializerOptions CamelCase - { - get - { - var options = DefaultJsonOptions; - options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; - return options; - } - } - - /// <summary> - /// Gets PascalCase json options. - /// </summary> - public static JsonSerializerOptions PascalCase - { - get - { - var options = DefaultJsonOptions; - options.PropertyNamingPolicy = null; - return options; - } - } - - /// <summary> - /// Gets base Json Serializer Options. - /// </summary> - private static JsonSerializerOptions DefaultJsonOptions => new JsonSerializerOptions(); - } -} |
