Expand description
Structures and tools to parse, navigate and validate OpenAPI v3.1 specifications.
Example
match oas3::from_path("path/to/openapi.yaml") {
Ok(spec) => println!("spec: {:?}", spec),
Err(err) => println!("error: {}", err)
}
Re-exports
Modules
- Structures used in parsing and navigating OpenAPI specifications.
- Data validation for JSON structures.
Enums
- Top-level errors.
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 serializing to a JSON string.
- Try serializing to a YAML string.
Type Aliases
- Version 3.1.0 of the OpenAPI specification.