fix(guild_chat): wait_interval as raw int + capture-replay request field name

Remove StringifiedIntConverter from GuildChatMessagesResponse.WaitInterval so the
wire emits a raw JSON number (3) matching prod, not a quoted string ("3").
Update GuildChatPollTests (2 assertions) and GuildCaptureReplayTests (1 assertion +
comment) to expect JsonValueKind.Number. Fix last_message_id → start_message_id typo
in GuildChatMessages_Member_ReturnsProdShape request body.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-27 15:40:30 -04:00
parent 6467223b52
commit 754b2ca466
3 changed files with 15 additions and 18 deletions

View File

@@ -1,6 +1,5 @@
using MessagePack;
using System.Text.Json.Serialization;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
using SVSim.EmulatedEntrypoint.Models.Dtos.Common.Guild;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.GuildChat;
@@ -25,7 +24,7 @@ public class GuildChatMessagesResponse
public List<ChatMessageDto> ChatMessage { get; set; } = new();
/// <summary>Server-driven polling interval in seconds. Client uses this for the next poll.</summary>
[JsonPropertyName("wait_interval"), Key("wait_interval"), JsonConverter(typeof(StringifiedIntConverter)),
[JsonPropertyName("wait_interval"), Key("wait_interval"),
JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public int WaitInterval { get; set; }
}