Skip to main content

load

Function load 

Source
pub fn load(path: impl AsRef<Path>) -> Result<LoadedSchema, LoadError>
Expand description

Load a schema from a file or directory.

  • If path is a file: parse the single file.
  • If path is a directory: recursively find *.prax, parse each, merge with collision detection, then validate the merged AST.