Skip to content

Commit ea5bce6

Browse files
committed
test: refresh config schema validation fixtures (#76633)
1 parent d816efe commit ea5bce6

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎src/cli/config-cli.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,10 +1597,8 @@ describe("config cli", () => {
15971597
fs.writeFileSync(
15981598
pathname,
15991599
JSON.stringify({
1600-
channels: {
1601-
discord: {
1602-
typo: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" },
1603-
},
1600+
gateway: {
1601+
typo: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" },
16041602
},
16051603
}),
16061604
"utf8",
@@ -1618,7 +1616,7 @@ describe("config cli", () => {
16181616
expect(mockError).toHaveBeenCalledWith(
16191617
expect.stringContaining("Dry run failed: config schema validation failed."),
16201618
);
1621-
expect(mockError).toHaveBeenCalledWith(expect.stringContaining("channels.discord"));
1619+
expect(mockError).toHaveBeenCalledWith(expect.stringContaining("gateway"));
16221620
expect(mockError).toHaveBeenCalledWith(expect.stringContaining('"typo"'));
16231621
});
16241622

‎src/config/schema.base.generated.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21989,12 +21989,13 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {
2198921989
"Web channel runtime settings for heartbeat and reconnect behavior when operating web-based chat surfaces. Use reconnect values tuned to your network reliability profile and expected uptime needs.",
2199021990
},
2199121991
channels: {
21992+
type: "object",
21993+
properties: {},
21994+
additionalProperties: true,
2199221995
title: "Channels",
2199321996
description:
2199421997
"Channel provider configurations plus shared defaults that control access policies, heartbeat visibility, and per-surface behavior. Keep defaults centralized and override per provider only where required.",
21995-
properties: {},
2199621998
required: [],
21997-
additionalProperties: true,
2199821999
},
2199922000
discovery: {
2200022001
type: "object",

0 commit comments

Comments
 (0)