mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Call n8n Sub-Workflow Tool Node): Fix json type when using $fromAI (#13102)
This commit is contained in:
@@ -319,7 +319,7 @@ describe('createNodeAsTool', () => {
|
||||
|
||||
const tool = createNodeAsTool(options).response;
|
||||
|
||||
expect(tool.schema.shape.complexJson._def.innerType).toBeInstanceOf(z.ZodRecord);
|
||||
expect(tool.schema.shape.complexJson._def.innerType).toBeInstanceOf(z.ZodEffects);
|
||||
expect(tool.schema.shape.complexJson.description).toBe('Param with complex JSON default');
|
||||
expect(tool.schema.shape.complexJson._def.defaultValue()).toEqual({
|
||||
nested: { key: 'value' },
|
||||
|
||||
Reference in New Issue
Block a user