Is your feature request related to a problem? Please describe.
It is cumbersome to have to parse dates into datetime types yourself when it can be done by serde automatically.
Describe the solution you'd like
Since there are some intricacies to it, it would be best if it could be enabled with a cli flag to specify what date-time format (or, just, date format) to expect. Probably something like
openapi-generator ... --datetime-format=Iso8601
If the flag is left out, the dates will be strings, otherwise it will deserialize the string to a date using the given format.
I would be fine with just enabling the formats specified here, but if more obscure formats are needed, we could do something like the time-crates format descriptions
Describe alternatives you've considered
Alternative would be to leave as is.
Is your feature request related to a problem? Please describe.
It is cumbersome to have to parse dates into datetime types yourself when it can be done by serde automatically.
Describe the solution you'd like
Since there are some intricacies to it, it would be best if it could be enabled with a cli flag to specify what date-time format (or, just, date format) to expect. Probably something like
If the flag is left out, the dates will be strings, otherwise it will deserialize the string to a date using the given format.
I would be fine with just enabling the formats specified here, but if more obscure formats are needed, we could do something like the time-crates format descriptions
Describe alternatives you've considered
Alternative would be to leave as is.