Summary
Map
Description
Map input to an array of values
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
arr |
array |
yes |
The input array (objects or values) to be mapped |
map |
array |
yes |
An array of values that will be used as the map |
Copied to Clipboard
{
"arr": "b",
"map": 1
}
Copied to Clipboard
{
"type": "object",
"properties": {
"arr": {
"title": "arr",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean",
"null"
]
}
],
"examples": [
"a",
"b",
"c"
]
},
"map": {
"title": "map",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean",
"null"
]
}
],
"examples": [
1,
2,
3
]
}
},
"required": [
"arr",
"map"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Result of the map |
Copied to Clipboard
{
"a": 1,
"b": 2,
"c": 3
}
Copied to Clipboard
{
"title": "result",
"type": "object",
"properties": {},
"examples": [
{
"a": 1,
"b": 2,
"c": 3
}
]
}