Skip to content

Commit 1f00453

Browse files
authored
CompositeAggregation.sources expects an array of single-key objects (#5335)
1 parent 2a84c0c commit 1f00453

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

specification/_types/aggregations/bucket.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,12 @@ export class CompositeAggregation extends BucketAggregationBase {
145145
* The value sources used to build composite buckets.
146146
* Keys are returned in the order of the `sources` definition.
147147
*/
148-
sources?: Array<Dictionary<string, CompositeAggregationSource>>
148+
sources?: Array<SingleKeyDictionary<string, CompositeAggregationSource>>
149149
}
150150

151+
/**
152+
* @variants container
153+
*/
151154
export class CompositeAggregationSource {
152155
/**
153156
* A terms aggregation.

0 commit comments

Comments
 (0)