mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-05 04:05:14 -05:00
fix(serializer): validate required fields for blocks without tools (#3137)
This commit is contained in:
@@ -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' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user