File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/core/prompts/tools/native-tools/__tests__ Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments