Skip to content

Commit 82ab529

Browse files
committed
use Date instead of string
1 parent 041666b commit 82ab529

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

schema/draft/schema.json

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"lastModified": {
1717
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
18+
"format": "date-time",
1819
"type": "string"
1920
},
2021
"priority": {
@@ -43,6 +44,7 @@
4344
},
4445
"lastModified": {
4546
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
47+
"format": "date-time",
4648
"type": "string"
4749
},
4850
"priority": {
@@ -505,6 +507,7 @@
505507
},
506508
"lastModified": {
507509
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
510+
"format": "date-time",
508511
"type": "string"
509512
},
510513
"priority": {
@@ -611,6 +614,7 @@
611614
},
612615
"lastModified": {
613616
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
617+
"format": "date-time",
614618
"type": "string"
615619
},
616620
"priority": {
@@ -1550,6 +1554,7 @@
15501554
},
15511555
"lastModified": {
15521556
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
1557+
"format": "date-time",
15531558
"type": "string"
15541559
},
15551560
"priority": {
@@ -1660,6 +1665,7 @@
16601665
},
16611666
"lastModified": {
16621667
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
1668+
"format": "date-time",
16631669
"type": "string"
16641670
},
16651671
"priority": {
@@ -2000,6 +2006,7 @@
20002006
},
20012007
"lastModified": {
20022008
"description": "The timestamp when the resource was last modified.\nExamples: last activity timestamp in an open file, timestamp when resource is attached, etc.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").",
2009+
"format": "date-time",
20032010
"type": "string"
20042011
},
20052012
"priority": {

schema/draft/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ export interface Annotated {
839839
*
840840
* Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
841841
*/
842-
lastModified?: string;
842+
lastModified?: Date;
843843
}
844844
}
845845

0 commit comments

Comments
 (0)