diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs b/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs index 1ad8146c5c6..63e3e4630db 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; + using Elastic.Transport.Products.Elasticsearch; #if ELASTICSEARCH_SERVERLESS @@ -25,4 +26,8 @@ internal DictionaryResponse(IReadOnlyDictionary dictionary) internal DictionaryResponse() => BackingDictionary = EmptyReadOnly.Dictionary; protected IReadOnlyDictionary BackingDictionary { get; } + + // TODO: Remove after exposing the values in the derived responses + [Obsolete("Temporary workaround. This field will be removed in the future and replaced by custom accessors in the derived classes.")] + public IReadOnlyDictionary Values => BackingDictionary; }