20 releases (breaking)
new 0.16.0 | Apr 3, 2025 |
---|---|
0.15.0 | Feb 10, 2025 |
0.14.0 | Jan 27, 2025 |
0.13.1 | Dec 29, 2024 |
0.0.1 | Aug 9, 2019 |
#269 in Parser implementations
3,919 downloads per month
Used in 10 crates
(9 directly)
140KB
1.5K
SLoC
oas3
Structures and tools to parse, navigate and validate OpenAPI v3.1 specifications.
Note that due to v3.1 being a breaking change from v3.0, 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–8MB
~142K SLoC