Merge pull request #20968 from peppy/fix-rank-serialisation

Fix `SoloScoreInfo.Rank` not being serialised if rank is `D`
This commit is contained in:
Dan Balasescu
2022-10-28 12:29:11 +09:00
committed by GitHub

View File

@ -44,7 +44,8 @@ namespace osu.Game.Online.API.Requests.Responses
public int MaxCombo { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("rank")]
// ScoreRank is aligned to make 0 equal D. We still want to serialise this (even when DefaultValueHandling.Ignore is used).
[JsonProperty("rank", DefaultValueHandling = DefaultValueHandling.Include)]
public ScoreRank Rank { get; set; }
[JsonProperty("started_at")]