Skip to content

Commit

Permalink
Remove custom policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawxy authored and oskardudycz committed Dec 11, 2023
1 parent 89ce400 commit d48f67b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 91 deletions.
87 changes: 0 additions & 87 deletions src/Marten/Services/Json/SnakeCaseNamingPolicy.cs

This file was deleted.

4 changes: 0 additions & 4 deletions src/Marten/Services/SystemTextJsonSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,7 @@ public EnumStorage EnumStorage
var jsonNamingPolicy = _casing switch
{
Casing.CamelCase => JsonNamingPolicy.CamelCase,
#if NET8_0
Casing.SnakeCase => JsonNamingPolicy.SnakeCaseLower,
#else
Casing.SnakeCase => new JsonSnakeCaseNamingPolicy(),
#endif
_ => null
};

Expand Down

0 comments on commit d48f67b

Please sign in to comment.