Sections manifest: an absent globalRoomFallback means Roleplay

The Dereth Network README names Roleplay as the room a world usually
borrows for the Global room, so an entry that leaves the fallback out
matches Roleplay until chat shows another room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-11-15 08:39:27 -08:00
commit 01f432d745
2 changed files with 5 additions and 2 deletions

View file

@ -613,6 +613,8 @@ internal static class Program
Check(t.Rules[0].Action == "copy" && t.Rules[0].When == "type:3" && t.Rules[0].Pattern == "^x" && !t.Rules[0].GlobalRoom, "rule 0 fields");
Check(SectionManifestParser.Parse("DW", """{ "contributions": [] }""", out _).ChatTabs.Length == 0, "no chatTabs key = empty array");
var noFallback = SectionManifestParser.Parse("DW", """{ "chatTabs": [ { "server": "dw", "id": "a", "name": "A", "rules": [] } ] }""", out _);
Check(noFallback.ChatTabs.Length == 1 && noFallback.ChatTabs[0].GlobalRoomFallback == "Roleplay", "absent globalRoomFallback = Roleplay");
// Each reject drops the entry, reports it in error, and still parses the other keys.
string section = """ "sections": [ { "id": "quests", "label": "Quests", "order": 150 } ] """;