Crate oas3

source
Expand description

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

match oas3::from_path("path/to/openapi.yml") {
  Ok(spec) => println!("spec: {:?}", spec),
  Err(err) => println!("error: {}", err)
}

Re-exports§

Modules§

  • Structures used in parsing and navigating OpenAPI specifications.

Enums§

Functions§

  • Try deserializing an OpenAPI spec (YAML or JSON) from a file, giving the path.
  • Try deserializing an OpenAPI spec (YAML or JSON) from a Read type.
  • Try deserializing an OpenAPI spec (YAML or JSON) from string.
  • Try serializing to a JSON string.
  • Try serializing to a YAML string.

Type Aliases§