@strand-js/core 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -467,6 +467,7 @@ function toolToJsonSchema(tool2) {
|
|
|
467
467
|
const schema = (0, import_zod_to_json_schema.zodToJsonSchema)(tool2.parameters, { target: "openApi3" });
|
|
468
468
|
const inner = schema;
|
|
469
469
|
delete inner["$schema"];
|
|
470
|
+
if (!inner["type"]) inner["type"] = "object";
|
|
470
471
|
return inner;
|
|
471
472
|
}
|
|
472
473
|
|
package/dist/index.mjs
CHANGED