MCPcopy Index your code
hub / github.com/simstudioai/sim / validateWorkflowSchedules

Function validateWorkflowSchedules

apps/sim/lib/workflows/schedules/validation.ts:175–188  ·  view source on GitHub ↗
(
  blocks: Record<string, BlockState>
)

Source from the content-addressed store, hash-verified

173 * Returns the first validation error found, or success if all are valid
174 */
175export function validateWorkflowSchedules(
176 blocks: Record<string, BlockState>
177): ScheduleValidationResult {
178 const scheduleBlocks = findScheduleBlocks(blocks)
179
180 for (const block of scheduleBlocks) {
181 const result = validateScheduleBlock(block)
182 if (!result.isValid) {
183 return result
184 }
185 }
186
187 return { isValid: true }
188}

Callers 4

deploy.test.tsFile · 0.90
performFullDeployFunction · 0.90
performActivateVersionFunction · 0.90
scheduleValidationCheckFunction · 0.90

Calls 2

findScheduleBlocksFunction · 0.85
validateScheduleBlockFunction · 0.85

Tested by

no test coverage detected