Skip to main content

openapi

Function openapi 

Source
pub fn openapi() -> Value
Expand description

The OpenAPI 3.1 document of router, its schemas generated from the workflow view types (spec 3.3 §12).

§Example

let document = adk_surface::web::workflow::openapi();
assert!(document["components"]["schemas"]["WorkflowRun"].is_object());