feat: v4.0 - multi-day horizontal canvas, duration input, overnight blocks, PDF horizontal layout
Some checks failed
Build & Push Docker / build (push) Has been cancelled
Some checks failed
Build & Push Docker / build (push) Has been cancelled
This commit is contained in:
@@ -33,8 +33,9 @@ async def validate_scenario(doc: ScenarioDocument):
|
||||
for i, block in enumerate(doc.blocks):
|
||||
if block.type_id not in type_ids:
|
||||
errors.append(f"Block {i+1}: unknown type '{block.type_id}'")
|
||||
if block.start >= block.end:
|
||||
errors.append(f"Block {i+1}: start time must be before end time")
|
||||
if block.start == block.end:
|
||||
errors.append(f"Block {i+1}: start time must differ from end time")
|
||||
# Note: end < start is allowed for overnight blocks (block crosses midnight)
|
||||
|
||||
return ValidationResponse(valid=len(errors) == 0, errors=errors)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user