Fix board template ID key mismatch between client and server
The client sends 'boardTemplateIdOverride' but the server DTO had the property named 'BoardTemplateId' (serializes to 'boardTemplateId'). The JSON key mismatch caused the server to always receive null, so lobby.BoardTemplateIdOverride was never set and the auto-shape ran. Rename BoardTemplateId → BoardTemplateIdOverride throughout CustomRulesOverride and CustomRulesDto to match the client's key. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -125,12 +125,12 @@ public sealed record CustomRulesOverride(
|
||||
/// Board shape. Null or "Default" = auto-select by player count via BoardShapeGenerator.AutoShape.
|
||||
/// Explicit values: "Rectangle" | "Cross" | "Triangular" | "RadialStar" | "HexRing".
|
||||
/// </summary>
|
||||
string? BoardShape = null,
|
||||
string? BoardShape = null,
|
||||
/// <summary>
|
||||
/// When set, use this board template instead of generating a board from BoardShape.
|
||||
/// Null or absent = no template (use shape generator).
|
||||
/// </summary>
|
||||
Guid? BoardTemplateId = null);
|
||||
Guid? BoardTemplateIdOverride = null);
|
||||
|
||||
/// <summary>Join an open custom lobby with the specified deck.</summary>
|
||||
public sealed record JoinCustomLobbyRequest(Guid LobbyId, Guid DeckId, string? Password = null);
|
||||
@@ -718,7 +718,7 @@ public sealed record CustomRulesDto(
|
||||
/// <summary>"Default" = auto by player count; otherwise explicit shape name.</summary>
|
||||
string BoardShape,
|
||||
bool HasPassword,
|
||||
Guid? BoardTemplateId = null);
|
||||
Guid? BoardTemplateIdOverride = null);
|
||||
|
||||
/// <summary>Client-facing lobby preset summary.</summary>
|
||||
public sealed record LobbyPresetDto(
|
||||
|
||||
Reference in New Issue
Block a user