softprops / openapi

openapi schema serialization for rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

open api Build Status Software License crates.io

Rust crate for serializing and deserializing open api documents

Documentation

install

add the following to your Cargo.toml file

[dependencies]
openapi = "0.1"

usage

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

About

openapi schema serialization for rust

License:MIT License


Languages

Language:Rust 100.0%