@devries-cameron20 / composio Mirror · read-only / commits / ab460f250
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 05:45 UTC

fix: correct label formatting and empty path handling in transform warnings

- Add missing "for" preposition so label reads "failed for X:" not "failed X:" - Fall back to 'parameter' when Zod issue path is empty, matching ValidationErrors.ts

Ratnaditya-J committed Feb 27, 2026 at 22:50 UTC ab460f250cbbfb9c68b4e12488f9eaa16cce17f0
1 file changed +2 -2
ts/packages/core/src/utils/transform.ts
+2 -2
@@ -26,9 +26,9 @@ export function transform<RawInput>(raw: RawInput) {
26 const result = schema.safeParse(transformed);
27
28 if (!result.success) {
29 - const label = options?.label ? ` ${options.label}` : '';
29 + const label = options?.label ? ` for ${options.label}` : '';
30 const issues = result.error.issues
31 - .map(issue => ` - ${issue.path.join('.')}: ${issue.message}`)
31 + .map(issue => ` - ${issue.path.join('.') || 'parameter'}: ${issue.message}`)
32 .join('\n');
33 logger.warn(`Transform validation failed${label}:\n${issues}`);
34 return transformed;