pub fn validate_record( filename: &str, fields: &BTreeMap<String, Value>, schema: &CollectionSchema, ) -> Vec<Violation>
Validate a record’s fields against a collection schema.