9 releases (breaking)
0.7.0 | Jul 25, 2021 |
---|---|
0.6.0 | May 6, 2021 |
0.5.0 | Mar 31, 2020 |
0.4.0 | Jan 25, 2020 |
0.1.0 | Jan 22, 2020 |
#1867 in Database interfaces
2,260 downloads per month
Used in 5 crates
(2 directly)
65KB
608 lines
open api
Rust crate for serializing and deserializing open api documents
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
lib.rs
:
Openapi provides structures and support for serializing and deserializing openapi specifications
Examples
Typical use deserialing an existing to a persisted spec to rust form or visa versa
The hyper client should be configured with tls.
Dependencies
~3.5–5MB
~86K SLoC