Function from_path

Source
pub fn from_path<P>(path: P) -> Result<Spec, Error>
where P: AsRef<Path>,
Expand description

Open a path and read in the file, converting it to an OpenAPI Spec