Skip to main content

section

Function section 

Source
pub fn section(key: &str, schema: Value, secrets: &[&str]) -> Value
Available on crate feature schema only.
Expand description

Wraps one struct’s schema as the section it occupies in a file.

secrets are the field names to mark writeOnly, which is JSON Schema’s way of saying this value is not for reading back — editors stop echoing them in completions and hovers.

Called by the generated schema(); public because the macro-free API is public too.