Skip to content

Commit

Permalink
use Date instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
salman1993 committed Feb 17, 2025
1 parent 041666b commit 82ab529
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions schema/draft/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down Expand Up @@ -43,6 +44,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down Expand Up @@ -505,6 +507,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down Expand Up @@ -611,6 +614,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down Expand Up @@ -1550,6 +1554,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down Expand Up @@ -1660,6 +1665,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down Expand Up @@ -2000,6 +2006,7 @@
},
"lastModified": {
"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\").",
"format": "date-time",
"type": "string"
},
"priority": {
Expand Down
2 changes: 1 addition & 1 deletion schema/draft/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ export interface Annotated {
*
* Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
*/
lastModified?: string;
lastModified?: Date;
}
}

Expand Down

0 comments on commit 82ab529

Please sign in to comment.