I've been playing with NEST 5.6.5 to see how it's treating the Nullable types in Elasticsearch.
While serializing a NEST request I've noticed that for int? it's just a number and when it's null the value is not sent.
When I use a List<int?> the mapping changes to an object with the properties: hasValue and value.
The problem is that this time the values are sent as integers or null, instead of {hasValue:true, value:123} or {hasValue:false} and I'm getting a serialization error.
What should I do to be able to save a List<int?> ?
From the mapping it's obvious that this weird scenario should be supported so why it's not working?