Skip to main content

data_schema

Function data_schema 

Source
pub fn data_schema(template: &Value) -> Result<Value, ComposeError>
Expand description

The JSON Schema (2020-12) of a template’s data, with each parameter’s title, description, default and checks a schema can say; file rules are in x-alpha2-media.

§Errors

Returns where the template’s header or parameters do not parse.

§Panics

Never; an object schema is always an object.