Skip to main content

Module schema_json

Module schema_json 

Source
Expand description

Schema JSON emitter.

Serializes SchemaRegistry to forge.schema.json, the public contract between Phase 1 (parser) and Phase 2 (per-language emitters). Community generators consume this file without depending on Forge’s Rust crates.

Functions§

emit
emit_string
Serialize to a pretty-printed JSON string with trailing newline.