Skip to content
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

PutIndicesSettingsRequestDescriptor ignores IndesSettingsDescriptor when serializing #8436

Open
dawust opened this issue Dec 20, 2024 · 0 comments
Labels
8.x Relates to 8.x client version Area: Generator Category: Bug

Comments

@dawust
Copy link

dawust commented Dec 20, 2024

Elastic.Clients.Elasticsearch version: 8.16.3

Elasticsearch version: 8.11.4

.NET runtime version: 9.0.101

Description of the problem including expected versus actual behavior:
A clear and concise description of what the bug is.

Steps to reproduce:

  1. Create a PutIndicesSettingsRequestDescriptor and provide Settings using an IndexSettingsDescriptor
  2. Execute PutSettings(Async) with the PutIndicesSettingsRequestDescriptor
  3. The request sent to ES is null.

Expected behavior
The given IndexSettingsDescriptor should be respected and serialized

Provide DebugInformation (if relevant):

Only SettingsValue is respected when serializing the PutIndicesSettingsRequestDescriptor. Both SettingsDescriptor and SettingsDescriptorAction seem to be discarded.

	protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
	{
		JsonSerializer.Serialize(writer, SettingsValue, options);
	}
@dawust dawust added 8.x Relates to 8.x client version Category: Bug labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to 8.x client version Area: Generator Category: Bug
Projects
None yet
Development

No branches or pull requests

2 participants