Skip to main content

validate_metadata

Function validate_metadata 

Source
pub fn validate_metadata(
    metadata: &HashMap<String, Value>,
    dir: Option<&Path>,
) -> Vec<Diagnostic>
Expand description

Validate skill metadata against the Anthropic specification.

Expects raw parse_frontmatter output — the full HashMap before known-key extraction. Not suitable for use on SkillProperties.metadata (which has known keys already removed).

Returns a list of diagnostics (empty = valid).