MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / ExplainFormat

Enum ExplainFormat

crates/flowtrace-cli/src/explain.rs:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#[derive(Clone, Copy, Debug, clap::ValueEnum)]
26#[clap(rename_all = "snake_case")]
27pub enum ExplainFormat {
28 /// Human-readable schema (default; kubectl-explain style).
29 Plaintext,
30 /// Minimal valid JSON instance for the type.
31 Example,
32 /// Raw JSON Schema (Draft 2020-12 via schemars).
33 Jsonschema,
34}
35
36/// Entry point: render the schema rooted at `path` in the requested format.
37pub fn explain(path: &str, fmt: ExplainFormat) -> Result<String> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…