Skip to content

Preserve BucketsPath alias #8563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed partial class AverageBucketAggregationConverter : System.Text.Js
public override Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -104,7 +104,7 @@ internal AverageBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.Js
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -146,7 +146,7 @@ public AverageBucketAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.AverageBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal sealed partial class BucketCorrelationAggregationConverter : System.Tex
public override Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationFunction> propFunction = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
Expand Down Expand Up @@ -106,7 +106,7 @@ internal BucketCorrelationAggregation(Elastic.Clients.Elasticsearch.Serializatio
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -149,7 +149,7 @@ public BucketCorrelationAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.BucketCorrelationAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregation R
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<System.Collections.Generic.ICollection<string>?> propAlternative = default;
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<System.Collections.Generic.ICollection<double>?> propFractions = default;
LocalJsonValue<string?> propSamplingMethod = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -135,7 +135,7 @@ internal BucketKsAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCon
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -222,7 +222,7 @@ public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.BucketKsAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal sealed partial class BucketScriptAggregationConverter : System.Text.Jso
public override Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Script?> propScript = default;
Expand Down Expand Up @@ -113,7 +113,7 @@ internal BucketScriptAggregation(Elastic.Clients.Elasticsearch.Serialization.Jso
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -162,7 +162,7 @@ public BucketScriptAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.BucketScriptAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal sealed partial class BucketSelectorAggregationConverter : System.Text.J
public override Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Script?> propScript = default;
Expand Down Expand Up @@ -113,7 +113,7 @@ internal BucketSelectorAggregation(Elastic.Clients.Elasticsearch.Serialization.J
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -162,7 +162,7 @@ public BucketSelectorAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.BucketSelectorAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed partial class CumulativeCardinalityAggregationConverter : System
public override Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -104,7 +104,7 @@ internal CumulativeCardinalityAggregation(Elastic.Clients.Elasticsearch.Serializ
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -146,7 +146,7 @@ public CumulativeCardinalityAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.CumulativeCardinalityAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed partial class CumulativeSumAggregationConverter : System.Text.Js
public override Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -104,7 +104,7 @@ internal CumulativeSumAggregation(Elastic.Clients.Elasticsearch.Serialization.Js
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -146,7 +146,7 @@ public CumulativeSumAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.CumulativeSumAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed partial class DerivativeAggregationConverter : System.Text.Json.
public override Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -104,7 +104,7 @@ internal DerivativeAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonC
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -146,7 +146,7 @@ public DerivativeAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.DerivativeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal sealed partial class ExtendedStatsBucketAggregationConverter : System.T
public override Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
LocalJsonValue<double?> propSigma = default;
Expand Down Expand Up @@ -113,7 +113,7 @@ internal ExtendedStatsBucketAggregation(Elastic.Clients.Elasticsearch.Serializat
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -162,7 +162,7 @@ public ExtendedStatsBucketAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.ExtendedStatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal sealed partial class InferenceAggregationConverter : System.Text.Json.S
public override Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.InferenceConfig?> propInferenceConfig = default;
Expand Down Expand Up @@ -128,7 +128,7 @@ internal InferenceAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -188,7 +188,7 @@ public InferenceAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor<TDocument> BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor<TDocument> BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down Expand Up @@ -283,7 +283,7 @@ public InferenceAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed partial class MaxBucketAggregationConverter : System.Text.Json.S
public override Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -104,7 +104,7 @@ internal MaxBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -146,7 +146,7 @@ public MaxBucketAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.MaxBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed partial class MinBucketAggregationConverter : System.Text.Json.S
public override Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregation Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject);
LocalJsonValue<object?> propBucketsPath = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.BucketsPath?> propBucketsPath = default;
LocalJsonValue<string?> propFormat = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Aggregations.GapPolicy?> propGapPolicy = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
Expand Down Expand Up @@ -104,7 +104,7 @@ internal MinBucketAggregation(Elastic.Clients.Elasticsearch.Serialization.JsonCo
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public object? BucketsPath { get; set; }
public Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? BucketsPath { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -146,7 +146,7 @@ public MinBucketAggregationDescriptor()
/// Path to the buckets that contain one set of values to correlate.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregationDescriptor BucketsPath(object? value)
public Elastic.Clients.Elasticsearch.Aggregations.MinBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Aggregations.BucketsPath? value)
{
Instance.BucketsPath = value;
return this;
Expand Down
Loading
Loading