oas3

Crates.iooas3
lib.rsoas3
version0.5.0
sourcesrc
created_at2019-08-09 15:54:26.388152
updated_at2024-05-18 20:09:52.170752
descriptionStructures and tools to parse, navigate and validate OpenAPI v3 specifications.
homepage
repositoryhttps://github.com/x52dev/oas3-rs
max_upload_size
id155384
size235,477
Rob Ede (robjtede)

documentation

README

OAS3

Structures and tools to parse, navigate and validate OpenAPI v3 Spec files.

Based on v3 parts of the openapi crate by softprops.

Additional features:

  • Validation constructors
  • Example request/response validation
  • Live API conformance testing

Install

add the following to your Cargo.toml file

[dependencies]
oas3 = "0.4"

Usage

extern crate oas3;

fn main() {
  match oas3::from_path("path/to/openapi.yaml") {
    Ok(spec) => println!("spec: {:?}", spec),
    Err(err) => println!("error: {}", err)
  }
}
Commit count: 79

cargo fmt