From 836873a454413dec374a8eb963a7eafe051ad2d2 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Wed, 24 Sep 2025 12:51:13 +0200 Subject: [PATCH 1/2] `CompositeAggregation.sources` expects an array of single-key objects --- specification/_types/aggregations/bucket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/_types/aggregations/bucket.ts b/specification/_types/aggregations/bucket.ts index fb6f16abd3..85f433bf66 100644 --- a/specification/_types/aggregations/bucket.ts +++ b/specification/_types/aggregations/bucket.ts @@ -145,7 +145,7 @@ export class CompositeAggregation extends BucketAggregationBase { * The value sources used to build composite buckets. * Keys are returned in the order of the `sources` definition. */ - sources?: Array> + sources?: Array> } export class CompositeAggregationSource { From 1256b9bf7bf26dcf8e484851fe04d18fced2fe33 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Wed, 24 Sep 2025 13:20:09 +0200 Subject: [PATCH 2/2] Mark `CompositeAggregationSource` as a container --- specification/_types/aggregations/bucket.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/_types/aggregations/bucket.ts b/specification/_types/aggregations/bucket.ts index 85f433bf66..c45c909f1c 100644 --- a/specification/_types/aggregations/bucket.ts +++ b/specification/_types/aggregations/bucket.ts @@ -148,6 +148,9 @@ export class CompositeAggregation extends BucketAggregationBase { sources?: Array> } +/** + * @variants container + */ export class CompositeAggregationSource { /** * A terms aggregation.