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.
Swashbuckle, when used with Newtonsoft.Json on the server side, treats the
TimeSpan
type as astring
schema with adate-span
format. We should detect this and treat it as aTimeSpan
in the generated SDK. Note that previous versions of System.Text.Json didn't support theTimeSpan
type out of the box but now it does.