escriba-spec 0.1.11

Generated OpenAPI 3.1 specs — committed in-tree, regenerated by escriba-api, gated by CI. The editor's public-API source of truth.
1
2
3
4
5
6
7
8
9
10
//! `escriba-spec-dump` — emit the full OpenAPI 3.1 spec.
fn main() {
    let spec = escriba_spec::build_spec();
    let yaml = std::env::args().any(|a| a == "--yaml");
    if yaml {
        print!("{}", spec.to_yaml());
    } else {
        println!("{}", spec.to_json_pretty());
    }
}