lesson_check
Check a draft whose help you have written, and return the card a parent reads.
Pass the whole draft lesson_draft returned, with every question’s help filled. It is assembled into a lesson file and checked as the import would check it. ok true returns the card (per question: prompt, key, rungs, twin, source, licence, why drawn; and what was left out), the lesson_file path, play_path and lesson_id. ok false lists errors by step id: fix those questions and call lesson_check again.
Inputs
Section titled “Inputs”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
draft |
object |
yes |
Output
Section titled “Output”With ok true: the card a parent reads (per question its prompt, key, rungs, twin, source, licence and why it was drawn, and what was left out), the lesson_file path, play_path, lesson_id and questions. With ok false: errors, each a step_id and a message, and the lesson_file path when the file was written.