generate_openapi_types

Function generate_openapi_types 

Source
pub fn generate_openapi_types(
    openapi: OpenApi,
    config: FilterConfig,
) -> Result<String, Box<dyn Error>>
Expand description

Generates types according to the OpenAPI specification to a String

ยงExample

let s = generate_openapi_types(
    OpenApi::from_file("../schema.json"),
    FilterConfig::from_file("../config.json")
).unwrap();
println!("{s:?}");