roas
Rust OpenAPI Specification (v2.0, v3.0.X and v3.1.X)
Parsing and generating OpenAPI Specification:
- OpenAPI Specification v2.0
- OpenAPI Specification v3.0.X
- OpenAPI Specification v3.0.0
Usage
Add this to your Cargo.toml:
[]
= { = "0.1.0", = ["v2"] }
Examples
v2.0
use Spec;
use ;
...
let spec = .unwrap;
spec.validate.unwrap;
...