diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 186dcf544a..ecece2b619 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -66856,8 +66856,7 @@ } }, "required": [ - "point", - "sort" + "point" ] }, "_types.aggregations.GeoLinePoint": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 25c61beb8b..60cae173dc 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -42869,8 +42869,7 @@ } }, "required": [ - "point", - "sort" + "point" ] }, "_types.aggregations.GeoLinePoint": { diff --git a/output/schema/schema.json b/output/schema/schema.json index f9025f8836..7ced06bf80 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -65062,7 +65062,7 @@ { "description": "The name of the numeric field to use as the sort key for ordering the points.\nWhen the `geo_line` aggregation is nested inside a `time_series` aggregation, this field defaults to `@timestamp`, and any other value will result in error.", "name": "sort", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index a05650f467..a99d84b347 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -3749,7 +3749,7 @@ export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase export interface AggregationsGeoLineAggregation { point: AggregationsGeoLinePoint - sort: AggregationsGeoLineSort + sort?: AggregationsGeoLineSort include_sort?: boolean sort_order?: SortOrder size?: integer diff --git a/specification/_types/aggregations/metric.ts b/specification/_types/aggregations/metric.ts index fb6a9b6775..1d57786cdb 100644 --- a/specification/_types/aggregations/metric.ts +++ b/specification/_types/aggregations/metric.ts @@ -140,7 +140,7 @@ export class GeoLineAggregation { * The name of the numeric field to use as the sort key for ordering the points. * When the `geo_line` aggregation is nested inside a `time_series` aggregation, this field defaults to `@timestamp`, and any other value will result in error. */ - sort: GeoLineSort + sort?: GeoLineSort /** * When `true`, returns an additional array of the sort values in the feature properties. */