Preserve native null aliases in prepared glossaries

This commit is contained in:
2026-11-27 21:18:00 +00:00
parent 447888e062
commit eb5e912fa3
7 changed files with 74 additions and 6 deletions

View File

@@ -180,7 +180,7 @@ func TestAuditaBinaryCompatibility(t *testing.T) {
}))
defer server.Close()
cfg := testConfig(t)
mustWriteTestFile(t, *cfg.Session.Inputs.GlossaryFile, "campaign:\n instruction: Preserve campaign names.\n entries: [{id: watch, name: Silver Watch, category: organization}]\n")
mustWriteTestFile(t, *cfg.Session.Inputs.GlossaryFile, "campaign:\n instruction: Preserve campaign names.\n entries: [{id: watch, name: Silver Watch, category: organization, aliases: null}]\n")
settingPath := filepath.Join(filepath.Dir(cfg.CampaignPath), "setting.yml")
spellsPath := filepath.Join(filepath.Dir(cfg.CampaignPath), "spells.yml")
mustWriteTestFile(t, settingPath, "setting: {instruction: Preserve place names., entries: [{id: harbor, name: Harbor, category: place}]}\n")