mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Merge pull request #14888 from peppy/rename-json-key-resolver
Rename JSON key resolver to better expose what it's doing
This commit is contained in:
commit
ce3cf72a77
@ -22,7 +22,7 @@ namespace osu.Game.IO.Serialization
|
||||
ObjectCreationHandling = ObjectCreationHandling.Replace,
|
||||
DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate,
|
||||
Converters = new List<JsonConverter> { new Vector2Converter() },
|
||||
ContractResolver = new KeyContractResolver()
|
||||
ContractResolver = new SnakeCaseKeyContractResolver()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace osu.Game.IO.Serialization
|
||||
{
|
||||
public class KeyContractResolver : DefaultContractResolver
|
||||
public class SnakeCaseKeyContractResolver : DefaultContractResolver
|
||||
{
|
||||
protected override string ResolvePropertyName(string propertyName)
|
||||
{
|
Loading…
Reference in New Issue
Block a user