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
I have already spoken to @justingaylor and @careo about an issue when using attributor with PATCH calls.
For Example
We have an update call that uses PATCH instead of PUT.
So for example if I have a resource called User which has the attributes:
============
name: String
email: String
If I wanted to just update the name I could call PATCH /user/:id, { name: 'updated_name' } and leave out the email attribute.
But what happens is that attributor/praxis detect that the email isn't there and add it to the payload.
So the request comes through like this: { name: 'updated_name', email: nil }.
When rendering types with subattributes, we need to decide whether subattributes that are nil should be returned or not.
We currently return them:
The text was updated successfully, but these errors were encountered: