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
Description
We currently have writable and 'readable' on ApiProperty attributes.
This is great to reduce the amount of serialization group management you have to juggle.
You'll run into an issue when you try to have fields that are writable but ONLY during updates (PATCH, PUT), in cases like this you'd have to start adding serialization groups again, which is a bit annoying when you try to serialize objects as well as you then have to propagate that down.
I'd suggest adding an updateable field to ApiProperty that'll only include/exclude fields based on if it's a PUSH or POST operation.
Example
class Foo {
#[ApiProperty(writable: false, updateable:true)]
private ?Bar bar = null;
}
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
We currently have
writable
and 'readable' onApiProperty
attributes.This is great to reduce the amount of serialization group management you have to juggle.
You'll run into an issue when you try to have fields that are writable but ONLY during updates (PATCH, PUT), in cases like this you'd have to start adding serialization groups again, which is a bit annoying when you try to serialize objects as well as you then have to propagate that down.
I'd suggest adding an
updateable
field toApiProperty
that'll only include/exclude fields based on if it's a PUSH or POST operation.Example
The text was updated successfully, but these errors were encountered: