Skip to content

Commit ee4578a

Browse files
committed
fix: rename to lastModified, add example
1 parent 6ea35ee commit ee4578a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

schema/draft/schema.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
},
1414
"type": "array"
1515
},
16+
"lastModified": {
17+
"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+
"type": "string"
19+
},
1620
"priority": {
1721
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
1822
"maximum": 1,
@@ -37,6 +41,10 @@
3741
},
3842
"type": "array"
3943
},
44+
"lastModified": {
45+
"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\").",
46+
"type": "string"
47+
},
4048
"priority": {
4149
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
4250
"maximum": 1,
@@ -495,6 +503,10 @@
495503
},
496504
"type": "array"
497505
},
506+
"lastModified": {
507+
"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\").",
508+
"type": "string"
509+
},
498510
"priority": {
499511
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
500512
"maximum": 1,
@@ -597,6 +609,10 @@
597609
},
598610
"type": "array"
599611
},
612+
"lastModified": {
613+
"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\").",
614+
"type": "string"
615+
},
600616
"priority": {
601617
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
602618
"maximum": 1,
@@ -1532,6 +1548,10 @@
15321548
},
15331549
"type": "array"
15341550
},
1551+
"lastModified": {
1552+
"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\").",
1553+
"type": "string"
1554+
},
15351555
"priority": {
15361556
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
15371557
"maximum": 1,
@@ -1638,6 +1658,10 @@
16381658
},
16391659
"type": "array"
16401660
},
1661+
"lastModified": {
1662+
"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\").",
1663+
"type": "string"
1664+
},
16411665
"priority": {
16421666
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
16431667
"maximum": 1,
@@ -1974,6 +1998,10 @@
19741998
},
19751999
"type": "array"
19762000
},
2001+
"lastModified": {
2002+
"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\").",
2003+
"type": "string"
2004+
},
19772005
"priority": {
19782006
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
19792007
"maximum": 1,

schema/draft/schema.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,14 @@ export interface Annotated {
832832
* @maximum 1
833833
*/
834834
priority?: number;
835+
836+
/**
837+
* The timestamp when the resource was last modified.
838+
* Examples: last activity timestamp in an open file, timestamp when resource is attached, etc.
839+
*
840+
* Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
841+
*/
842+
lastModified?: string;
835843
}
836844
}
837845

0 commit comments

Comments
 (0)