Skip to main content

load_samples

Function load_samples 

Source
pub fn load_samples(subpath: &str) -> Vec<Sample>
Expand description

Load all .json samples from an embedded subdirectory of SPEC_DIR.

subpath is relative to the spec root, e.g. "v1_0/catalogs/minimal/examples". Direct children only (not recursive). Files are sorted by filename; files that fail to parse are skipped silently.