fix: validate interrupt resume payloads

This commit is contained in:
lda
2026-07-01 05:55:48 +07:00 Verified
parent b56f492d80
commit b16676665d
2 changed files with 50 additions and 1 deletions
+6
View File
@@ -114,6 +114,12 @@ def resume_interrupt(
f"interrupt node {step.id!r} does not declare resume outcome {resume_outcome!r}"
)
validate_payload_against_schema(
step.resume_schema,
resume_payload,
f"interrupt resume for {step.id}",
)
patch = build_output_patch(
workflow,
step.resume,