From 82ab5290f8f2a27ff20cc2a996e6571a38993c1a Mon Sep 17 00:00:00 2001 From: Salman Mohammed Date: Mon, 17 Feb 2025 18:09:38 -0500 Subject: [PATCH] use Date instead of string --- schema/draft/schema.json | 7 +++++++ schema/draft/schema.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/schema/draft/schema.json b/schema/draft/schema.json index 8a80f8d..211a820 100644 --- a/schema/draft/schema.json +++ b/schema/draft/schema.json @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { diff --git a/schema/draft/schema.ts b/schema/draft/schema.ts index ae2ae34..a5e37f5 100644 --- a/schema/draft/schema.ts +++ b/schema/draft/schema.ts @@ -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; } }