@ -214,6 +214,8 @@ public class AspNetCoreApiDescriptionModelProvider : IApiDescriptionModelProvide
type == typeof(void) ||
type == typeof(Enum) ||
type == typeof(ValueType) ||
type == typeof(DateOnly) ||
type == typeof(TimeOnly) ||
TypeHelper.IsPrimitiveExtended(type))
{
return;
@ -257,6 +257,14 @@ public static class TypeHelper
return "string";
}
else if (type.FullName == "System.DateOnly")
else if (type.FullName == "System.TimeOnly")
else if (type == typeof(TimeSpan))