From c48a4745418bd3a55f63e0ad5d13da34e82afec1 Mon Sep 17 00:00:00 2001 From: YunKui Lu Date: Sat, 28 Jun 2025 16:43:22 +0800 Subject: [PATCH] Add optional name and title to ResourceContents Signed-off-by: luyunkui --- schema/2025-06-18/schema.json | 24 ++++++++++++++++++++++++ schema/2025-06-18/schema.ts | 11 +++++++++++ schema/draft/schema.json | 24 ++++++++++++++++++++++++ schema/draft/schema.ts | 11 +++++++++++ 4 files changed, 70 insertions(+) diff --git a/schema/2025-06-18/schema.json b/schema/2025-06-18/schema.json index 24ba4f630..8ac9ef90e 100644 --- a/schema/2025-06-18/schema.json +++ b/schema/2025-06-18/schema.json @@ -90,6 +90,14 @@ "description": "The MIME type of this resource, if known.", "type": "string" }, + "name": { + "description": "The name of the resource.", + "type": "string" + }, + "title": { + "description": "A human-readable title for the resource.", + "type": "string" + }, "uri": { "description": "The URI of this resource.", "format": "uri", @@ -1812,6 +1820,14 @@ "description": "The MIME type of this resource, if known.", "type": "string" }, + "name": { + "description": "The name of the resource.", + "type": "string" + }, + "title": { + "description": "A human-readable title for the resource.", + "type": "string" + }, "uri": { "description": "The URI of this resource.", "format": "uri", @@ -2334,10 +2350,18 @@ "description": "The MIME type of this resource, if known.", "type": "string" }, + "name": { + "description": "The name of the resource.", + "type": "string" + }, "text": { "description": "The text of the item. This must only be set if the item can actually be represented as text (not binary data).", "type": "string" }, + "title": { + "description": "A human-readable title for the resource.", + "type": "string" + }, "uri": { "description": "The URI of this resource.", "format": "uri", diff --git a/schema/2025-06-18/schema.ts b/schema/2025-06-18/schema.ts index 15e08ccc8..b550ebb61 100644 --- a/schema/2025-06-18/schema.ts +++ b/schema/2025-06-18/schema.ts @@ -539,6 +539,17 @@ export interface ResourceContents { * @format uri */ uri: string; + + /** + * The name of the resource. + */ + name?: string; + + /** + * A human-readable title for the resource. + */ + title?: string; + /** * The MIME type of this resource, if known. */ diff --git a/schema/draft/schema.json b/schema/draft/schema.json index 1edd7ea1f..d45eb4ddc 100644 --- a/schema/draft/schema.json +++ b/schema/draft/schema.json @@ -90,6 +90,14 @@ "description": "The MIME type of this resource, if known.", "type": "string" }, + "name": { + "description": "The name of the resource.", + "type": "string" + }, + "title": { + "description": "A human-readable title for the resource.", + "type": "string" + }, "uri": { "description": "The URI of this resource.", "format": "uri", @@ -1812,6 +1820,14 @@ "description": "The MIME type of this resource, if known.", "type": "string" }, + "name": { + "description": "The name of the resource.", + "type": "string" + }, + "title": { + "description": "A human-readable title for the resource.", + "type": "string" + }, "uri": { "description": "The URI of this resource.", "format": "uri", @@ -2334,10 +2350,18 @@ "description": "The MIME type of this resource, if known.", "type": "string" }, + "name": { + "description": "The name of the resource.", + "type": "string" + }, "text": { "description": "The text of the item. This must only be set if the item can actually be represented as text (not binary data).", "type": "string" }, + "title": { + "description": "A human-readable title for the resource.", + "type": "string" + }, "uri": { "description": "The URI of this resource.", "format": "uri", diff --git a/schema/draft/schema.ts b/schema/draft/schema.ts index 5d00b75ee..618089ce7 100644 --- a/schema/draft/schema.ts +++ b/schema/draft/schema.ts @@ -539,6 +539,17 @@ export interface ResourceContents { * @format uri */ uri: string; + + /** + * The name of the resource. + */ + name?: string; + + /** + * A human-readable title for the resource. + */ + title?: string; + /** * The MIME type of this resource, if known. */