Skip to content

Commit

Permalink
fix: restrict pivot transform's op to aggregates (#7199)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions Bot <vega-actions-bot@users.noreply.github.com>
  • Loading branch information
domoritz and GitHub Actions Bot authored Jan 31, 2021
1 parent a6855ff commit c3edb93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/vega-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18648,8 +18648,8 @@
"type": "number"
},
"op": {
"description": "The aggregation operation to apply to grouped `value` field values. __Default value:__ `sum`",
"type": "string"
"$ref": "#/definitions/AggregateOp",
"description": "The aggregation operation to apply to grouped `value` field values. __Default value:__ `sum`"
},
"pivot": {
"$ref": "#/definitions/FieldName",
Expand Down
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export interface PivotTransform {
* The aggregation operation to apply to grouped `value` field values.
* __Default value:__ `sum`
*/
op?: string;
op?: AggregateOp;
}

export function isPivot(t: Transform): t is PivotTransform {
Expand Down

0 comments on commit c3edb93

Please sign in to comment.