Skip to content

Commit

Permalink
Pass labels separately from indices to callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 21, 2020
1 parent 6a11ef1 commit 27d26b7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions array_apply.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,27 @@
},
{
"name": "index",
"description": "The zero-based index or the label of the current element being processed. Labels take preference over indices.",
"description": "The zero-based index of the current element being processed.",
"required": true,
"schema": {
"type": "integer"
}
},
{
"name": "label",
"description": "The label of the current element being processed. Only populated for labeled arrays.",
"schema": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "null"
}
]
],
"default": null
}
]
},
Expand Down
15 changes: 13 additions & 2 deletions array_filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,27 @@
},
{
"name": "index",
"description": "The zero-based index or the label of the current element being processed. Labels take preference over indices.",
"description": "The zero-based index of the current element being processed.",
"required": true,
"schema": {
"type": "integer"
}
},
{
"name": "label",
"description": "The label of the current element being processed. Only populated for labeled arrays.",
"schema": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "null"
}
]
],
"default": null
}
]
},
Expand Down

0 comments on commit 27d26b7

Please sign in to comment.