File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -255,10 +255,8 @@ export const ReadResourceRequestSchema = RequestSchema.extend({
255
255
params : z . object ( {
256
256
/**
257
257
* The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
258
- *
259
- * @format uri
260
258
*/
261
- uri : z . string ( ) . uri ( )
259
+ uri : z . string ( ) . url ( )
262
260
} )
263
261
} ) ;
264
262
@@ -284,10 +282,8 @@ export const SubscribeRequestSchema = RequestSchema.extend({
284
282
params : z . object ( {
285
283
/**
286
284
* The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it.
287
- *
288
- * @format uri
289
285
*/
290
- uri : z . string ( ) . uri ( )
286
+ uri : z . string ( ) . url ( )
291
287
} )
292
288
} ) ;
293
289
@@ -299,10 +295,8 @@ export const UnsubscribeRequestSchema = RequestSchema.extend({
299
295
params : z . object ( {
300
296
/**
301
297
* The URI of the resource to unsubscribe from.
302
- *
303
- * @format uri
304
298
*/
305
- uri : z . string ( ) . uri ( )
299
+ uri : z . string ( ) . url ( )
306
300
} )
307
301
} ) ;
308
302
@@ -314,10 +308,8 @@ export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({
314
308
params : z . object ( {
315
309
/**
316
310
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
317
- *
318
- * @format uri
319
311
*/
320
- uri : z . string ( ) . uri ( )
312
+ uri : z . string ( ) . url ( )
321
313
} )
322
314
} ) ;
323
315
@@ -327,10 +319,8 @@ export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({
327
319
export const ResourceSchema = z . object ( {
328
320
/**
329
321
* The URI of this resource.
330
- *
331
- * @format uri
332
322
*/
333
- uri : z . string ( ) . uri ( ) ,
323
+ uri : z . string ( ) . url ( ) ,
334
324
335
325
/**
336
326
* A human-readable name for this resource.
@@ -389,10 +379,8 @@ export const ResourceTemplateSchema = z.object({
389
379
export const ResourceContentsSchema = z . object ( {
390
380
/**
391
381
* The URI of this resource.
392
- *
393
- * @format uri
394
382
*/
395
- uri : z . string ( ) . uri ( ) ,
383
+ uri : z . string ( ) . url ( ) ,
396
384
/**
397
385
* The MIME type of this resource, if known.
398
386
*/
You can’t perform that action at this time.
0 commit comments