pub fn validate_model(model: &ModelFile) -> Result<(), Vec<ValidationError>>
Validate a parsed model for semantic correctness. Returns Ok(()) if valid, or Err with a list of validation errors.