Skip to main content

load_schema

Function load_schema 

Source
pub fn load_schema(path: &Path) -> Result<Value, ResolveError>
Expand description

Load a schema from a file path.

§Errors

Returns ResolveError::FileNotFound if the file doesn’t exist, or ResolveError::InvalidJson if the file isn’t valid JSON.