Skip to content

Commit c670161

Browse files
authored
[networkanalytics] Enable linter ruleset (#26060)
- Enable linter ruleset as required by latest version of TypeSpec - Fix linter violation by replacing 'format("date-time")' with 'utcDateTime'
1 parent b62ddd0 commit c670161

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

specification/networkanalytics/NetworkAnalytics.Management/main.tsp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,10 @@ model ConsumptionEndpointsProperties {
292292
@added(Versions.v2023_11_15)
293293
model AccountSas {
294294
@doc("Sas token start timestamp.")
295-
@format("date-time")
296-
startTimeStamp: string;
295+
startTimeStamp: utcDateTime;
297296

298297
@doc("Sas token expiry timestamp.")
299-
@format("date-time")
300-
expiryTimeStamp: string;
298+
expiryTimeStamp: utcDateTime;
301299

302300
@doc("Ip Address")
303301
ipAddress: string;

specification/networkanalytics/NetworkAnalytics.Management/tspconfig.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
emit:
22
- '@azure-tools/typespec-autorest'
3+
linter:
4+
extends:
5+
- "@azure-tools/typespec-azure-resource-manager/all"
36
options:
47
'@azure-tools/typespec-autorest':
58
emitter-output-dir: "{project-root}/.."

0 commit comments

Comments
 (0)