mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 07:12:54 +08:00
Fix some regressions in json output (we need to make all these explicit instead)
This commit is contained in:
parent
ccddf9b47d
commit
deb108816c
@ -36,6 +36,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public BeatmapMetadata Metadata { get; set; } = null!;
|
public BeatmapMetadata Metadata { get; set; } = null!;
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[Backlink(nameof(ScoreInfo.BeatmapInfo))]
|
[Backlink(nameof(ScoreInfo.BeatmapInfo))]
|
||||||
public IQueryable<ScoreInfo> Scores { get; } = null!;
|
public IQueryable<ScoreInfo> Scores { get; } = null!;
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using osu.Game.Extensions;
|
using osu.Game.Extensions;
|
||||||
@ -27,6 +28,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public DateTimeOffset DateAdded { get; set; }
|
public DateTimeOffset DateAdded { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public IBeatmapMetadataInfo Metadata => Beatmaps.FirstOrDefault()?.Metadata ?? new BeatmapMetadata();
|
public IBeatmapMetadataInfo Metadata => Beatmaps.FirstOrDefault()?.Metadata ?? new BeatmapMetadata();
|
||||||
|
|
||||||
public IList<BeatmapInfo> Beatmaps { get; } = null!;
|
public IList<BeatmapInfo> Beatmaps { get; } = null!;
|
||||||
|
Loading…
Reference in New Issue
Block a user