Rename JSON key resolver to better expose what it's doing

This commit is contained in:
Dean Herbert
2021-09-29 11:26:37 +09:00
parent 1567faa7b2
commit 117d47bf7f
2 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1,16 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Humanizer;
using Newtonsoft.Json.Serialization;
namespace osu.Game.IO.Serialization
{
public class SnakeCaseKeyContractResolver : DefaultContractResolver
{
protected override string ResolvePropertyName(string propertyName)
{
return propertyName.Underscore();
}
}
}