feat: added option to create an alias during mapping

This commit is contained in:
knylbyte
2025-11-30 18:35:01 +01:00
parent 035ee79ab0
commit 5a10efe82e
4 changed files with 36 additions and 5 deletions
+2 -1
View File
@@ -50,6 +50,7 @@ fn merge_mappings(mappings: Vec<MappingDto>) -> Vec<MappingDto> {
// Logic for match_as_ascii: true, if one of them is true
entry.match_as_ascii |= m.match_as_ascii;
entry.create_alias |= m.create_alias;
if let Some(mut mapper) = m.mapper.take() {
entry.mapper.get_or_insert(vec![]).append(&mut mapper);
@@ -136,4 +137,4 @@ pub fn read_mappings(mappings_file: &str, resolve_env: bool) -> Result<Option<Ma
Some(dto) => Ok(Some(Mappings::from(&dto))),
None => Ok(None),
}
}
}