CenterEdge / Yardarm

OpenAPI 3 SDK Generator for C#
Apache License 2.0
45 stars 6 forks source link

Support for date-span string format #214

Closed brantburnett closed 1 year ago

brantburnett commented 1 year ago

Swashbuckle, when used with Newtonsoft.Json on the server side, treats the TimeSpan type as a string schema with a date-span format. We should detect this and treat it as a TimeSpan in the generated SDK. Note that previous versions of System.Text.Json didn't support the TimeSpan type out of the box but now it does.