Skip to main content

graph_schema

Function graph_schema 

Source
pub fn graph_schema() -> Value
Expand description

Returns the graph document’s JSON Schema as a serde_json::Value.

This is the single source of truth for the document format: editors read it for autocomplete and inline validation, and the future per-language builders generate from it so a Rust, Python, or TypeScript author reduces to the same canonical JSON. It is derived from the Graph types by schemars, so it can never drift from what this crate actually parses.