@mastra/deployer 1.5.0 → 1.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3464,6 +3464,25 @@ var MastraServer = class extends MastraServer$1 {
3464
3464
  );
3465
3465
  }
3466
3466
  }
3467
+ if (params.urlParams) {
3468
+ try {
3469
+ params.urlParams = await this.parsePathParams(route, params.urlParams);
3470
+ } catch (error) {
3471
+ this.mastra.getLogger()?.error("Error parsing path params", {
3472
+ error: error instanceof Error ? { message: error.message, stack: error.stack } : error
3473
+ });
3474
+ if (error instanceof ZodError) {
3475
+ return c.json(formatZodError(error, "path parameters"), 400);
3476
+ }
3477
+ return c.json(
3478
+ {
3479
+ error: "Invalid path parameters",
3480
+ issues: [{ field: "unknown", message: error instanceof Error ? error.message : "Unknown error" }]
3481
+ },
3482
+ 400
3483
+ );
3484
+ }
3485
+ }
3467
3486
  const handlerParams = {
3468
3487
  ...params.urlParams,
3469
3488
  ...params.queryParams,