apple-bloom 0.1.8

Rust bindings for openapi schemas
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::Result;

fn main() -> Result<()> {
    if let Some(path) = std::env::args().nth(1) {
        let spec = apple_bloom::from_path(path)?;
        /*for (path, op) in spec.paths {
            println!("{}", path);
            println!("{:#?}", op);
        }
        for (name, definition) in spec.definitions {
            println!("{}", name);
            println!("{:#?}", definition);
        }*/
        println!("{}", apple_bloom::to_json(&spec)?);
    }
    Ok(())
}