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
Any properties on generated types which are defined as a Dictionary<TKey, TValue> where TKey is an IUrlParameter require special handling to support consumer lookups. GetFieldMappingResponse.FieldMappings is an example where the key is Field. In such cases, if a consumer attempts to lookup using a Field inferred from a type, no matches will be found by default. We need to apply a specialised dictionary which sanitises the keys to a normalized form using the IElasticClientSettings.
We will need to redefine these properties as IReadOnlyDictionary and apply a specialised converter to handle deserialization.
The text was updated successfully, but these errors were encountered:
Any properties on generated types which are defined as a
Dictionary<TKey, TValue>
whereTKey
is anIUrlParameter
require special handling to support consumer lookups.GetFieldMappingResponse.FieldMappings
is an example where the key isField
. In such cases, if a consumer attempts to lookup using aField
inferred from a type, no matches will be found by default. We need to apply a specialised dictionary which sanitises the keys to a normalized form using theIElasticClientSettings
.We will need to redefine these properties as
IReadOnlyDictionary
and apply a specialised converter to handle deserialization.The text was updated successfully, but these errors were encountered: