Skip to content

Commit 04161af

Browse files
committed
PIT id is a string
1 parent 74a0ff0 commit 04161af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Elastic.Clients.Elasticsearch/_Generated/Types/PointInTimeReference.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public partial class PointInTimeReference
2828
{
2929
[JsonInclude]
3030
[JsonPropertyName("id")]
31-
public Elastic.Clients.Elasticsearch.Id Id { get; set; }
31+
public string Id { get; set; }
3232

3333
[JsonInclude]
3434
[JsonPropertyName("keep_alive")]
@@ -42,17 +42,17 @@ public PointInTimeReferenceDescriptor()
4242
}
4343

4444
internal PointInTimeReferenceDescriptor(Action<PointInTimeReferenceDescriptor> configure) => configure.Invoke(this);
45-
internal Elastic.Clients.Elasticsearch.Id IdValue { get; private set; }
45+
internal string IdValue { get; private set; }
4646

4747
internal Elastic.Clients.Elasticsearch.Time? KeepAliveValue { get; private set; }
4848

49-
public PointInTimeReferenceDescriptor Id(Elastic.Clients.Elasticsearch.Id id) => Assign(id, (a, v) => a.IdValue = v);
49+
public PointInTimeReferenceDescriptor Id(string id) => Assign(id, (a, v) => a.IdValue = v);
5050
public PointInTimeReferenceDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Time? keepAlive) => Assign(keepAlive, (a, v) => a.KeepAliveValue = v);
5151
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
5252
{
5353
writer.WriteStartObject();
5454
writer.WritePropertyName("id");
55-
JsonSerializer.Serialize(writer, IdValue, options);
55+
writer.WriteStringValue(IdValue);
5656
if (KeepAliveValue is not null)
5757
{
5858
writer.WritePropertyName("keep_alive");

0 commit comments

Comments
 (0)