Skip to content
Prev Previous commit
Next Next commit
add comment
Signed-off-by: luojiyin <luojiyin@hotmail.com>
  • Loading branch information
luojiyin1987 committed Mar 14, 2025
commit 7cf78545dea76d7f1ea701f0e51c7eefd1215121
1 change: 1 addition & 0 deletions aiscript-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ async fn run_server(
}
}

// Generate OpenAPI JSON from routes
fn generate_openapi_json(routes: &[ast::Route]) -> serde_json::Value {
let mut openapi = serde_json::json!({
"openapi": "3.0.0",
Expand Down