mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Merge pull request #20968 from peppy/fix-rank-serialisation
Fix `SoloScoreInfo.Rank` not being serialised if rank is `D`
This commit is contained in:
commit
bdc6755ee2
@ -44,7 +44,8 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
public int MaxCombo { get; set; }
|
public int MaxCombo { get; set; }
|
||||||
|
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[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; }
|
public ScoreRank Rank { get; set; }
|
||||||
|
|
||||||
[JsonProperty("started_at")]
|
[JsonProperty("started_at")]
|
||||||
|
Loading…
Reference in New Issue
Block a user