Skip to content

Commit f142795

Browse files
committed
Fix #1479: Full integral type coverage for field type serialization
1 parent 1916fd1 commit f142795

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Nest/Resolvers/Writers/TypeMappingWriter.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,14 @@ private string GetElasticSearchTypeFromFieldType(FieldType? fieldType)
274274
switch (propertyType.Name)
275275
{
276276
case "Int32":
277+
case "UInt32":
278+
case "Int16":
279+
case "UInt16":
280+
case "Byte":
281+
case "SByte":
277282
return FieldType.Integer;
278283
case "Int64":
284+
case "UInt64":
279285
return FieldType.Long;
280286
case "Single":
281287
return FieldType.Float;

0 commit comments

Comments
 (0)