Change value to DateTime.MinValue as example.

This commit is contained in:
Brecht Debaere 2019-02-27 03:34:35 +01:00 committed by Sam Xu
parent 48f2327512
commit f512881069

View file

@ -126,11 +126,11 @@ namespace Microsoft.OpenApi.OData.Generator
}
else if (edmTypeReference.IsDate())
{
return new OpenApiDate(DateTime.UtcNow);
return new OpenApiDate(DateTime.MinValue);
}
else if (edmTypeReference.IsDateTimeOffset())
{
return new OpenApiDateTime(DateTimeOffset.UtcNow);
return new OpenApiDateTime(DateTimeOffset.MinValue);
}
else if (edmTypeReference.IsDecimal() || edmTypeReference.IsDouble())
{