#oas #swagger #openapi

oas3

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

25 releases (breaking)

0.19.0 Aug 26, 2025
0.17.0 Jul 14, 2025
0.15.0 Feb 10, 2025
0.13.1 Dec 29, 2024
0.0.1 Aug 9, 2019

#133 in Parser implementations

Download history 8039/week @ 2025-05-29 7557/week @ 2025-06-05 8592/week @ 2025-06-12 9549/week @ 2025-06-19 7886/week @ 2025-06-26 29967/week @ 2025-07-03 35556/week @ 2025-07-10 33454/week @ 2025-07-17 17468/week @ 2025-07-24 9196/week @ 2025-07-31 7279/week @ 2025-08-07 5887/week @ 2025-08-14 5082/week @ 2025-08-21 4523/week @ 2025-08-28 7570/week @ 2025-09-04 4559/week @ 2025-09-11

22,567 downloads per month
Used in 18 crates (14 directly)

MIT license

145KB
2K SLoC

oas3

crates.io Documentation dependency status MIT or Apache 2.0 licensed
CI codecov Version Download

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

Note that due to v3.1.x being a breaking change from v3.0.x, you may have trouble correctly parsing specs in the older format.

Example

let yaml = std::fs::read_to_string("path/to/openapi.yml").unwrap();

match oas3::from_yaml(yaml) {
  Ok(spec) => println!("spec: {:?}", spec),
  Err(err) => println!("error: {}", err)
}

Dependencies

~5.5–8.5MB
~145K SLoC