pub fn validate_frontmatter(
fields: &HashMap<String, String>,
schema: &ContentSchema,
file_path: &Path,
fm_start_line: usize,
) -> Vec<ValidationError>Expand description
Validates a frontmatter map against a ContentSchema.
Returns a list of errors (empty on success). file_path and
fm_start_line are used only for error reporting.