We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28e761 commit 94060e2Copy full SHA for 94060e2
src/Nest/Resolvers/Writers/TypeMappingWriter.cs
@@ -284,7 +284,7 @@ private static Type GetUnderlyingType(Type type)
284
if (type.IsArray)
285
return type.GetElementType();
286
287
- if (type.IsGenericType && type.GetGenericArguments().Length >= 1 && (type.GetInterface("IEnumerable") != null || Nullable.GetUnderlyingType(type) != null))
+ if (type.IsGenericType && type.GetGenericArguments().Length == 1 && (type.GetInterface("IEnumerable") != null || Nullable.GetUnderlyingType(type) != null))
288
return type.GetGenericArguments()[0];
289
290
return type;
0 commit comments