fix(ci): repair phone control and cron schema gates · openclaw/openclaw@9dd7f04
vincentkoc
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -477,22 +477,18 @@ describe("cron tool", () => {
|
477 | 477 | expect(jobDelivery?.properties?.channel?.type).toBe("string"); |
478 | 478 | expect(jobDelivery?.properties?.failureDestination?.anyOf).toBeUndefined(); |
479 | 479 | expect(jobDelivery?.properties?.failureDestination?.type).toBe("object"); |
480 | | -expect(patch?.properties?.agentId?.anyOf?.map((entry) => entry.type)).toEqual([ |
481 | | -"string", |
482 | | -"null", |
483 | | -]); |
484 | | -expect(patch?.properties?.sessionKey?.anyOf?.map((entry) => entry.type)).toEqual([ |
485 | | -"string", |
486 | | -"null", |
487 | | -]); |
488 | | -expect(payload?.properties?.toolsAllow?.anyOf?.map((entry) => entry.type)).toEqual([ |
489 | | -"array", |
490 | | -"null", |
491 | | -]); |
492 | | -expect(delivery?.properties?.channel?.anyOf?.map((entry) => entry.type)).toEqual([ |
493 | | -"string", |
494 | | -"null", |
495 | | -]); |
| 480 | +expect(patch?.properties?.agentId?.anyOf).toBeUndefined(); |
| 481 | +expect(patch?.properties?.agentId?.type).toBe("string"); |
| 482 | +expect(patch?.properties?.agentId?.description).toContain("null to clear"); |
| 483 | +expect(patch?.properties?.sessionKey?.anyOf).toBeUndefined(); |
| 484 | +expect(patch?.properties?.sessionKey?.type).toBe("string"); |
| 485 | +expect(patch?.properties?.sessionKey?.description).toContain("null to clear"); |
| 486 | +expect(payload?.properties?.toolsAllow?.anyOf).toBeUndefined(); |
| 487 | +expect(payload?.properties?.toolsAllow?.type).toBe("array"); |
| 488 | +expect(payload?.properties?.toolsAllow?.description).toContain("null to clear"); |
| 489 | +expect(delivery?.properties?.channel?.anyOf).toBeUndefined(); |
| 490 | +expect(delivery?.properties?.channel?.type).toBe("string"); |
| 491 | +expect(delivery?.properties?.channel?.description).toContain("null to clear"); |
496 | 492 | expect(delivery?.properties?.failureDestination?.anyOf?.map((entry) => entry.type)).toEqual([ |
497 | 493 | "object", |
498 | 494 | "null", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -79,7 +79,7 @@ function nullableStringArraySchema(description: string) {
|
79 | 79 | |
80 | 80 | function deliveryStringSchema(params: { description: string; nullableClears: boolean }) { |
81 | 81 | return params.nullableClears |
82 | | - ? nullableStringSchema(params.description) |
| 82 | + ? nullableStringSchema(`${params.description}, or null to clear`) |
83 | 83 | : Type.Optional(Type.String({ description: params.description })); |
84 | 84 | } |
85 | 85 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。