Skip to content

Commit fb9c8e2

Browse files
authored
Rename property in sample ContosoWidgetManager (#23836)
* Rename property to "createdAt" - Aligns with naming guidelines * tsp compile * Add test change to trigger TypeSpec ApiView * Test removal of "postinstall: tsc" * Revert "Test removal of "postinstall: tsc"" This reverts commit 3e9b154. * Revert "Add test change to trigger TypeSpec ApiView" This reverts commit 837bf37. * Update examples
1 parent 756495d commit fb9c8e2

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

specification/contosowidgetmanager/Contoso.WidgetManager.Shared/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ model FakedSharedModel {
44
tag: string;
55

66
@doc("The created date.")
7-
createdDate: utcDateTime;
7+
createdAt: utcDateTime;
88
}

specification/contosowidgetmanager/Contoso.WidgetManager/examples/2022-11-01-preview/Widgets_CreateOrUpdateWidgetSample.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"manufacturerId": "manufacturer id1",
99
"sharedModel": {
1010
"tag": "tag1",
11-
"createdDate": "2023-01-09T02:12:25.689Z"
11+
"createdAt": "2023-01-09T02:12:25.689Z"
1212
}
1313
}
1414
},
@@ -19,7 +19,7 @@
1919
"manufacturerId": "manufacturer id1",
2020
"sharedModel": {
2121
"tag": "tag1",
22-
"createdDate": "2023-01-09T02:12:25.689Z"
22+
"createdAt": "2023-01-09T02:12:25.689Z"
2323
}
2424
}
2525
},
@@ -29,7 +29,7 @@
2929
"manufacturerId": "manufacturer id1",
3030
"sharedModel": {
3131
"tag": "tag1",
32-
"createdDate": "2023-01-09T02:12:25.689Z"
32+
"createdAt": "2023-01-09T02:12:25.689Z"
3333
}
3434
}
3535
}

specification/contosowidgetmanager/Contoso.WidgetManager/examples/2022-11-01-preview/Widgets_GetWidgetOperationStatusSample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"manufacturerId": "manufacturer Id1",
3636
"sharedModel": {
3737
"tag": "tag1",
38-
"createdDate": "2023-01-09T02:12:25.689Z"
38+
"createdAt": "2023-01-09T02:12:25.689Z"
3939
}
4040
},
4141
"widgetName": "rfazvwnfwwomiwrh"

specification/contosowidgetmanager/Contoso.WidgetManager/examples/2022-11-01-preview/Widgets_ListWidgetsSample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"manufacturerId": "manufacturer Id1",
1717
"sharedModel": {
1818
"tag": "tag1",
19-
"createdDate": "2023-01-09T02:12:25.689Z"
19+
"createdAt": "2023-01-09T02:12:25.689Z"
2020
}
2121
}
2222
],

specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/examples/Widgets_CreateOrUpdateWidgetSample.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"manufacturerId": "manufacturer id1",
99
"sharedModel": {
1010
"tag": "tag1",
11-
"createdDate": "2023-01-09T02:12:25.689Z"
11+
"createdAt": "2023-01-09T02:12:25.689Z"
1212
}
1313
}
1414
},
@@ -19,7 +19,7 @@
1919
"manufacturerId": "manufacturer id1",
2020
"sharedModel": {
2121
"tag": "tag1",
22-
"createdDate": "2023-01-09T02:12:25.689Z"
22+
"createdAt": "2023-01-09T02:12:25.689Z"
2323
}
2424
}
2525
},
@@ -29,7 +29,7 @@
2929
"manufacturerId": "manufacturer id1",
3030
"sharedModel": {
3131
"tag": "tag1",
32-
"createdDate": "2023-01-09T02:12:25.689Z"
32+
"createdAt": "2023-01-09T02:12:25.689Z"
3333
}
3434
}
3535
}

specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/examples/Widgets_GetWidgetOperationStatusSample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"manufacturerId": "manufacturer Id1",
3636
"sharedModel": {
3737
"tag": "tag1",
38-
"createdDate": "2023-01-09T02:12:25.689Z"
38+
"createdAt": "2023-01-09T02:12:25.689Z"
3939
}
4040
},
4141
"widgetName": "rfazvwnfwwomiwrh"

specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/examples/Widgets_ListWidgetsSample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"manufacturerId": "manufacturer Id1",
1717
"sharedModel": {
1818
"tag": "tag1",
19-
"createdDate": "2023-01-09T02:12:25.689Z"
19+
"createdAt": "2023-01-09T02:12:25.689Z"
2020
}
2121
}
2222
],

specification/contosowidgetmanager/data-plane/Azure.Contoso.WidgetManager/preview/2022-11-01-preview/widgets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@
427427
"type": "string",
428428
"description": "The tag."
429429
},
430-
"createdDate": {
430+
"createdAt": {
431431
"type": "string",
432432
"format": "date-time",
433433
"description": "The created date."
@@ -436,7 +436,7 @@
436436
"description": "Faked shared model",
437437
"required": [
438438
"tag",
439-
"createdDate"
439+
"createdAt"
440440
]
441441
},
442442
"FakedSharedModelUpdate": {
@@ -446,7 +446,7 @@
446446
"type": "string",
447447
"description": "The tag."
448448
},
449-
"createdDate": {
449+
"createdAt": {
450450
"type": "string",
451451
"format": "date-time",
452452
"description": "The created date."

0 commit comments

Comments
 (0)