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

0 comments on commit 4df934a

Please sign in to comment.