Skip to content
/ oas3-rs Public

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

License

Notifications You must be signed in to change notification settings

x52dev/oas3-rs

This branch is up to date with main.

Folders and files

NameName
Last commit message
Last commit date
Feb 17, 2025
Dec 29, 2024
Feb 10, 2025
Dec 29, 2024
Oct 11, 2024
Jun 30, 2024
Oct 11, 2024
Aug 18, 2024
Feb 10, 2025
Feb 10, 2025
Oct 14, 2020
Oct 9, 2024
Jan 27, 2025
Jan 27, 2025
Oct 14, 2024
Jun 30, 2024
Aug 19, 2019

Repository files navigation

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