pub fn generate(spec: &str) -> Result<Vec<GeneratedFile>, Error>
Generates Rust files from an OpenAPI specification.
Returns an error if the specification cannot be parsed, validated, or rendered.