fix: dashboard patch api should not allow 'id' in updates#909
fix: dashboard patch api should not allow 'id' in updates#909mGolestan98 wants to merge 2 commits intohyperdxio:mainfrom
Conversation
|
|
@mGolestan98 is attempting to deploy a commit to the HyperDX Team on Vercel. A member of the Team first needs to authorize it. |
|
actually 2 things that i just realized:
I'm converting this PR to a draft for now. |
|
I think the problem is that zod is allowing undefined fields by default. Appending Response after editing dashboard title: |
|
Thanks @dhable. I think using Instead, I’d suggest stripping unknown parameters in all backend API routes using the Also, since |
|
Closed due to staleness. Please re-open with updates if needed. |
Problem
The dashboard PATCH API endpoint was using
DashboardSchema.partial()for request body validation, which allowed theidfield to be included in update requests. This was inconsistent with theupdateDashboardcontroller method, which was already correctly typed to accept schema excluding the id.