Skip to content

Commit c7713e9

Browse files
committed
Fix up URIs
1 parent 8488d56 commit c7713e9

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/types.ts

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,8 @@ export const ReadResourceRequestSchema = RequestSchema.extend({
255255
params: z.object({
256256
/**
257257
* 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
260258
*/
261-
uri: z.string().uri()
259+
uri: z.string().url()
262260
})
263261
});
264262

@@ -284,10 +282,8 @@ export const SubscribeRequestSchema = RequestSchema.extend({
284282
params: z.object({
285283
/**
286284
* 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
289285
*/
290-
uri: z.string().uri()
286+
uri: z.string().url()
291287
})
292288
});
293289

@@ -299,10 +295,8 @@ export const UnsubscribeRequestSchema = RequestSchema.extend({
299295
params: z.object({
300296
/**
301297
* The URI of the resource to unsubscribe from.
302-
*
303-
* @format uri
304298
*/
305-
uri: z.string().uri()
299+
uri: z.string().url()
306300
})
307301
});
308302

@@ -314,10 +308,8 @@ export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({
314308
params: z.object({
315309
/**
316310
* 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
319311
*/
320-
uri: z.string().uri()
312+
uri: z.string().url()
321313
})
322314
});
323315

@@ -327,10 +319,8 @@ export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({
327319
export const ResourceSchema = z.object({
328320
/**
329321
* The URI of this resource.
330-
*
331-
* @format uri
332322
*/
333-
uri: z.string().uri(),
323+
uri: z.string().url(),
334324

335325
/**
336326
* A human-readable name for this resource.
@@ -389,10 +379,8 @@ export const ResourceTemplateSchema = z.object({
389379
export const ResourceContentsSchema = z.object({
390380
/**
391381
* The URI of this resource.
392-
*
393-
* @format uri
394382
*/
395-
uri: z.string().uri(),
383+
uri: z.string().url(),
396384
/**
397385
* The MIME type of this resource, if known.
398386
*/

0 commit comments

Comments
 (0)