feat: reimplement pathAlias for yaml fields
All checks were successful
Build and Push Server / build-and-push (push) Successful in 7m4s

This commit is contained in:
Max Richter
2025-10-24 11:12:35 +02:00
parent fcbce7b443
commit 75d6dab008
10 changed files with 51 additions and 20 deletions

View File

@@ -33,6 +33,13 @@ func Yaml(input string, block template.Block) (value any, error error) {
continue
}
for _, alias := range f.PathAliases {
if value, ok := res[alias]; ok {
out = utils.SetPathValue(f.Path, value, out)
continue
}
}
if value, ok := renderUtils.GetValueFromPath(res, f.Path); ok {
out = utils.SetPathValue(f.Path, value, out)
continue