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 |
#1317 in Authentication
1,815 downloads per month
Used in 4 crates
(2 directly)
65KB
608 lines
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.
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
Dependencies
~4–5.5MB
~91K SLoC