pub struct FrontmatterFieldJson {
pub name: &'static str,
pub field_type: &'static str,
pub widget: &'static str,
pub default: Option<&'static str>,
pub enum_values: Option<&'static [&'static str]>,
pub description: &'static str,
pub group: &'static str,
pub skip_schema: bool,
}Expand description
JSON representation of a single builtin frontmatter field, as surfaced in
DescribePayload::frontmatter.
Fields§
§name: &'static strField name as it appears in YAML frontmatter (e.g. "children_style").
field_type: &'static strData type string (e.g. "string", "boolean", "integer", "array",
"object", "one_of").
widget: &'static strUI widget hint (e.g. "select", "text-input", "checkbox").
default: Option<&'static str>Default value as a raw JSON literal (e.g. "true", "\"list\"").
null when no default is defined.
enum_values: Option<&'static [&'static str]>Allowed values for select / enum fields. null for non-enum fields.
description: &'static strHuman-readable description of the field.
group: &'static strUI group name for the add-property dropdown (e.g. "Common", "Children").
Empty string for skip_schema (internal) fields.
skip_schema: boolWhen true, the field is internal to the build pipeline and is not
exposed in the editor form or validation schema. Theme authors and content
authors can ignore these fields; they are included here for tooling
completeness.