validate
Validate the entire context configuration. Called automatically during SWML rendering, but can be called manually to catch errors early.
Checks performed:
- At least one context exists.
- A single context is named
"default". - Every context has at least one step.
- All step-level
valid_stepsreferences point to steps that exist within the same context (the special value"next"is always allowed). - All
valid_contextsreferences at the context level point to contexts that exist in the builder. - All
valid_contextsreferences at the step level point to contexts that exist in the builder. - All
gather_infoconfigurations have at least one question, no duplicate keys, and validcompletion_actiontargets.
Returns
None — Raises ValueError with a descriptive message if validation fails.