Skip to content

Commit 76e81ea

Browse files
committed
fix: update mcp_server tests to expect additionalProperties on nested schemas
1 parent 5cfe538 commit 76e81ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/prompts/tools/native-tools/__tests__/mcp_server.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ describe("getMcpServerTools", () => {
158158
expect(getFunction(result[0]).parameters).toEqual({
159159
type: "object",
160160
properties: {
161-
requiredField: { type: "string" },
162-
optionalField: { type: "number" },
161+
requiredField: { type: "string", additionalProperties: false },
162+
optionalField: { type: "number", additionalProperties: false },
163163
},
164164
additionalProperties: false,
165165
required: ["requiredField"],
@@ -186,7 +186,7 @@ describe("getMcpServerTools", () => {
186186
expect(getFunction(result[0]).parameters).toEqual({
187187
type: "object",
188188
properties: {
189-
optionalField: { type: "string" },
189+
optionalField: { type: "string", additionalProperties: false },
190190
},
191191
additionalProperties: false,
192192
})

0 commit comments

Comments
 (0)