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
22,567 downloads per month
Used in 18 crates
(14 directly)
145KB
2K
SLoC
oas3
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