Skip to main content

load_file

Function load_file 

Source
pub fn load_file<S: AsRef<str>>(path: S) -> Result<RootSchema>
Expand description

Load a YAML schema from a file. Delegates to the load_from_doc function to load the schema from the first document. Sets base_uri to the canonical file URL for resolving relative $ref values.