Skip to main content

validate_pack

Function validate_pack 

Source
pub fn validate_pack(pack: &ContentPack) -> Result<(), String>
Expand description

Validate a parsed pack: supported version, non-empty name, size caps, and well-formed routines (non-empty id/label, 1..=N steps with non-empty text and a sane duration, no duplicate ids within the pack). Returns a clear, user-facing error on the first problem.