Skip to content
Merged
Changes from 2 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
5 changes: 5 additions & 0 deletions packages/http-router/src/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ export class Router<
method: req.method,
path: req.url,
error: validatorFn.errors?.map((error: any) => error.message).join('\n '),
bodyParams: undefined,
queryParams,
Comment thread
KevLehman marked this conversation as resolved.
});
return c.json(
{
Expand All @@ -229,6 +231,8 @@ export class Router<
method: req.method,
path: req.url,
error: validatorFn.errors?.map((error: any) => error.message).join('\n '),
bodyParams,
queryParams: undefined,
Comment thread
KevLehman marked this conversation as resolved.
});
return c.json(
{
Expand Down Expand Up @@ -260,6 +264,7 @@ export class Router<
method: req.method,
path: req.url,
error: responseValidatorFn.errors?.map((error: any) => error.message).join('\n '),
originalResponse: body,
});
return c.json(
{
Expand Down
Loading