Skip to content

Commit 79f22ee

Browse files
floberndgithub-actions[bot]
authored andcommitted
Use Fields type for Field|Field[] and Field[] (#8084)
1 parent bef6728 commit 79f22ee

File tree

124 files changed

+251
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+251
-72
lines changed

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
911911
/// <para>List of stored fields to return as part of a hit. If no fields are specified,<br/>no stored fields are included in the response. If this field is specified, the _source<br/>parameter defaults to false. You can pass _source: true to return both source fields<br/>and stored fields in the search response.</para>
912912
/// </summary>
913913
[JsonInclude, JsonPropertyName("stored_fields")]
914+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
914915
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; }
915916
[JsonInclude, JsonPropertyName("suggest")]
916917
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? Suggest { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indice
134134
/// <para>List of fields to retrieve capabilities for. Wildcard (`*`) expressions are supported.</para>
135135
/// </summary>
136136
[JsonInclude, JsonPropertyName("fields")]
137+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
137138
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; }
138139

139140
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices
7979
/// <para>Fields to return in the `hits` layer. Supports wildcards (`*`).<br/>This parameter does not support fields with array values. Fields with array<br/>values may return inconsistent results.</para>
8080
/// </summary>
8181
[JsonInclude, JsonPropertyName("fields")]
82+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
8283
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; }
8384

8485
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices)
956956
/// <para>List of stored fields to return as part of a hit.<br/>If no fields are specified, no stored fields are included in the response.<br/>If this field is specified, the `_source` parameter defaults to `false`.<br/>You can pass `_source: true` to return both source fields and stored fields in the search response.</para>
957957
/// </summary>
958958
[JsonInclude, JsonPropertyName("stored_fields")]
959+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
959960
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; }
960961

961962
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public sealed partial class MatrixStatsAggregation
3333
/// <para>An array of fields for computing the statistics.</para>
3434
/// </summary>
3535
[JsonInclude, JsonPropertyName("fields")]
36+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3637
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; }
3738
[JsonInclude, JsonPropertyName("meta")]
3839
public IDictionary<string, object>? Meta { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public sealed partial class SignificantTextAggregation
133133
/// <para>Overrides the JSON `_source` fields from which text will be analyzed.</para>
134134
/// </summary>
135135
[JsonInclude, JsonPropertyName("source_fields")]
136+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
136137
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFields { get; set; }
137138

138139
public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SignificantTextAggregation significantTextAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.SignificantText(significantTextAggregation);

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public sealed partial class TopHitsAggregation
3333
/// <para>Fields for which to return doc values.</para>
3434
/// </summary>
3535
[JsonInclude, JsonPropertyName("docvalue_fields")]
36+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3637
public Elastic.Clients.Elasticsearch.Serverless.Fields? DocvalueFields { get; set; }
3738

3839
/// <summary>
@@ -102,6 +103,7 @@ public sealed partial class TopHitsAggregation
102103
/// <para>Returns values for the specified stored fields (fields that use the `store` mapping option).</para>
103104
/// </summary>
104105
[JsonInclude, JsonPropertyName("stored_fields")]
106+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
105107
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; }
106108

107109
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetOperation.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public sealed partial class MultiGetOperation
5757
/// <para>The stored fields you want to retrieve.</para>
5858
/// </summary>
5959
[JsonInclude, JsonPropertyName("stored_fields")]
60+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
6061
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; }
6162
[JsonInclude, JsonPropertyName("version")]
6263
public long? Version { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public sealed partial class MultiTermVectorsOperation
3939
/// <para>Comma-separated list or wildcard expressions of fields to include in the statistics.<br/>Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.</para>
4040
/// </summary>
4141
[JsonInclude, JsonPropertyName("fields")]
42+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
4243
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; }
4344

4445
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public sealed partial class Source
6868
/// <para>If `true` reindexes all source fields.<br/>Set to a list to reindex select fields.</para>
6969
/// </summary>
7070
[JsonInclude, JsonPropertyName("_source")]
71+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
7172
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFields { get; set; }
7273
}
7374

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public sealed partial class HighlightField
7878
[JsonInclude, JsonPropertyName("highlight_query")]
7979
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQuery { get; set; }
8080
[JsonInclude, JsonPropertyName("matched_fields")]
81+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
8182
public Elastic.Clients.Elasticsearch.Serverless.Fields? MatchedFields { get; set; }
8283

8384
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHits.g.cs

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public sealed partial class InnerHits
3636
[JsonInclude, JsonPropertyName("explain")]
3737
public bool? Explain { get; set; }
3838
[JsonInclude, JsonPropertyName("fields")]
39+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3940
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; }
4041

4142
/// <summary>
@@ -73,6 +74,7 @@ public sealed partial class InnerHits
7374
[JsonInclude, JsonPropertyName("_source")]
7475
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; }
7576
[JsonInclude, JsonPropertyName("stored_fields")]
77+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
7678
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; }
7779
[JsonInclude, JsonPropertyName("track_scores")]
7880
public bool? TrackScores { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichPolicy.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public sealed partial class EnrichPolicy
3232
[JsonInclude, JsonPropertyName("elasticsearch_version")]
3333
public string? ElasticsearchVersion { get; set; }
3434
[JsonInclude, JsonPropertyName("enrich_fields")]
35+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3536
public Elastic.Clients.Elasticsearch.Serverless.Fields EnrichFields { get; set; }
3637
[JsonInclude, JsonPropertyName("indices")]
3738
public Elastic.Clients.Elasticsearch.Serverless.Indices Indices { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
3030
public sealed partial class IndexSegmentSort
3131
{
3232
[JsonInclude, JsonPropertyName("field")]
33+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3334
public Elastic.Clients.Elasticsearch.Serverless.Fields? Field { get; set; }
3435
[JsonInclude, JsonPropertyName("missing")]
3536
[SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SegmentSortMissing))]

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CsvProcessor.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public sealed partial class CsvProcessor
9393
/// <para>The array of fields to assign extracted values to.</para>
9494
/// </summary>
9595
[JsonInclude, JsonPropertyName("target_fields")]
96+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
9697
public Elastic.Clients.Elasticsearch.Serverless.Fields TargetFields { get; set; }
9798

9899
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RemoveProcessor.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public sealed partial class RemoveProcessor
3939
/// <para>Fields to be removed. Supports template snippets.</para>
4040
/// </summary>
4141
[JsonInclude, JsonPropertyName("field")]
42+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
4243
public Elastic.Clients.Elasticsearch.Serverless.Fields Field { get; set; }
4344

4445
/// <summary>

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfig.g.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public sealed partial class AnalysisConfig
6363
/// <para>A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity.</para>
6464
/// </summary>
6565
[JsonInclude, JsonPropertyName("influencers")]
66-
public ICollection<Elastic.Clients.Elasticsearch.Serverless.Field>? Influencers { get; set; }
66+
[JsonConverter(typeof(FieldsConverter))]
67+
public Elastic.Clients.Elasticsearch.Serverless.Fields? Influencers { get; set; }
6768

6869
/// <summary>
6970
/// <para>The size of the window in which to expect data that is out of time order. If you specify a non-zero value, it must be greater than or equal to one second. NOTE: Latency is applicable only when you send data by using the post data API.</para>
@@ -112,7 +113,7 @@ public AnalysisConfigDescriptor() : base()
112113
private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor<TDocument> DetectorsDescriptor { get; set; }
113114
private Action<Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor<TDocument>> DetectorsDescriptorAction { get; set; }
114115
private Action<Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor<TDocument>>[] DetectorsDescriptorActions { get; set; }
115-
private ICollection<Elastic.Clients.Elasticsearch.Serverless.Field>? InfluencersValue { get; set; }
116+
private Elastic.Clients.Elasticsearch.Serverless.Fields? InfluencersValue { get; set; }
116117
private Elastic.Clients.Elasticsearch.Serverless.Duration? LatencyValue { get; set; }
117118
private Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindowValue { get; set; }
118119
private bool? MultivariateByFieldsValue { get; set; }
@@ -217,7 +218,7 @@ public AnalysisConfigDescriptor<TDocument> Detectors(params Action<Elastic.Clien
217218
/// <summary>
218219
/// <para>A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity.</para>
219220
/// </summary>
220-
public AnalysisConfigDescriptor<TDocument> Influencers(ICollection<Elastic.Clients.Elasticsearch.Serverless.Field>? influencers)
221+
public AnalysisConfigDescriptor<TDocument> Influencers(Elastic.Clients.Elasticsearch.Serverless.Fields? influencers)
221222
{
222223
InfluencersValue = influencers;
223224
return Self;
@@ -428,7 +429,7 @@ public AnalysisConfigDescriptor() : base()
428429
private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor DetectorsDescriptor { get; set; }
429430
private Action<Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor> DetectorsDescriptorAction { get; set; }
430431
private Action<Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor>[] DetectorsDescriptorActions { get; set; }
431-
private ICollection<Elastic.Clients.Elasticsearch.Serverless.Field>? InfluencersValue { get; set; }
432+
private Elastic.Clients.Elasticsearch.Serverless.Fields? InfluencersValue { get; set; }
432433
private Elastic.Clients.Elasticsearch.Serverless.Duration? LatencyValue { get; set; }
433434
private Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindowValue { get; set; }
434435
private bool? MultivariateByFieldsValue { get; set; }
@@ -533,7 +534,7 @@ public AnalysisConfigDescriptor Detectors(params Action<Elastic.Clients.Elastics
533534
/// <summary>
534535
/// <para>A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity.</para>
535536
/// </summary>
536-
public AnalysisConfigDescriptor Influencers(ICollection<Elastic.Clients.Elasticsearch.Serverless.Field>? influencers)
537+
public AnalysisConfigDescriptor Influencers(Elastic.Clients.Elasticsearch.Serverless.Fields? influencers)
537538
{
538539
InfluencersValue = influencers;
539540
return Self;

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping;
3030
public sealed partial class BinaryProperty : IProperty
3131
{
3232
[JsonInclude, JsonPropertyName("copy_to")]
33+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3334
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3435
[JsonInclude, JsonPropertyName("doc_values")]
3536
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BooleanProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public sealed partial class BooleanProperty : IProperty
3232
[JsonInclude, JsonPropertyName("boost")]
3333
public double? Boost { get; set; }
3434
[JsonInclude, JsonPropertyName("copy_to")]
35+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3536
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3637
[JsonInclude, JsonPropertyName("doc_values")]
3738
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class ByteNumberProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompletionProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class CompletionProperty : IProperty
3434
[JsonInclude, JsonPropertyName("contexts")]
3535
public ICollection<Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContext>? Contexts { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public sealed partial class DateNanosProperty : IProperty
3232
[JsonInclude, JsonPropertyName("boost")]
3333
public double? Boost { get; set; }
3434
[JsonInclude, JsonPropertyName("copy_to")]
35+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3536
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3637
[JsonInclude, JsonPropertyName("doc_values")]
3738
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public sealed partial class DateProperty : IProperty
3232
[JsonInclude, JsonPropertyName("boost")]
3333
public double? Boost { get; set; }
3434
[JsonInclude, JsonPropertyName("copy_to")]
35+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3536
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3637
[JsonInclude, JsonPropertyName("doc_values")]
3738
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateRangeProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class DateRangeProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class DoubleNumberProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleRangeProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class DoubleRangeProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public sealed partial class DynamicProperty : IProperty
3636
[JsonInclude, JsonPropertyName("coerce")]
3737
public bool? Coerce { get; set; }
3838
[JsonInclude, JsonPropertyName("copy_to")]
39+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3940
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
4041
[JsonInclude, JsonPropertyName("doc_values")]
4142
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class FloatNumberProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatRangeProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class FloatRangeProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping;
3030
public sealed partial class GeoPointProperty : IProperty
3131
{
3232
[JsonInclude, JsonPropertyName("copy_to")]
33+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3334
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3435
[JsonInclude, JsonPropertyName("doc_values")]
3536
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public sealed partial class GeoShapeProperty : IProperty
3636
[JsonInclude, JsonPropertyName("coerce")]
3737
public bool? Coerce { get; set; }
3838
[JsonInclude, JsonPropertyName("copy_to")]
39+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3940
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
4041
[JsonInclude, JsonPropertyName("doc_values")]
4142
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class HalfFloatNumberProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class IntegerNumberProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerRangeProperty.g.cs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public sealed partial class IntegerRangeProperty : IProperty
3434
[JsonInclude, JsonPropertyName("coerce")]
3535
public bool? Coerce { get; set; }
3636
[JsonInclude, JsonPropertyName("copy_to")]
37+
[JsonConverter(typeof(SingleOrManyFieldsConverter))]
3738
public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; }
3839
[JsonInclude, JsonPropertyName("doc_values")]
3940
public bool? DocValues { get; set; }

0 commit comments

Comments
 (0)