@flutchai/flutch-sdk 0.1.14 → 0.1.15
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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5326,7 +5326,11 @@ var McpConverter = class _McpConverter {
|
|
|
5326
5326
|
let zodProp;
|
|
5327
5327
|
switch (prop.type) {
|
|
5328
5328
|
case "string":
|
|
5329
|
-
|
|
5329
|
+
if (prop.enum && Array.isArray(prop.enum) && prop.enum.length > 0) {
|
|
5330
|
+
zodProp = z.enum(prop.enum);
|
|
5331
|
+
} else {
|
|
5332
|
+
zodProp = z.string();
|
|
5333
|
+
}
|
|
5330
5334
|
break;
|
|
5331
5335
|
case "number":
|
|
5332
5336
|
zodProp = z.number();
|