autorest icon indicating copy to clipboard operation
autorest copied to clipboard

ISO8601 duration support needed for Azure.CSharp flavor

Open bitsforthought opened this issue 11 years ago • 2 comments

@matthchr: Thanks for your PR to add duration support to AutoRest!

There is one thing missing however. This code was added to the generic CSharp template:

Converters = new List<JsonConverter> 
{ 
    new Iso8601TimeSpanConverter() 
} 

But not to the Azure.CSharp template.

Is this in the works? We need it for the Azure Search .NET SDK.

bitsforthought avatar Oct 14 '15 21:10 bitsforthought

Good catch. I had missed that in my initial PR. I've got some other tests which I missed for Duration (nobody called me out on it in the initial PR but I realized later I didn't cover some cases). If you're willing to wait till around the end of the week/early next week I can fix this along with adding my new tests.

If you can't wait that long it should be a pretty easy fix, you can submit a PR yourself probably.

Thanks!

matthchr avatar Oct 14 '15 22:10 matthchr

Seems like this would be good practice for me. :) I'll follow up with you offline.

bitsforthought avatar Oct 15 '15 02:10 bitsforthought