Skip to content

Commit

Permalink
Fix metadata filename from last PR (#1804)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenWeatherford authored Nov 27, 2024
1 parent 4d48e2b commit bb19faa
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1,043 deletions.
56 changes: 56 additions & 0 deletions assets/ExpressionMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@
"minimumArguments": 0,
"maximumArguments": 0
},
{
"name": "filter",
"expectedUsage": "filter(inputArray, lambda)",
"description": "Filters an array with a custom filtering function.",
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "first",
"expectedUsage": "first(arg1)",
Expand Down Expand Up @@ -314,6 +321,13 @@
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "groupBy",
"expectedUsage": "groupBy(inputArray, keySelector)",
"description": "Groups the elements of an array based on a specified key selector function.",
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "guid",
"expectedUsage": "guid(baseString, ...)",
Expand Down Expand Up @@ -370,6 +384,13 @@
"minimumArguments": 1,
"maximumArguments": 1
},
{
"name": "lambda",
"expectedUsage": "lambda(<lambda variable>, [<lambda variable>, ...], <expression>)",
"description": "Defines a lambda expression that can be passed as an argument to functions like filter, groupBy, map, mapValues, reduce, sort, and toObject. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.",
"minimumArguments": 2,
"maximumArguments": null
},
{
"name": "last",
"expectedUsage": "last(arg1)",
Expand Down Expand Up @@ -656,6 +677,20 @@
}
]
},
{
"name": "map",
"expectedUsage": "map(inputArray, transformFunction)",
"description": "Projects each element of an array into a new form based on a transformation function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.",
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "mapValues",
"expectedUsage": "mapValues(object, transformFunction)",
"description": "Projects each value of an object into a new form based on a transformation function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.",
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "max",
"expectedUsage": "max(arg1, ...)",
Expand Down Expand Up @@ -747,6 +782,13 @@
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "reduce",
"expectedUsage": "reduce(inputArray, initialValue, accumulatorFunction)",
"description": "Applies a function against an accumulator and each element in the array to reduce it to a single value. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.",
"minimumArguments": 3,
"maximumArguments": 3
},
{
"name": "reference",
"expectedUsage": "reference(resourceName\/resourceIdentifier, [apiVersion], ['Full'])",
Expand Down Expand Up @@ -802,6 +844,13 @@
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "sort",
"expectedUsage": "sort(inputArray, comparer)",
"description": "Sorts an array with a custom sort function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.",
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "split",
"expectedUsage": "split(inputString, delimiter)",
Expand Down Expand Up @@ -913,6 +962,13 @@
"minimumArguments": 1,
"maximumArguments": 1
},
{
"name": "toObject",
"expectedUsage": "toObject(inputArray, lambda function, [lambda function])",
"description": "Converts an array to an object with a custom key function and optional custom value function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-object#items about converting an object to an array. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.",
"minimumArguments": 2,
"maximumArguments": 3
},
{
"name": "toUpper",
"expectedUsage": "toUpper(string)",
Expand Down
Loading

0 comments on commit bb19faa

Please sign in to comment.