You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): improve error messaging for response validation in Router
- Enhanced error messages to include specific paths for validation errors.
- Updated response handling to ensure clearer feedback on invalid responses.
Copy file name to clipboardExpand all lines: packages/http-router/src/Router.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -625,7 +625,7 @@ describe('Router', () => {
625
625
expect(response.statusCode).toBe(400);
626
626
expect(response.body).toHaveProperty(
627
627
'error',
628
-
'Invalid response for endpoint GET - http://localhost/api/test. Error: must NOT have additional properties (additionalProperty: asda)',
628
+
"Invalid response for endpoint GET - http://localhost/api/test. Error: at path '(root)': must NOT have additional properties (additionalProperty: asda)",
0 commit comments