Skip to main content

shape_json_schema

Function shape_json_schema 

Source
pub fn shape_json_schema(shape: &dyn Shape) -> Result<String>
Expand description

Render shape as JSON Schema using the seed renderer.

JSON Schema is a concrete dialect, not the neutral grammar form. This helper exists for callers that already consume JSON Schema text while codec-owned renderers migrate to GrammarGraph.