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 4001c9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion array_apply.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@
},
{
"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"
Expand Down
9 changes: 8 additions & 1 deletion array_filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,15 @@
},
{
"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"
Expand Down

0 comments on commit 4001c9c

Please sign in to comment.