#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

#1456 in Database interfaces

Download history 1196/week @ 2024-03-13 1926/week @ 2024-03-20 1750/week @ 2024-03-27 1404/week @ 2024-04-03 975/week @ 2024-04-10 844/week @ 2024-04-17 899/week @ 2024-04-24 755/week @ 2024-05-01 283/week @ 2024-05-08 421/week @ 2024-05-15 1275/week @ 2024-05-22 873/week @ 2024-05-29 977/week @ 2024-06-05 1005/week @ 2024-06-12 664/week @ 2024-06-19 1215/week @ 2024-06-26

3,966 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

~2.6–3.5MB
~97K SLoC