In the course of fixing the code-generation for index templates to avoid serialization failures, some breaking changes were introduced.
IndexTemplate
forms part of the IndexTemplateItem
included on GetIndexTemplateResponse
.
-
The type for the
ComposedOf
property has changed fromIReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>
toIReadOnlyCollection<string>
-
The type for the
IndexPatterns
property has changed fromElastic.Clients.Elasticsearch.Names
toIReadOnlyCollection<string>
Before
public sealed partial class IndexTemplate
{
...
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name> ComposedOf { get; init; }
public Elastic.Clients.Elasticsearch.Names IndexPatterns { get; init; }
...
}
After
public sealed partial class IndexTemplate
{
...
public IReadOnlyCollection<string> ComposedOf { get; init; }
public IReadOnlyCollection<string> IndexPatterns { get; init; }
...
}
-
The type for the
ComposedOf
property has changed fromIReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>
toIReadOnlyCollection<string>
Before
public sealed partial class SimulateIndexTemplateRequest
{
...
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>? ComposedOf { get; set; }
...
}
After
public sealed partial class SimulateIndexTemplateRequest
{
...
public IReadOnlyCollection<string>? ComposedOf { get; set; }
...
}
The ComposedOf
method signature has changed to accept a parameter of ICollection<string>?
instead of
ICollection<Elastic.Clients.Elasticsearch.Name>?
.
Before
public SimulateIndexTemplateRequestDescriptor<TDocument> ComposedOf(ICollection<Elastic.Clients.Elasticsearch.Name>? composedOf)
After
public SimulateIndexTemplateRequestDescriptor<TDocument> ComposedOf(ICollection<string>? composedOf)