You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: RequestBodyInBytes is declared as non-nullable but can be null, causing compiler warnings
Description: I’m encountering an issue with the ElasticsearchClientSettings where the RequestBodyInBytes property is declared as a non-nullable byte[], but it can actually be null in certain cases. For example, when calling DeleteAsync, the RequestBodyInBytes is null because there’s no request body.
returns the warning "Expression is always true according to nullable reference types' annotations".
Is it possible to make this type nullable or don't assign null values?
The text was updated successfully, but these errors were encountered:
DmytroBevziuk
changed the title
Make Elastic.Transport.ApiCallDetails.RequestBodyInBytes nullable
RequestBodyInBytes is declared as non-nullable but can be null, causing compiler warnings
Nov 1, 2024
Issue: RequestBodyInBytes is declared as non-nullable but can be null, causing compiler warnings
Description: I’m encountering an issue with the ElasticsearchClientSettings where the RequestBodyInBytes property is declared as a non-nullable byte[], but it can actually be null in certain cases. For example, when calling DeleteAsync, the RequestBodyInBytes is null because there’s no request body.
ElasticsearchClientSettings configuration:
This part:
returns the warning "Expression is always true according to nullable reference types' annotations".
Is it possible to make this type nullable or don't assign null values?
The text was updated successfully, but these errors were encountered: