Crates.io | oas3 |
lib.rs | oas3 |
version | 0.19.0 |
created_at | 2019-08-09 15:54:26.388152+00 |
updated_at | 2025-08-26 22:42:21.947539+00 |
description | Structures and tools to parse, navigate, and validate OpenAPI v3.1.xß specifications |
homepage | |
repository | https://github.com/x52dev/oas3-rs |
max_upload_size | |
id | 155384 |
size | 166,320 |
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.
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)
}