Skip to main content

openapi_from_routes

Function openapi_from_routes 

Source
pub fn openapi_from_routes(routes: &[SqlRoute], info: &OpenApiInfo) -> Value
Expand description

Build an OpenAPI 3.1 document from a list of SQL-derived routes. The returned Value is ready to be serde_json::to_writer_pretty-ed to disk.