This repository was archived by the owner on Jul 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ private function convertTypes(array $elements): ?array
9898
9999 if ($ type ->isNullable ()) {
100100 $ schema ['type ' ] = [$ schema ['type ' ], 'null ' ];
101- } else {
101+ } elseif (!( $ element instanceof \ReflectionParameter && $ element -> isOptional ())) {
102102 $ result ['required ' ][] = $ name ;
103103 }
104104
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public function buildParametersDefinitionOptional(): void
153153 'description ' => 'A number given to the tool ' ,
154154 ],
155155 ],
156- 'required ' => ['text ' , ' number ' ],
156+ 'required ' => ['text ' ],
157157 'additionalProperties ' => false ,
158158 ];
159159
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function toolsMap(): void
100100 'description ' => 'A number given to the tool ' ,
101101 ],
102102 ],
103- 'required ' => ['text ' , ' number ' ],
103+ 'required ' => ['text ' ],
104104 'additionalProperties ' => false ,
105105 ],
106106 ],
@@ -249,7 +249,7 @@ public function toolboxMapWithOverrideViaChain(): void
249249 'description ' => 'A number given to the tool ' ,
250250 ],
251251 ],
252- 'required ' => ['text ' , ' number ' ],
252+ 'required ' => ['text ' ],
253253 'additionalProperties ' => false ,
254254 ],
255255 ],
You can’t perform that action at this time.
0 commit comments