#openapi #swagger #rweb #api-bindings

rweb-openapi

Rust bindings for openapi schemas

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

#1235 in Database interfaces

Download history 800/week @ 2023-12-17 234/week @ 2023-12-24 268/week @ 2023-12-31 665/week @ 2024-01-07 567/week @ 2024-01-14 622/week @ 2024-01-21 892/week @ 2024-01-28 1309/week @ 2024-02-04 2097/week @ 2024-02-11 801/week @ 2024-02-18 1217/week @ 2024-02-25 1445/week @ 2024-03-03 1601/week @ 2024-03-10 1372/week @ 2024-03-17 2045/week @ 2024-03-24 1947/week @ 2024-03-31

6,996 downloads per month
Used in 5 crates (2 directly)

MIT license

65KB
608 lines

open api Build Status Software License

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


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–4MB
~108K SLoC