Build the root JsonSchema for `reply` / `state` / `trace` / `run_detail`.
(root: &str)
| 69 | |
| 70 | /// Build the root JsonSchema for `reply` / `state` / `trace` / `run_detail`. |
| 71 | fn root_schema_for(root: &str) -> RootSchema { |
| 72 | match root { |
| 73 | "reply" => schema_for!(flowtrace_core::output::StructuredOutput), |
| 74 | "state" => schema_for!(flowtrace_core::state::RunState), |
| 75 | "trace" => schema_for!(flowtrace_core::schema::Trace), |
| 76 | "run_detail" => schema_for!(crate::serve::routes::runs::RunDetail), |
| 77 | _ => unreachable!("ROOTS filter guarantees one of these"), |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | /// Walk a dotted path through a schema, following `properties`, items, |
| 82 | /// `oneOf` variant tags, and `$ref` indirections. Returns the SchemaObject at |
no outgoing calls
no test coverage detected
searching dependent graphs…