Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1110,13 +1110,18 @@
"description": "The MIME type of this resource, if known.",
"type": "string"
},
"name": {
"description": "An optional human-readable name for this resource.\n\nThis can be used by clients to populate UI elements.",
"type": "string"
},
"uri": {
"description": "The URI of this resource.",
"format": "uri",
"type": "string"
}
},
"required": [
"name",
"uri"
],
"type": "object"
Expand Down Expand Up @@ -1204,6 +1209,7 @@
}
},
"required": [
"name",
"uriTemplate"
],
"type": "object"
Expand Down
10 changes: 9 additions & 1 deletion schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ export interface Resource {
* @format uri
*/
uri: string;

/**
* An optional human-readable name for this resource.
*
* This can be used by clients to populate UI elements.
*/
name: string;

/**
* The MIME type of this resource, if known.
*/
Expand All @@ -350,7 +358,7 @@ export interface ResourceTemplate {
/**
* A human-readable name for the type of resource this template refers to.
*/
name?: string;
name: string;
/**
* A human-readable description of what this template is for.
*/
Expand Down