RicoSuter/NSwag

Default DateTime / DateTimeOffset values for typescript

Open

#614 opened on Feb 22, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (6,291 stars) (1,189 forks)batch import
help wantedtype: enhancement

Description

Is it possible to define a default date time value for my generated typescript?

I have been using the DefaultValue attribute for integers and strings, but i can't set a value to DateTimeOffset.UtcNow.

Contributor guide