Skip to content

Commit 2ba0c81

Browse files
committed
Make resource and resource template name required
1 parent 4df2d90 commit 2ba0c81

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

schema/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@
11211121
}
11221122
},
11231123
"required": [
1124+
"name",
11241125
"uri"
11251126
],
11261127
"type": "object"
@@ -1208,6 +1209,7 @@
12081209
}
12091210
},
12101211
"required": [
1212+
"name",
12111213
"uriTemplate"
12121214
],
12131215
"type": "object"

schema/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export interface Resource {
337337
*
338338
* This can be used by clients to populate UI elements.
339339
*/
340-
name?: string;
340+
name: string;
341341

342342
/**
343343
* The MIME type of this resource, if known.
@@ -358,7 +358,7 @@ export interface ResourceTemplate {
358358
/**
359359
* A human-readable name for the type of resource this template refers to.
360360
*/
361-
name?: string;
361+
name: string;
362362
/**
363363
* A human-readable description of what this template is for.
364364
*/

0 commit comments

Comments
 (0)