File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,7 @@ secretNotFound = "Secret '%{name}' not found"
530530
531531[functions .shallowMerge ]
532532description = " Combines an array of objects where only the top-level objects are merged"
533+ requiresObjects = " shallowMerge requires all array elements to be objects, but found: %{value}"
533534
534535[functions .startsWith ]
535536description = " Checks if a string starts with a specific prefix"
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ impl Function for ShallowMerge {
3131
3232 for item in array {
3333 let obj = item. as_object ( ) . ok_or_else ( || {
34- DscError :: Parser ( format ! (
35- "shallowMerge requires all array elements to be objects, but found: {} " ,
36- item
37- ) )
34+ DscError :: Parser ( t ! (
35+ "functions. shallowMerge.requiresObjects " ,
36+ value = item
37+ ) . to_string ( ) )
3838 } ) ?;
3939
4040 for ( key, value) in obj {
You can’t perform that action at this time.
0 commit comments