Skip to main content

validate_world_jsonl

Function validate_world_jsonl 

Source
pub fn validate_world_jsonl(
    content: &str,
    assets_dir: Option<&Path>,
) -> Result<(), Error>
Expand description

Validate world JSONL without running compilation. Runs the full front half of the pipeline (load, expand, semantic checks) plus a per-asset type/args resolution, but stops short of compiling payloads: intended for fast server-side pre-deploy checks where shader compilation is not needed. assets_dir is the asset search root the expansion passes resolve their sources and presets against. Every problem found is reported in a single newline-joined error.