Skip to content

Commit 27cfaf1

Browse files
Allow single percent in PercentilesAggregation (#5552) (#5578)
(cherry picked from commit 8bef67e) Co-authored-by: Quentin Pradet <[email protected]>
1 parent d6bac82 commit 27cfaf1

File tree

5 files changed

+43
-17
lines changed

5 files changed

+43
-17
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 19 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/aggregations/metric.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export class PercentilesAggregation extends FormatMetricAggregationBase {
227227
/**
228228
* The percentiles to calculate.
229229
*/
230-
percents?: double[]
230+
percents?: double | double[]
231231
/**
232232
* Uses the alternative High Dynamic Range Histogram algorithm to calculate percentiles.
233233
*/

0 commit comments

Comments
 (0)