question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confirm whether the properties which end with Duration can all be converted to TimeSpan type in released beta packages

See original GitHub issue

Use directive to add "format": "duration" and the property will be generated as TimeSpan, test to see if it works.

D:\Git\azure\azure-sdk-for-net\sdk\cdn\Azure.ResourceManager.Cdn\src\Generated\Models\CacheExpirationActionParameters.cs:44         public string CacheDuration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineInstallPatchesParameters.cs:21         public string MaximumDuration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\BgpPeerStatus.cs:48         public string ConnectedDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ApplicationJitAccessPolicy.cs:44         public string MaximumJitAccessDuration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentOperationProperties.cs:52         public string Duration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\DeploymentPropertiesExtended.cs:74         public string Duration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\sqlmanagement\Azure.ResourceManager.Sql\src\Generated\RecommendedActionData.cs:109         public string ExecuteActionDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\sqlmanagement\Azure.ResourceManager.Sql\src\Generated\RecommendedActionData.cs:113         public string RevertActionDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\sqlmanagement\Azure.ResourceManager.Sql\src\Generated\Models\MaintenanceWindowTimeRange.cs:34         public string Duration { get; set; }
D:\Git\azure\azure-sdk-for-net\sdk\websites\Azure.ResourceManager.AppService\src\Generated\Models\LogSpecification.cs:36         public string BlobDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\websites\Azure.ResourceManager.AppService\src\Generated\Models\MetricAvailability.cs:30         public string BlobDuration { get; }
D:\Git\azure\azure-sdk-for-net\sdk\websites\Azure.ResourceManager.AppService\src\Generated\Models\TriggeredJobRun.cs:58         public string Duration { get; set; }

@Yao725 cdn @ArcturusZhang compute @archerzz network @fengzhou-msft resources, sql @HarveyLink appservice

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ArthurMa1978commented, Feb 11, 2022

Ask we discussed, to these kind of issue, the autorest.csharp should rise exception, then

  1. Use directive to fix it temporally
  2. File ticket to service team to fix it in swagger

And will also ask swagger tooling team to add a new lint rule to check it.

0reactions
fengzhou-msftcommented, Mar 8, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

TimeSpan not supported and read as DateTime? #283
Hi Guys, I am in the process of re-writing my ExcelHelper code to use ExcelDataReader so it can read older BIFF8 and earlier...
Read more >
Why does TimeSpan not have a Years property?
The absence of Months made sense since there is no standard month length. There is no standard year length either because of leap...
Read more >
TimeSpan Struct (System)
A TimeSpan object represents a time interval (duration of time or elapsed time) that is measured as a positive or negative number of...
Read more >
Timespan datatype won't convert
I've built an SSRS report that pulls data directly from an ODBC data source. The SQL query pulling the data works fine, and...
Read more >
Testing Guide
This guide is best viewed as a set of techniques that you can use to find different types of security holes. But not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found