x52dev / oas3-rs

Structures and tools to parse, navigate and validate OpenAPI v3 specifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)
  }
}

About

Structures and tools to parse, navigate and validate OpenAPI v3 specifications.

License:MIT License


Languages

Language:Rust 99.9%Language:Shell 0.1%