#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

#1867 in Database interfaces

Download history 803/week @ 2024-07-24 1334/week @ 2024-07-31 1355/week @ 2024-08-07 846/week @ 2024-08-14 661/week @ 2024-08-21 886/week @ 2024-08-28 563/week @ 2024-09-04 774/week @ 2024-09-11 934/week @ 2024-09-18 862/week @ 2024-09-25 411/week @ 2024-10-02 656/week @ 2024-10-09 623/week @ 2024-10-16 605/week @ 2024-10-23 429/week @ 2024-10-30 460/week @ 2024-11-06

2,260 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.5–5MB
~86K SLoC