Skip to main content

write_schema_json

Function write_schema_json 

Source
pub fn write_schema_json(
    out: &mut impl Write,
    schema: &Value,
    format: JsonOutputFormat,
) -> EngineResult<()>
Expand description

Serializes a schema in the requested JSON format and appends a newline.

Pretty output automatically falls back to compact JSON before crossing Helm’s per-file size limit.

§Errors

Returns an error when JSON serialization or writing to out fails.