Rust crate for serializing and deserializing open api documents
add the following to your Cargo.toml
file
[dependencies]
openapi = "0.1"
extern crate openapi;
fn main() {
match openapi::from_path("path/to/openapi.yaml") {
Ok(spec) => println!("spec: {:?}", spec),
Err(err) => println!("error: {}", err)
}
}
Doug Tangren (softprops) 2017