oas3 0.20.0

Structures and tools to parse, navigate, and validate OpenAPI v3.1.xß specifications
docs.rs failed to build oas3-0.20.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: oas3-0.19.0

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