fix(serializer): validate required fields for blocks without tools (#3137)

This commit is contained in:
Waleed
2026-02-04 16:47:18 -08:00
committed by GitHub
parent fce566cc2f
commit 36ec68d93e
4 changed files with 231 additions and 58 deletions

View File

@@ -259,6 +259,38 @@ export const mockBlockConfigs: Record<string, any> = {
],
inputs: {},
},
wait: {
name: 'Wait',
description: 'Pause workflow execution for a specified time delay',
category: 'blocks',
bgColor: '#F59E0B',
tools: {
access: [],
},
subBlocks: [
{
id: 'timeValue',
title: 'Wait Amount',
type: 'short-input',
placeholder: '10',
required: true,
},
{
id: 'timeUnit',
title: 'Unit',
type: 'dropdown',
required: true,
},
],
inputs: {
timeValue: { type: 'string' },
timeUnit: { type: 'string' },
},
outputs: {
waitDuration: { type: 'number' },
status: { type: 'string' },
},
},
}
/**