Function openapi
Source pub fn openapi() -> Value
Expand description
The OpenAPI 3.1 document of router, its schemas generated from the
Rust types (spec 3.3 §6). Paths are under /api.
§Example
let document = adk_surface::web::openapi();
assert_eq!(document["openapi"], "3.1.0");
assert!(document["components"]["schemas"]["DecisionCard"].is_object());