Change value to DateTime.MinValue as example.
This commit is contained in:
parent
48f2327512
commit
f512881069
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue