An off-air channel has no current playout item, so the handler returns null for NowPlaying; the DTO now declares that (file-scoped #nullable — ErsatzTV.Core has NRT disabled project-wide). Regenerated OpenAPI and web types: nowPlaying keeps its nullable oneOf schema (matching the schema contract test) and channelNumber loses a spurious nullable annotation left over from an earlier draft — the field is required. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
10 lines
208 B
C#
10 lines
208 B
C#
namespace ErsatzTV.Core.Api.Channels;
|
|
|
|
#nullable enable
|
|
|
|
public record ChannelStateResponseModel(
|
|
int ChannelId,
|
|
string ChannelNumber,
|
|
bool OnAir,
|
|
ChannelNowPlayingResponseModel? NowPlaying);
|